ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/hopm/trunk/configure
Revision: 6183
Committed: Tue Jun 23 16:50:35 2015 UTC (10 years, 2 months ago) by michael
File size: 490226 byte(s)
Log Message:
- Add --enable-warnings switch

File Contents

# Content
1 #! /bin/sh
2 # From configure.ac Id: configure.ac 6133 2015-06-11 19:20:00Z michael .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for hopm TRUNK.
5 #
6 # Report bugs to <bugs@ircd-hybrid.org>.
7 #
8 #
9 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21 emulate sh
22 NULLCMD=:
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
26 setopt NO_GLOB_SUBST
27 else
28 case `(set -o) 2>/dev/null` in #(
29 *posix*) :
30 set -o posix ;; #(
31 *) :
32 ;;
33 esac
34 fi
35
36
37 as_nl='
38 '
39 export as_nl
40 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44 # Prefer a ksh shell builtin over an external printf program on Solaris,
45 # but without wasting forks for bash or zsh.
46 if test -z "$BASH_VERSION$ZSH_VERSION" \
47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='print -r --'
49 as_echo_n='print -rn --'
50 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo='printf %s\n'
52 as_echo_n='printf %s'
53 else
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
57 else
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59 as_echo_n_body='eval
60 arg=$1;
61 case $arg in #(
62 *"$as_nl"*)
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 esac;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 '
68 export as_echo_n_body
69 as_echo_n='sh -c $as_echo_n_body as_echo'
70 fi
71 export as_echo_body
72 as_echo='sh -c $as_echo_body as_echo'
73 fi
74
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # IFS
86 # We need space, tab and new line, in precisely that order. Quoting is
87 # there to prevent editors from complaining about space-tab.
88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
89 # splitting by setting IFS to empty value.)
90 IFS=" "" $as_nl"
91
92 # Find who we are. Look in the path if we contain no directory separator.
93 as_myself=
94 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103 IFS=$as_save_IFS
104
105 ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110 as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 # Use a proper internal environment variable to ensure we don't fall
139 # into an infinite loop, continuously re-executing ourselves.
140 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
141 _as_can_reexec=no; export _as_can_reexec;
142 # We cannot yet assume a decent shell, so we have to provide a
143 # neutralization value for shells without unset; and this also
144 # works around shells that cannot unset nonexistent variables.
145 # Preserve -v and -x to the replacement shell.
146 BASH_ENV=/dev/null
147 ENV=/dev/null
148 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 case $- in # ((((
150 *v*x* | *x*v* ) as_opts=-vx ;;
151 *v* ) as_opts=-v ;;
152 *x* ) as_opts=-x ;;
153 * ) as_opts= ;;
154 esac
155 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156 # Admittedly, this is quite paranoid, since all the known shells bail
157 # out after a failed `exec'.
158 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
159 as_fn_exit 255
160 fi
161 # We don't want this to propagate to other subprocesses.
162 { _as_can_reexec=; unset _as_can_reexec;}
163 if test "x$CONFIG_SHELL" = x; then
164 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
165 emulate sh
166 NULLCMD=:
167 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168 # is contrary to our usage. Disable this feature.
169 alias -g '\${1+\"\$@\"}'='\"\$@\"'
170 setopt NO_GLOB_SUBST
171 else
172 case \`(set -o) 2>/dev/null\` in #(
173 *posix*) :
174 set -o posix ;; #(
175 *) :
176 ;;
177 esac
178 fi
179 "
180 as_required="as_fn_return () { (exit \$1); }
181 as_fn_success () { as_fn_return 0; }
182 as_fn_failure () { as_fn_return 1; }
183 as_fn_ret_success () { return 0; }
184 as_fn_ret_failure () { return 1; }
185
186 exitcode=0
187 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192
193 else
194 exitcode=1; echo positional parameters were not saved.
195 fi
196 test x\$exitcode = x0 || exit 1
197 test -x / || exit 1"
198 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
199 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
200 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
210 test \$(( 1 + 1 )) = 2 || exit 1"
211 if (eval "$as_required") 2>/dev/null; then :
212 as_have_required=yes
213 else
214 as_have_required=no
215 fi
216 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
217
218 else
219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 as_found=false
221 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222 do
223 IFS=$as_save_IFS
224 test -z "$as_dir" && as_dir=.
225 as_found=:
226 case $as_dir in #(
227 /*)
228 for as_base in sh bash ksh sh5; do
229 # Try only shells that exist, to save several forks.
230 as_shell=$as_dir/$as_base
231 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
233 CONFIG_SHELL=$as_shell as_have_required=yes
234 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
235 break 2
236 fi
237 fi
238 done;;
239 esac
240 as_found=false
241 done
242 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
243 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
245 fi; }
246 IFS=$as_save_IFS
247
248
249 if test "x$CONFIG_SHELL" != x; then :
250 export CONFIG_SHELL
251 # We cannot yet assume a decent shell, so we have to provide a
252 # neutralization value for shells without unset; and this also
253 # works around shells that cannot unset nonexistent variables.
254 # Preserve -v and -x to the replacement shell.
255 BASH_ENV=/dev/null
256 ENV=/dev/null
257 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 case $- in # ((((
259 *v*x* | *x*v* ) as_opts=-vx ;;
260 *v* ) as_opts=-v ;;
261 *x* ) as_opts=-x ;;
262 * ) as_opts= ;;
263 esac
264 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265 # Admittedly, this is quite paranoid, since all the known shells bail
266 # out after a failed `exec'.
267 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 exit 255
269 fi
270
271 if test x$as_have_required = xno; then :
272 $as_echo "$0: This script requires a shell more modern than all"
273 $as_echo "$0: the shells that I found on your system."
274 if test x${ZSH_VERSION+set} = xset ; then
275 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 else
278 $as_echo "$0: Please tell bug-autoconf@gnu.org and
279 $0: bugs@ircd-hybrid.org about your system, including any
280 $0: error possibly output before this message. Then install
281 $0: a modern shell, or manually run the script under such a
282 $0: shell if you do have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311 return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319 set +e
320 as_fn_set_status $1
321 exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\).*/{
360 s//\1/
361 q
362 }
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
387 {
388 eval $1+=\$2
389 }'
390 else
391 as_fn_append ()
392 {
393 eval $1=\$$1\$2
394 }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 fi
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\/\)$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\).*/{
464 s//\1/
465 q
466 }
467 s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
483 p
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
491 N
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 xy) ECHO_C='\c';;
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519 ECHO_T=' ';;
520 esac;;
521 *)
522 ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
528 else
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s='ln -s'
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 as_ln_s='cp -pR'
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
544 as_ln_s='cp -pR'
545 fi
546 else
547 as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
554 else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571 test -n "$DJDIR" || exec 7<&0 </dev/null
572 exec 6>&1
573
574 # Name of the host.
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579 #
580 # Initializations.
581 #
582 ac_default_prefix=/usr/local
583 ac_clean_files=
584 ac_config_libobj_dir=.
585 LIBOBJS=
586 cross_compiling=no
587 subdirs=
588 MFLAGS=
589 MAKEFLAGS=
590
591 # Identity of this package.
592 PACKAGE_NAME='hopm'
593 PACKAGE_TARNAME='hopm'
594 PACKAGE_VERSION='TRUNK'
595 PACKAGE_STRING='hopm TRUNK'
596 PACKAGE_BUGREPORT='bugs@ircd-hybrid.org'
597 PACKAGE_URL=''
598
599 ac_unique_file="src/opercmd.h"
600 ac_default_prefix=\${HOME}/hopm
601 # Factoring default headers for most tests.
602 ac_includes_default="\
603 #include <stdio.h>
604 #ifdef HAVE_SYS_TYPES_H
605 # include <sys/types.h>
606 #endif
607 #ifdef HAVE_SYS_STAT_H
608 # include <sys/stat.h>
609 #endif
610 #ifdef STDC_HEADERS
611 # include <stdlib.h>
612 # include <stddef.h>
613 #else
614 # ifdef HAVE_STDLIB_H
615 # include <stdlib.h>
616 # endif
617 #endif
618 #ifdef HAVE_STRING_H
619 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
620 # include <memory.h>
621 # endif
622 # include <string.h>
623 #endif
624 #ifdef HAVE_STRINGS_H
625 # include <strings.h>
626 #endif
627 #ifdef HAVE_INTTYPES_H
628 # include <inttypes.h>
629 #endif
630 #ifdef HAVE_STDINT_H
631 # include <stdint.h>
632 #endif
633 #ifdef HAVE_UNISTD_H
634 # include <unistd.h>
635 #endif"
636
637 ac_subst_vars='am__EXEEXT_FALSE
638 am__EXEEXT_TRUE
639 LTLIBOBJS
640 LIBOBJS
641 LEXLIB
642 LEX_OUTPUT_ROOT
643 LEX
644 YFLAGS
645 YACC
646 CPP
647 LT_SYS_LIBRARY_PATH
648 OTOOL64
649 OTOOL
650 LIPO
651 NMEDIT
652 DSYMUTIL
653 MANIFEST_TOOL
654 RANLIB
655 ac_ct_AR
656 AR
657 DLLTOOL
658 OBJDUMP
659 LN_S
660 NM
661 ac_ct_DUMPBIN
662 DUMPBIN
663 LD
664 FGREP
665 EGREP
666 GREP
667 SED
668 host_os
669 host_vendor
670 host_cpu
671 host
672 build_os
673 build_vendor
674 build_cpu
675 build
676 LIBTOOL
677 am__fastdepCC_FALSE
678 am__fastdepCC_TRUE
679 CCDEPMODE
680 am__nodep
681 AMDEPBACKSLASH
682 AMDEP_FALSE
683 AMDEP_TRUE
684 am__quote
685 am__include
686 DEPDIR
687 OBJEXT
688 EXEEXT
689 ac_ct_CC
690 CPPFLAGS
691 LDFLAGS
692 CFLAGS
693 CC
694 MAINT
695 MAINTAINER_MODE_FALSE
696 MAINTAINER_MODE_TRUE
697 AM_BACKSLASH
698 AM_DEFAULT_VERBOSITY
699 AM_DEFAULT_V
700 AM_V
701 am__untar
702 am__tar
703 AMTAR
704 am__leading_dot
705 SET_MAKE
706 AWK
707 mkdir_p
708 MKDIR_P
709 INSTALL_STRIP_PROGRAM
710 STRIP
711 install_sh
712 MAKEINFO
713 AUTOHEADER
714 AUTOMAKE
715 AUTOCONF
716 ACLOCAL
717 VERSION
718 PACKAGE
719 CYGPATH_W
720 am__isrc
721 INSTALL_DATA
722 INSTALL_SCRIPT
723 INSTALL_PROGRAM
724 target_alias
725 host_alias
726 build_alias
727 LIBS
728 ECHO_T
729 ECHO_N
730 ECHO_C
731 DEFS
732 mandir
733 localedir
734 libdir
735 psdir
736 pdfdir
737 dvidir
738 htmldir
739 infodir
740 docdir
741 oldincludedir
742 includedir
743 localstatedir
744 sharedstatedir
745 sysconfdir
746 datadir
747 datarootdir
748 libexecdir
749 sbindir
750 bindir
751 program_transform_name
752 prefix
753 exec_prefix
754 PACKAGE_URL
755 PACKAGE_BUGREPORT
756 PACKAGE_STRING
757 PACKAGE_VERSION
758 PACKAGE_TARNAME
759 PACKAGE_NAME
760 PATH_SEPARATOR
761 SHELL'
762 ac_subst_files=''
763 ac_user_opts='
764 enable_option_checking
765 enable_silent_rules
766 enable_maintainer_mode
767 enable_dependency_tracking
768 enable_shared
769 enable_static
770 with_pic
771 enable_fast_install
772 with_aix_soname
773 with_gnu_ld
774 with_sysroot
775 enable_libtool_lock
776 enable_assert
777 enable_warnings
778 '
779 ac_precious_vars='build_alias
780 host_alias
781 target_alias
782 CC
783 CFLAGS
784 LDFLAGS
785 LIBS
786 CPPFLAGS
787 LT_SYS_LIBRARY_PATH
788 CPP
789 YACC
790 YFLAGS'
791
792
793 # Initialize some variables set by options.
794 ac_init_help=
795 ac_init_version=false
796 ac_unrecognized_opts=
797 ac_unrecognized_sep=
798 # The variables have the same names as the options, with
799 # dashes changed to underlines.
800 cache_file=/dev/null
801 exec_prefix=NONE
802 no_create=
803 no_recursion=
804 prefix=NONE
805 program_prefix=NONE
806 program_suffix=NONE
807 program_transform_name=s,x,x,
808 silent=
809 site=
810 srcdir=
811 verbose=
812 x_includes=NONE
813 x_libraries=NONE
814
815 # Installation directory options.
816 # These are left unexpanded so users can "make install exec_prefix=/foo"
817 # and all the variables that are supposed to be based on exec_prefix
818 # by default will actually change.
819 # Use braces instead of parens because sh, perl, etc. also accept them.
820 # (The list follows the same order as the GNU Coding Standards.)
821 bindir='${exec_prefix}/bin'
822 sbindir='${exec_prefix}/sbin'
823 libexecdir='${exec_prefix}/libexec'
824 datarootdir='${prefix}/share'
825 datadir='${datarootdir}'
826 sysconfdir='${prefix}/etc'
827 sharedstatedir='${prefix}/com'
828 localstatedir='${prefix}/var'
829 includedir='${prefix}/include'
830 oldincludedir='/usr/include'
831 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
832 infodir='${datarootdir}/info'
833 htmldir='${docdir}'
834 dvidir='${docdir}'
835 pdfdir='${docdir}'
836 psdir='${docdir}'
837 libdir='${exec_prefix}/lib'
838 localedir='${datarootdir}/locale'
839 mandir='${datarootdir}/man'
840
841 ac_prev=
842 ac_dashdash=
843 for ac_option
844 do
845 # If the previous option needs an argument, assign it.
846 if test -n "$ac_prev"; then
847 eval $ac_prev=\$ac_option
848 ac_prev=
849 continue
850 fi
851
852 case $ac_option in
853 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
854 *=) ac_optarg= ;;
855 *) ac_optarg=yes ;;
856 esac
857
858 # Accept the important Cygnus configure options, so we can diagnose typos.
859
860 case $ac_dashdash$ac_option in
861 --)
862 ac_dashdash=yes ;;
863
864 -bindir | --bindir | --bindi | --bind | --bin | --bi)
865 ac_prev=bindir ;;
866 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
867 bindir=$ac_optarg ;;
868
869 -build | --build | --buil | --bui | --bu)
870 ac_prev=build_alias ;;
871 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
872 build_alias=$ac_optarg ;;
873
874 -cache-file | --cache-file | --cache-fil | --cache-fi \
875 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
876 ac_prev=cache_file ;;
877 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
878 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
879 cache_file=$ac_optarg ;;
880
881 --config-cache | -C)
882 cache_file=config.cache ;;
883
884 -datadir | --datadir | --datadi | --datad)
885 ac_prev=datadir ;;
886 -datadir=* | --datadir=* | --datadi=* | --datad=*)
887 datadir=$ac_optarg ;;
888
889 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
890 | --dataroo | --dataro | --datar)
891 ac_prev=datarootdir ;;
892 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
893 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
894 datarootdir=$ac_optarg ;;
895
896 -disable-* | --disable-*)
897 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
898 # Reject names that are not valid shell variable names.
899 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
900 as_fn_error $? "invalid feature name: $ac_useropt"
901 ac_useropt_orig=$ac_useropt
902 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
903 case $ac_user_opts in
904 *"
905 "enable_$ac_useropt"
906 "*) ;;
907 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
908 ac_unrecognized_sep=', ';;
909 esac
910 eval enable_$ac_useropt=no ;;
911
912 -docdir | --docdir | --docdi | --doc | --do)
913 ac_prev=docdir ;;
914 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
915 docdir=$ac_optarg ;;
916
917 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
918 ac_prev=dvidir ;;
919 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
920 dvidir=$ac_optarg ;;
921
922 -enable-* | --enable-*)
923 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
924 # Reject names that are not valid shell variable names.
925 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
926 as_fn_error $? "invalid feature name: $ac_useropt"
927 ac_useropt_orig=$ac_useropt
928 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
929 case $ac_user_opts in
930 *"
931 "enable_$ac_useropt"
932 "*) ;;
933 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
934 ac_unrecognized_sep=', ';;
935 esac
936 eval enable_$ac_useropt=\$ac_optarg ;;
937
938 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
939 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
940 | --exec | --exe | --ex)
941 ac_prev=exec_prefix ;;
942 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
943 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
944 | --exec=* | --exe=* | --ex=*)
945 exec_prefix=$ac_optarg ;;
946
947 -gas | --gas | --ga | --g)
948 # Obsolete; use --with-gas.
949 with_gas=yes ;;
950
951 -help | --help | --hel | --he | -h)
952 ac_init_help=long ;;
953 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
954 ac_init_help=recursive ;;
955 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
956 ac_init_help=short ;;
957
958 -host | --host | --hos | --ho)
959 ac_prev=host_alias ;;
960 -host=* | --host=* | --hos=* | --ho=*)
961 host_alias=$ac_optarg ;;
962
963 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
964 ac_prev=htmldir ;;
965 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
966 | --ht=*)
967 htmldir=$ac_optarg ;;
968
969 -includedir | --includedir | --includedi | --included | --include \
970 | --includ | --inclu | --incl | --inc)
971 ac_prev=includedir ;;
972 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
973 | --includ=* | --inclu=* | --incl=* | --inc=*)
974 includedir=$ac_optarg ;;
975
976 -infodir | --infodir | --infodi | --infod | --info | --inf)
977 ac_prev=infodir ;;
978 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
979 infodir=$ac_optarg ;;
980
981 -libdir | --libdir | --libdi | --libd)
982 ac_prev=libdir ;;
983 -libdir=* | --libdir=* | --libdi=* | --libd=*)
984 libdir=$ac_optarg ;;
985
986 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
987 | --libexe | --libex | --libe)
988 ac_prev=libexecdir ;;
989 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
990 | --libexe=* | --libex=* | --libe=*)
991 libexecdir=$ac_optarg ;;
992
993 -localedir | --localedir | --localedi | --localed | --locale)
994 ac_prev=localedir ;;
995 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
996 localedir=$ac_optarg ;;
997
998 -localstatedir | --localstatedir | --localstatedi | --localstated \
999 | --localstate | --localstat | --localsta | --localst | --locals)
1000 ac_prev=localstatedir ;;
1001 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1002 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1003 localstatedir=$ac_optarg ;;
1004
1005 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1006 ac_prev=mandir ;;
1007 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1008 mandir=$ac_optarg ;;
1009
1010 -nfp | --nfp | --nf)
1011 # Obsolete; use --without-fp.
1012 with_fp=no ;;
1013
1014 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1015 | --no-cr | --no-c | -n)
1016 no_create=yes ;;
1017
1018 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1019 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1020 no_recursion=yes ;;
1021
1022 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1023 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1024 | --oldin | --oldi | --old | --ol | --o)
1025 ac_prev=oldincludedir ;;
1026 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1027 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1028 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1029 oldincludedir=$ac_optarg ;;
1030
1031 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1032 ac_prev=prefix ;;
1033 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1034 prefix=$ac_optarg ;;
1035
1036 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1037 | --program-pre | --program-pr | --program-p)
1038 ac_prev=program_prefix ;;
1039 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1040 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1041 program_prefix=$ac_optarg ;;
1042
1043 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1044 | --program-suf | --program-su | --program-s)
1045 ac_prev=program_suffix ;;
1046 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1047 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1048 program_suffix=$ac_optarg ;;
1049
1050 -program-transform-name | --program-transform-name \
1051 | --program-transform-nam | --program-transform-na \
1052 | --program-transform-n | --program-transform- \
1053 | --program-transform | --program-transfor \
1054 | --program-transfo | --program-transf \
1055 | --program-trans | --program-tran \
1056 | --progr-tra | --program-tr | --program-t)
1057 ac_prev=program_transform_name ;;
1058 -program-transform-name=* | --program-transform-name=* \
1059 | --program-transform-nam=* | --program-transform-na=* \
1060 | --program-transform-n=* | --program-transform-=* \
1061 | --program-transform=* | --program-transfor=* \
1062 | --program-transfo=* | --program-transf=* \
1063 | --program-trans=* | --program-tran=* \
1064 | --progr-tra=* | --program-tr=* | --program-t=*)
1065 program_transform_name=$ac_optarg ;;
1066
1067 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1068 ac_prev=pdfdir ;;
1069 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1070 pdfdir=$ac_optarg ;;
1071
1072 -psdir | --psdir | --psdi | --psd | --ps)
1073 ac_prev=psdir ;;
1074 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1075 psdir=$ac_optarg ;;
1076
1077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078 | -silent | --silent | --silen | --sile | --sil)
1079 silent=yes ;;
1080
1081 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1082 ac_prev=sbindir ;;
1083 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1084 | --sbi=* | --sb=*)
1085 sbindir=$ac_optarg ;;
1086
1087 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1088 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1089 | --sharedst | --shareds | --shared | --share | --shar \
1090 | --sha | --sh)
1091 ac_prev=sharedstatedir ;;
1092 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1093 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1094 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1095 | --sha=* | --sh=*)
1096 sharedstatedir=$ac_optarg ;;
1097
1098 -site | --site | --sit)
1099 ac_prev=site ;;
1100 -site=* | --site=* | --sit=*)
1101 site=$ac_optarg ;;
1102
1103 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1104 ac_prev=srcdir ;;
1105 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1106 srcdir=$ac_optarg ;;
1107
1108 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1109 | --syscon | --sysco | --sysc | --sys | --sy)
1110 ac_prev=sysconfdir ;;
1111 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1112 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1113 sysconfdir=$ac_optarg ;;
1114
1115 -target | --target | --targe | --targ | --tar | --ta | --t)
1116 ac_prev=target_alias ;;
1117 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1118 target_alias=$ac_optarg ;;
1119
1120 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1121 verbose=yes ;;
1122
1123 -version | --version | --versio | --versi | --vers | -V)
1124 ac_init_version=: ;;
1125
1126 -with-* | --with-*)
1127 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1128 # Reject names that are not valid shell variable names.
1129 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1130 as_fn_error $? "invalid package name: $ac_useropt"
1131 ac_useropt_orig=$ac_useropt
1132 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1133 case $ac_user_opts in
1134 *"
1135 "with_$ac_useropt"
1136 "*) ;;
1137 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1138 ac_unrecognized_sep=', ';;
1139 esac
1140 eval with_$ac_useropt=\$ac_optarg ;;
1141
1142 -without-* | --without-*)
1143 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1144 # Reject names that are not valid shell variable names.
1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146 as_fn_error $? "invalid package name: $ac_useropt"
1147 ac_useropt_orig=$ac_useropt
1148 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149 case $ac_user_opts in
1150 *"
1151 "with_$ac_useropt"
1152 "*) ;;
1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1154 ac_unrecognized_sep=', ';;
1155 esac
1156 eval with_$ac_useropt=no ;;
1157
1158 --x)
1159 # Obsolete; use --with-x.
1160 with_x=yes ;;
1161
1162 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1163 | --x-incl | --x-inc | --x-in | --x-i)
1164 ac_prev=x_includes ;;
1165 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1166 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1167 x_includes=$ac_optarg ;;
1168
1169 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1170 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1171 ac_prev=x_libraries ;;
1172 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1173 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1174 x_libraries=$ac_optarg ;;
1175
1176 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1177 Try \`$0 --help' for more information"
1178 ;;
1179
1180 *=*)
1181 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1182 # Reject names that are not valid shell variable names.
1183 case $ac_envvar in #(
1184 '' | [0-9]* | *[!_$as_cr_alnum]* )
1185 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1186 esac
1187 eval $ac_envvar=\$ac_optarg
1188 export $ac_envvar ;;
1189
1190 *)
1191 # FIXME: should be removed in autoconf 3.0.
1192 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1193 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1194 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1195 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1196 ;;
1197
1198 esac
1199 done
1200
1201 if test -n "$ac_prev"; then
1202 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1203 as_fn_error $? "missing argument to $ac_option"
1204 fi
1205
1206 if test -n "$ac_unrecognized_opts"; then
1207 case $enable_option_checking in
1208 no) ;;
1209 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1210 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1211 esac
1212 fi
1213
1214 # Check all directory arguments for consistency.
1215 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1216 datadir sysconfdir sharedstatedir localstatedir includedir \
1217 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1218 libdir localedir mandir
1219 do
1220 eval ac_val=\$$ac_var
1221 # Remove trailing slashes.
1222 case $ac_val in
1223 */ )
1224 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1225 eval $ac_var=\$ac_val;;
1226 esac
1227 # Be sure to have absolute directory names.
1228 case $ac_val in
1229 [\\/$]* | ?:[\\/]* ) continue;;
1230 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1231 esac
1232 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1233 done
1234
1235 # There might be people who depend on the old broken behavior: `$host'
1236 # used to hold the argument of --host etc.
1237 # FIXME: To remove some day.
1238 build=$build_alias
1239 host=$host_alias
1240 target=$target_alias
1241
1242 # FIXME: To remove some day.
1243 if test "x$host_alias" != x; then
1244 if test "x$build_alias" = x; then
1245 cross_compiling=maybe
1246 elif test "x$build_alias" != "x$host_alias"; then
1247 cross_compiling=yes
1248 fi
1249 fi
1250
1251 ac_tool_prefix=
1252 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1253
1254 test "$silent" = yes && exec 6>/dev/null
1255
1256
1257 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1258 ac_ls_di=`ls -di .` &&
1259 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1260 as_fn_error $? "working directory cannot be determined"
1261 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1262 as_fn_error $? "pwd does not report name of working directory"
1263
1264
1265 # Find the source files, if location was not specified.
1266 if test -z "$srcdir"; then
1267 ac_srcdir_defaulted=yes
1268 # Try the directory containing this script, then the parent directory.
1269 ac_confdir=`$as_dirname -- "$as_myself" ||
1270 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1271 X"$as_myself" : 'X\(//\)[^/]' \| \
1272 X"$as_myself" : 'X\(//\)$' \| \
1273 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1274 $as_echo X"$as_myself" |
1275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1276 s//\1/
1277 q
1278 }
1279 /^X\(\/\/\)[^/].*/{
1280 s//\1/
1281 q
1282 }
1283 /^X\(\/\/\)$/{
1284 s//\1/
1285 q
1286 }
1287 /^X\(\/\).*/{
1288 s//\1/
1289 q
1290 }
1291 s/.*/./; q'`
1292 srcdir=$ac_confdir
1293 if test ! -r "$srcdir/$ac_unique_file"; then
1294 srcdir=..
1295 fi
1296 else
1297 ac_srcdir_defaulted=no
1298 fi
1299 if test ! -r "$srcdir/$ac_unique_file"; then
1300 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1301 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1302 fi
1303 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1304 ac_abs_confdir=`(
1305 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1306 pwd)`
1307 # When building in place, set srcdir=.
1308 if test "$ac_abs_confdir" = "$ac_pwd"; then
1309 srcdir=.
1310 fi
1311 # Remove unnecessary trailing slashes from srcdir.
1312 # Double slashes in file names in object file debugging info
1313 # mess up M-x gdb in Emacs.
1314 case $srcdir in
1315 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1316 esac
1317 for ac_var in $ac_precious_vars; do
1318 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1319 eval ac_env_${ac_var}_value=\$${ac_var}
1320 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1321 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1322 done
1323
1324 #
1325 # Report the --help message.
1326 #
1327 if test "$ac_init_help" = "long"; then
1328 # Omit some internal or obsolete options to make the list less imposing.
1329 # This message is too long to be a string in the A/UX 3.1 sh.
1330 cat <<_ACEOF
1331 \`configure' configures hopm TRUNK to adapt to many kinds of systems.
1332
1333 Usage: $0 [OPTION]... [VAR=VALUE]...
1334
1335 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1336 VAR=VALUE. See below for descriptions of some of the useful variables.
1337
1338 Defaults for the options are specified in brackets.
1339
1340 Configuration:
1341 -h, --help display this help and exit
1342 --help=short display options specific to this package
1343 --help=recursive display the short help of all the included packages
1344 -V, --version display version information and exit
1345 -q, --quiet, --silent do not print \`checking ...' messages
1346 --cache-file=FILE cache test results in FILE [disabled]
1347 -C, --config-cache alias for \`--cache-file=config.cache'
1348 -n, --no-create do not create output files
1349 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1350
1351 Installation directories:
1352 --prefix=PREFIX install architecture-independent files in PREFIX
1353 [$ac_default_prefix]
1354 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1355 [PREFIX]
1356
1357 By default, \`make install' will install all the files in
1358 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1359 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1360 for instance \`--prefix=\$HOME'.
1361
1362 For better control, use the options below.
1363
1364 Fine tuning of the installation directories:
1365 --bindir=DIR user executables [EPREFIX/bin]
1366 --sbindir=DIR system admin executables [EPREFIX/sbin]
1367 --libexecdir=DIR program executables [EPREFIX/libexec]
1368 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1369 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1370 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1371 --libdir=DIR object code libraries [EPREFIX/lib]
1372 --includedir=DIR C header files [PREFIX/include]
1373 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1374 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1375 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1376 --infodir=DIR info documentation [DATAROOTDIR/info]
1377 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1378 --mandir=DIR man documentation [DATAROOTDIR/man]
1379 --docdir=DIR documentation root [DATAROOTDIR/doc/hopm]
1380 --htmldir=DIR html documentation [DOCDIR]
1381 --dvidir=DIR dvi documentation [DOCDIR]
1382 --pdfdir=DIR pdf documentation [DOCDIR]
1383 --psdir=DIR ps documentation [DOCDIR]
1384 _ACEOF
1385
1386 cat <<\_ACEOF
1387
1388 Program names:
1389 --program-prefix=PREFIX prepend PREFIX to installed program names
1390 --program-suffix=SUFFIX append SUFFIX to installed program names
1391 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1392
1393 System types:
1394 --build=BUILD configure for building on BUILD [guessed]
1395 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1396 _ACEOF
1397 fi
1398
1399 if test -n "$ac_init_help"; then
1400 case $ac_init_help in
1401 short | recursive ) echo "Configuration of hopm TRUNK:";;
1402 esac
1403 cat <<\_ACEOF
1404
1405 Optional Features:
1406 --disable-option-checking ignore unrecognized --enable/--with options
1407 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1408 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1409 --enable-silent-rules less verbose build output (undo: "make V=1")
1410 --disable-silent-rules verbose build output (undo: "make V=0")
1411 --enable-maintainer-mode
1412 enable make rules and dependencies not useful (and
1413 sometimes confusing) to the casual installer
1414 --enable-dependency-tracking
1415 do not reject slow dependency extractors
1416 --disable-dependency-tracking
1417 speeds up one-time build
1418 --enable-shared[=PKGS] build shared libraries [default=yes]
1419 --enable-static[=PKGS] build static libraries [default=yes]
1420 --enable-fast-install[=PKGS]
1421 optimize for fast installation [default=yes]
1422 --disable-libtool-lock avoid locking (might break parallel builds)
1423 --enable-assert Enable assert() statements
1424 --enable-warnings Enable compiler warnings.
1425
1426 Optional Packages:
1427 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1428 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1429 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1430 both]
1431 --with-aix-soname=aix|svr4|both
1432 shared library versioning (aka "SONAME") variant to
1433 provide on AIX, [default=aix].
1434 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1435 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1436 compiler's sysroot if not specified).
1437
1438 Some influential environment variables:
1439 CC C compiler command
1440 CFLAGS C compiler flags
1441 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1442 nonstandard directory <lib dir>
1443 LIBS libraries to pass to the linker, e.g. -l<library>
1444 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1445 you have headers in a nonstandard directory <include dir>
1446 LT_SYS_LIBRARY_PATH
1447 User-defined run-time library search path.
1448 CPP C preprocessor
1449 YACC The `Yet Another Compiler Compiler' implementation to use.
1450 Defaults to the first program found out of: `bison -y', `byacc',
1451 `yacc'.
1452 YFLAGS The list of arguments that will be passed by default to $YACC.
1453 This script will default YFLAGS to the empty string to avoid a
1454 default value of `-d' given by some make applications.
1455
1456 Use these variables to override the choices made by `configure' or to help
1457 it to find libraries and programs with nonstandard names/locations.
1458
1459 Report bugs to <bugs@ircd-hybrid.org>.
1460 _ACEOF
1461 ac_status=$?
1462 fi
1463
1464 if test "$ac_init_help" = "recursive"; then
1465 # If there are subdirs, report their specific --help.
1466 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1467 test -d "$ac_dir" ||
1468 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1469 continue
1470 ac_builddir=.
1471
1472 case "$ac_dir" in
1473 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1474 *)
1475 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1476 # A ".." for each directory in $ac_dir_suffix.
1477 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1478 case $ac_top_builddir_sub in
1479 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1480 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1481 esac ;;
1482 esac
1483 ac_abs_top_builddir=$ac_pwd
1484 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1485 # for backward compatibility:
1486 ac_top_builddir=$ac_top_build_prefix
1487
1488 case $srcdir in
1489 .) # We are building in place.
1490 ac_srcdir=.
1491 ac_top_srcdir=$ac_top_builddir_sub
1492 ac_abs_top_srcdir=$ac_pwd ;;
1493 [\\/]* | ?:[\\/]* ) # Absolute name.
1494 ac_srcdir=$srcdir$ac_dir_suffix;
1495 ac_top_srcdir=$srcdir
1496 ac_abs_top_srcdir=$srcdir ;;
1497 *) # Relative name.
1498 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1499 ac_top_srcdir=$ac_top_build_prefix$srcdir
1500 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1501 esac
1502 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1503
1504 cd "$ac_dir" || { ac_status=$?; continue; }
1505 # Check for guested configure.
1506 if test -f "$ac_srcdir/configure.gnu"; then
1507 echo &&
1508 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1509 elif test -f "$ac_srcdir/configure"; then
1510 echo &&
1511 $SHELL "$ac_srcdir/configure" --help=recursive
1512 else
1513 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1514 fi || ac_status=$?
1515 cd "$ac_pwd" || { ac_status=$?; break; }
1516 done
1517 fi
1518
1519 test -n "$ac_init_help" && exit $ac_status
1520 if $ac_init_version; then
1521 cat <<\_ACEOF
1522 hopm configure TRUNK
1523 generated by GNU Autoconf 2.69
1524
1525 Copyright (C) 2012 Free Software Foundation, Inc.
1526 This configure script is free software; the Free Software Foundation
1527 gives unlimited permission to copy, distribute and modify it.
1528 _ACEOF
1529 exit
1530 fi
1531
1532 ## ------------------------ ##
1533 ## Autoconf initialization. ##
1534 ## ------------------------ ##
1535
1536 # ac_fn_c_try_compile LINENO
1537 # --------------------------
1538 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1539 ac_fn_c_try_compile ()
1540 {
1541 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1542 rm -f conftest.$ac_objext
1543 if { { ac_try="$ac_compile"
1544 case "(($ac_try" in
1545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1546 *) ac_try_echo=$ac_try;;
1547 esac
1548 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1549 $as_echo "$ac_try_echo"; } >&5
1550 (eval "$ac_compile") 2>conftest.err
1551 ac_status=$?
1552 if test -s conftest.err; then
1553 grep -v '^ *+' conftest.err >conftest.er1
1554 cat conftest.er1 >&5
1555 mv -f conftest.er1 conftest.err
1556 fi
1557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1558 test $ac_status = 0; } && {
1559 test -z "$ac_c_werror_flag" ||
1560 test ! -s conftest.err
1561 } && test -s conftest.$ac_objext; then :
1562 ac_retval=0
1563 else
1564 $as_echo "$as_me: failed program was:" >&5
1565 sed 's/^/| /' conftest.$ac_ext >&5
1566
1567 ac_retval=1
1568 fi
1569 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1570 as_fn_set_status $ac_retval
1571
1572 } # ac_fn_c_try_compile
1573
1574 # ac_fn_c_try_link LINENO
1575 # -----------------------
1576 # Try to link conftest.$ac_ext, and return whether this succeeded.
1577 ac_fn_c_try_link ()
1578 {
1579 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580 rm -f conftest.$ac_objext conftest$ac_exeext
1581 if { { ac_try="$ac_link"
1582 case "(($ac_try" in
1583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1584 *) ac_try_echo=$ac_try;;
1585 esac
1586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1587 $as_echo "$ac_try_echo"; } >&5
1588 (eval "$ac_link") 2>conftest.err
1589 ac_status=$?
1590 if test -s conftest.err; then
1591 grep -v '^ *+' conftest.err >conftest.er1
1592 cat conftest.er1 >&5
1593 mv -f conftest.er1 conftest.err
1594 fi
1595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1596 test $ac_status = 0; } && {
1597 test -z "$ac_c_werror_flag" ||
1598 test ! -s conftest.err
1599 } && test -s conftest$ac_exeext && {
1600 test "$cross_compiling" = yes ||
1601 test -x conftest$ac_exeext
1602 }; then :
1603 ac_retval=0
1604 else
1605 $as_echo "$as_me: failed program was:" >&5
1606 sed 's/^/| /' conftest.$ac_ext >&5
1607
1608 ac_retval=1
1609 fi
1610 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1611 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1612 # interfere with the next link command; also delete a directory that is
1613 # left behind by Apple's compiler. We do this before executing the actions.
1614 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1615 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1616 as_fn_set_status $ac_retval
1617
1618 } # ac_fn_c_try_link
1619
1620 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1621 # -------------------------------------------------------
1622 # Tests whether HEADER exists and can be compiled using the include files in
1623 # INCLUDES, setting the cache variable VAR accordingly.
1624 ac_fn_c_check_header_compile ()
1625 {
1626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1628 $as_echo_n "checking for $2... " >&6; }
1629 if eval \${$3+:} false; then :
1630 $as_echo_n "(cached) " >&6
1631 else
1632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1633 /* end confdefs.h. */
1634 $4
1635 #include <$2>
1636 _ACEOF
1637 if ac_fn_c_try_compile "$LINENO"; then :
1638 eval "$3=yes"
1639 else
1640 eval "$3=no"
1641 fi
1642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1643 fi
1644 eval ac_res=\$$3
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1646 $as_echo "$ac_res" >&6; }
1647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1648
1649 } # ac_fn_c_check_header_compile
1650
1651 # ac_fn_c_try_cpp LINENO
1652 # ----------------------
1653 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1654 ac_fn_c_try_cpp ()
1655 {
1656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657 if { { ac_try="$ac_cpp conftest.$ac_ext"
1658 case "(($ac_try" in
1659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660 *) ac_try_echo=$ac_try;;
1661 esac
1662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663 $as_echo "$ac_try_echo"; } >&5
1664 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1665 ac_status=$?
1666 if test -s conftest.err; then
1667 grep -v '^ *+' conftest.err >conftest.er1
1668 cat conftest.er1 >&5
1669 mv -f conftest.er1 conftest.err
1670 fi
1671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672 test $ac_status = 0; } > conftest.i && {
1673 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1674 test ! -s conftest.err
1675 }; then :
1676 ac_retval=0
1677 else
1678 $as_echo "$as_me: failed program was:" >&5
1679 sed 's/^/| /' conftest.$ac_ext >&5
1680
1681 ac_retval=1
1682 fi
1683 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684 as_fn_set_status $ac_retval
1685
1686 } # ac_fn_c_try_cpp
1687
1688 # ac_fn_c_try_run LINENO
1689 # ----------------------
1690 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1691 # that executables *can* be run.
1692 ac_fn_c_try_run ()
1693 {
1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695 if { { ac_try="$ac_link"
1696 case "(($ac_try" in
1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698 *) ac_try_echo=$ac_try;;
1699 esac
1700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 $as_echo "$ac_try_echo"; } >&5
1702 (eval "$ac_link") 2>&5
1703 ac_status=$?
1704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1706 { { case "(($ac_try" in
1707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1708 *) ac_try_echo=$ac_try;;
1709 esac
1710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1711 $as_echo "$ac_try_echo"; } >&5
1712 (eval "$ac_try") 2>&5
1713 ac_status=$?
1714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715 test $ac_status = 0; }; }; then :
1716 ac_retval=0
1717 else
1718 $as_echo "$as_me: program exited with status $ac_status" >&5
1719 $as_echo "$as_me: failed program was:" >&5
1720 sed 's/^/| /' conftest.$ac_ext >&5
1721
1722 ac_retval=$ac_status
1723 fi
1724 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1725 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1726 as_fn_set_status $ac_retval
1727
1728 } # ac_fn_c_try_run
1729
1730 # ac_fn_c_check_func LINENO FUNC VAR
1731 # ----------------------------------
1732 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1733 ac_fn_c_check_func ()
1734 {
1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1737 $as_echo_n "checking for $2... " >&6; }
1738 if eval \${$3+:} false; then :
1739 $as_echo_n "(cached) " >&6
1740 else
1741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1742 /* end confdefs.h. */
1743 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1745 #define $2 innocuous_$2
1746
1747 /* System header to define __stub macros and hopefully few prototypes,
1748 which can conflict with char $2 (); below.
1749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1750 <limits.h> exists even on freestanding compilers. */
1751
1752 #ifdef __STDC__
1753 # include <limits.h>
1754 #else
1755 # include <assert.h>
1756 #endif
1757
1758 #undef $2
1759
1760 /* Override any GCC internal prototype to avoid an error.
1761 Use char because int might match the return type of a GCC
1762 builtin and then its argument prototype would still apply. */
1763 #ifdef __cplusplus
1764 extern "C"
1765 #endif
1766 char $2 ();
1767 /* The GNU C library defines this for functions which it implements
1768 to always fail with ENOSYS. Some functions are actually named
1769 something starting with __ and the normal name is an alias. */
1770 #if defined __stub_$2 || defined __stub___$2
1771 choke me
1772 #endif
1773
1774 int
1775 main ()
1776 {
1777 return $2 ();
1778 ;
1779 return 0;
1780 }
1781 _ACEOF
1782 if ac_fn_c_try_link "$LINENO"; then :
1783 eval "$3=yes"
1784 else
1785 eval "$3=no"
1786 fi
1787 rm -f core conftest.err conftest.$ac_objext \
1788 conftest$ac_exeext conftest.$ac_ext
1789 fi
1790 eval ac_res=\$$3
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1792 $as_echo "$ac_res" >&6; }
1793 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1794
1795 } # ac_fn_c_check_func
1796 cat >config.log <<_ACEOF
1797 This file contains any messages produced by compilers while
1798 running configure, to aid debugging if configure makes a mistake.
1799
1800 It was created by hopm $as_me TRUNK, which was
1801 generated by GNU Autoconf 2.69. Invocation command line was
1802
1803 $ $0 $@
1804
1805 _ACEOF
1806 exec 5>>config.log
1807 {
1808 cat <<_ASUNAME
1809 ## --------- ##
1810 ## Platform. ##
1811 ## --------- ##
1812
1813 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1814 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1815 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1816 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1817 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1818
1819 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1820 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1821
1822 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1823 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1824 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1825 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1826 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1827 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1828 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1829
1830 _ASUNAME
1831
1832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1833 for as_dir in $PATH
1834 do
1835 IFS=$as_save_IFS
1836 test -z "$as_dir" && as_dir=.
1837 $as_echo "PATH: $as_dir"
1838 done
1839 IFS=$as_save_IFS
1840
1841 } >&5
1842
1843 cat >&5 <<_ACEOF
1844
1845
1846 ## ----------- ##
1847 ## Core tests. ##
1848 ## ----------- ##
1849
1850 _ACEOF
1851
1852
1853 # Keep a trace of the command line.
1854 # Strip out --no-create and --no-recursion so they do not pile up.
1855 # Strip out --silent because we don't want to record it for future runs.
1856 # Also quote any args containing shell meta-characters.
1857 # Make two passes to allow for proper duplicate-argument suppression.
1858 ac_configure_args=
1859 ac_configure_args0=
1860 ac_configure_args1=
1861 ac_must_keep_next=false
1862 for ac_pass in 1 2
1863 do
1864 for ac_arg
1865 do
1866 case $ac_arg in
1867 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1868 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1869 | -silent | --silent | --silen | --sile | --sil)
1870 continue ;;
1871 *\'*)
1872 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1873 esac
1874 case $ac_pass in
1875 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1876 2)
1877 as_fn_append ac_configure_args1 " '$ac_arg'"
1878 if test $ac_must_keep_next = true; then
1879 ac_must_keep_next=false # Got value, back to normal.
1880 else
1881 case $ac_arg in
1882 *=* | --config-cache | -C | -disable-* | --disable-* \
1883 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1884 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1885 | -with-* | --with-* | -without-* | --without-* | --x)
1886 case "$ac_configure_args0 " in
1887 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1888 esac
1889 ;;
1890 -* ) ac_must_keep_next=true ;;
1891 esac
1892 fi
1893 as_fn_append ac_configure_args " '$ac_arg'"
1894 ;;
1895 esac
1896 done
1897 done
1898 { ac_configure_args0=; unset ac_configure_args0;}
1899 { ac_configure_args1=; unset ac_configure_args1;}
1900
1901 # When interrupted or exit'd, cleanup temporary files, and complete
1902 # config.log. We remove comments because anyway the quotes in there
1903 # would cause problems or look ugly.
1904 # WARNING: Use '\'' to represent an apostrophe within the trap.
1905 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1906 trap 'exit_status=$?
1907 # Save into config.log some information that might help in debugging.
1908 {
1909 echo
1910
1911 $as_echo "## ---------------- ##
1912 ## Cache variables. ##
1913 ## ---------------- ##"
1914 echo
1915 # The following way of writing the cache mishandles newlines in values,
1916 (
1917 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1918 eval ac_val=\$$ac_var
1919 case $ac_val in #(
1920 *${as_nl}*)
1921 case $ac_var in #(
1922 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1923 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1924 esac
1925 case $ac_var in #(
1926 _ | IFS | as_nl) ;; #(
1927 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1928 *) { eval $ac_var=; unset $ac_var;} ;;
1929 esac ;;
1930 esac
1931 done
1932 (set) 2>&1 |
1933 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1934 *${as_nl}ac_space=\ *)
1935 sed -n \
1936 "s/'\''/'\''\\\\'\'''\''/g;
1937 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1938 ;; #(
1939 *)
1940 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1941 ;;
1942 esac |
1943 sort
1944 )
1945 echo
1946
1947 $as_echo "## ----------------- ##
1948 ## Output variables. ##
1949 ## ----------------- ##"
1950 echo
1951 for ac_var in $ac_subst_vars
1952 do
1953 eval ac_val=\$$ac_var
1954 case $ac_val in
1955 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1956 esac
1957 $as_echo "$ac_var='\''$ac_val'\''"
1958 done | sort
1959 echo
1960
1961 if test -n "$ac_subst_files"; then
1962 $as_echo "## ------------------- ##
1963 ## File substitutions. ##
1964 ## ------------------- ##"
1965 echo
1966 for ac_var in $ac_subst_files
1967 do
1968 eval ac_val=\$$ac_var
1969 case $ac_val in
1970 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1971 esac
1972 $as_echo "$ac_var='\''$ac_val'\''"
1973 done | sort
1974 echo
1975 fi
1976
1977 if test -s confdefs.h; then
1978 $as_echo "## ----------- ##
1979 ## confdefs.h. ##
1980 ## ----------- ##"
1981 echo
1982 cat confdefs.h
1983 echo
1984 fi
1985 test "$ac_signal" != 0 &&
1986 $as_echo "$as_me: caught signal $ac_signal"
1987 $as_echo "$as_me: exit $exit_status"
1988 } >&5
1989 rm -f core *.core core.conftest.* &&
1990 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1991 exit $exit_status
1992 ' 0
1993 for ac_signal in 1 2 13 15; do
1994 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1995 done
1996 ac_signal=0
1997
1998 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1999 rm -f -r conftest* confdefs.h
2000
2001 $as_echo "/* confdefs.h */" > confdefs.h
2002
2003 # Predefined preprocessor variables.
2004
2005 cat >>confdefs.h <<_ACEOF
2006 #define PACKAGE_NAME "$PACKAGE_NAME"
2007 _ACEOF
2008
2009 cat >>confdefs.h <<_ACEOF
2010 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2011 _ACEOF
2012
2013 cat >>confdefs.h <<_ACEOF
2014 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2015 _ACEOF
2016
2017 cat >>confdefs.h <<_ACEOF
2018 #define PACKAGE_STRING "$PACKAGE_STRING"
2019 _ACEOF
2020
2021 cat >>confdefs.h <<_ACEOF
2022 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2023 _ACEOF
2024
2025 cat >>confdefs.h <<_ACEOF
2026 #define PACKAGE_URL "$PACKAGE_URL"
2027 _ACEOF
2028
2029
2030 # Let the site file select an alternate cache file if it wants to.
2031 # Prefer an explicitly selected file to automatically selected ones.
2032 ac_site_file1=NONE
2033 ac_site_file2=NONE
2034 if test -n "$CONFIG_SITE"; then
2035 # We do not want a PATH search for config.site.
2036 case $CONFIG_SITE in #((
2037 -*) ac_site_file1=./$CONFIG_SITE;;
2038 */*) ac_site_file1=$CONFIG_SITE;;
2039 *) ac_site_file1=./$CONFIG_SITE;;
2040 esac
2041 elif test "x$prefix" != xNONE; then
2042 ac_site_file1=$prefix/share/config.site
2043 ac_site_file2=$prefix/etc/config.site
2044 else
2045 ac_site_file1=$ac_default_prefix/share/config.site
2046 ac_site_file2=$ac_default_prefix/etc/config.site
2047 fi
2048 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2049 do
2050 test "x$ac_site_file" = xNONE && continue
2051 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2053 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2054 sed 's/^/| /' "$ac_site_file" >&5
2055 . "$ac_site_file" \
2056 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2057 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2058 as_fn_error $? "failed to load site script $ac_site_file
2059 See \`config.log' for more details" "$LINENO" 5; }
2060 fi
2061 done
2062
2063 if test -r "$cache_file"; then
2064 # Some versions of bash will fail to source /dev/null (special files
2065 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2066 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2068 $as_echo "$as_me: loading cache $cache_file" >&6;}
2069 case $cache_file in
2070 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2071 *) . "./$cache_file";;
2072 esac
2073 fi
2074 else
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2076 $as_echo "$as_me: creating cache $cache_file" >&6;}
2077 >$cache_file
2078 fi
2079
2080 # Check that the precious variables saved in the cache have kept the same
2081 # value.
2082 ac_cache_corrupted=false
2083 for ac_var in $ac_precious_vars; do
2084 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2085 eval ac_new_set=\$ac_env_${ac_var}_set
2086 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2087 eval ac_new_val=\$ac_env_${ac_var}_value
2088 case $ac_old_set,$ac_new_set in
2089 set,)
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2091 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2092 ac_cache_corrupted=: ;;
2093 ,set)
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2095 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2096 ac_cache_corrupted=: ;;
2097 ,);;
2098 *)
2099 if test "x$ac_old_val" != "x$ac_new_val"; then
2100 # differences in whitespace do not lead to failure.
2101 ac_old_val_w=`echo x $ac_old_val`
2102 ac_new_val_w=`echo x $ac_new_val`
2103 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2105 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2106 ac_cache_corrupted=:
2107 else
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2109 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2110 eval $ac_var=\$ac_old_val
2111 fi
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2113 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2115 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2116 fi;;
2117 esac
2118 # Pass precious variables to config.status.
2119 if test "$ac_new_set" = set; then
2120 case $ac_new_val in
2121 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2122 *) ac_arg=$ac_var=$ac_new_val ;;
2123 esac
2124 case " $ac_configure_args " in
2125 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2126 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2127 esac
2128 fi
2129 done
2130 if $ac_cache_corrupted; then
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2132 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2134 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2135 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2136 fi
2137 ## -------------------- ##
2138 ## Main body of script. ##
2139 ## -------------------- ##
2140
2141 ac_ext=c
2142 ac_cpp='$CPP $CPPFLAGS'
2143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2146
2147
2148 am__api_version='1.15'
2149
2150 ac_aux_dir=
2151 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2152 if test -f "$ac_dir/install-sh"; then
2153 ac_aux_dir=$ac_dir
2154 ac_install_sh="$ac_aux_dir/install-sh -c"
2155 break
2156 elif test -f "$ac_dir/install.sh"; then
2157 ac_aux_dir=$ac_dir
2158 ac_install_sh="$ac_aux_dir/install.sh -c"
2159 break
2160 elif test -f "$ac_dir/shtool"; then
2161 ac_aux_dir=$ac_dir
2162 ac_install_sh="$ac_aux_dir/shtool install -c"
2163 break
2164 fi
2165 done
2166 if test -z "$ac_aux_dir"; then
2167 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2168 fi
2169
2170 # These three variables are undocumented and unsupported,
2171 # and are intended to be withdrawn in a future Autoconf release.
2172 # They can cause serious problems if a builder's source tree is in a directory
2173 # whose full name contains unusual characters.
2174 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2175 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2176 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2177
2178
2179 # Find a good install program. We prefer a C program (faster),
2180 # so one script is as good as another. But avoid the broken or
2181 # incompatible versions:
2182 # SysV /etc/install, /usr/sbin/install
2183 # SunOS /usr/etc/install
2184 # IRIX /sbin/install
2185 # AIX /bin/install
2186 # AmigaOS /C/install, which installs bootblocks on floppy discs
2187 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2188 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2189 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2190 # OS/2's system install, which has a completely different semantic
2191 # ./install, which can be erroneously created by make from ./install.sh.
2192 # Reject install programs that cannot install multiple files.
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2194 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2195 if test -z "$INSTALL"; then
2196 if ${ac_cv_path_install+:} false; then :
2197 $as_echo_n "(cached) " >&6
2198 else
2199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2200 for as_dir in $PATH
2201 do
2202 IFS=$as_save_IFS
2203 test -z "$as_dir" && as_dir=.
2204 # Account for people who put trailing slashes in PATH elements.
2205 case $as_dir/ in #((
2206 ./ | .// | /[cC]/* | \
2207 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2208 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2209 /usr/ucb/* ) ;;
2210 *)
2211 # OSF1 and SCO ODT 3.0 have their own names for install.
2212 # Don't use installbsd from OSF since it installs stuff as root
2213 # by default.
2214 for ac_prog in ginstall scoinst install; do
2215 for ac_exec_ext in '' $ac_executable_extensions; do
2216 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2217 if test $ac_prog = install &&
2218 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2219 # AIX install. It has an incompatible calling convention.
2220 :
2221 elif test $ac_prog = install &&
2222 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2223 # program-specific install script used by HP pwplus--don't use.
2224 :
2225 else
2226 rm -rf conftest.one conftest.two conftest.dir
2227 echo one > conftest.one
2228 echo two > conftest.two
2229 mkdir conftest.dir
2230 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2231 test -s conftest.one && test -s conftest.two &&
2232 test -s conftest.dir/conftest.one &&
2233 test -s conftest.dir/conftest.two
2234 then
2235 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2236 break 3
2237 fi
2238 fi
2239 fi
2240 done
2241 done
2242 ;;
2243 esac
2244
2245 done
2246 IFS=$as_save_IFS
2247
2248 rm -rf conftest.one conftest.two conftest.dir
2249
2250 fi
2251 if test "${ac_cv_path_install+set}" = set; then
2252 INSTALL=$ac_cv_path_install
2253 else
2254 # As a last resort, use the slow shell script. Don't cache a
2255 # value for INSTALL within a source directory, because that will
2256 # break other packages using the cache if that directory is
2257 # removed, or if the value is a relative name.
2258 INSTALL=$ac_install_sh
2259 fi
2260 fi
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2262 $as_echo "$INSTALL" >&6; }
2263
2264 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2265 # It thinks the first close brace ends the variable substitution.
2266 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2267
2268 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2269
2270 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2271
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2273 $as_echo_n "checking whether build environment is sane... " >&6; }
2274 # Reject unsafe characters in $srcdir or the absolute working directory
2275 # name. Accept space and tab only in the latter.
2276 am_lf='
2277 '
2278 case `pwd` in
2279 *[\\\"\#\$\&\'\`$am_lf]*)
2280 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2281 esac
2282 case $srcdir in
2283 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2284 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2285 esac
2286
2287 # Do 'set' in a subshell so we don't clobber the current shell's
2288 # arguments. Must try -L first in case configure is actually a
2289 # symlink; some systems play weird games with the mod time of symlinks
2290 # (eg FreeBSD returns the mod time of the symlink's containing
2291 # directory).
2292 if (
2293 am_has_slept=no
2294 for am_try in 1 2; do
2295 echo "timestamp, slept: $am_has_slept" > conftest.file
2296 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2297 if test "$*" = "X"; then
2298 # -L didn't work.
2299 set X `ls -t "$srcdir/configure" conftest.file`
2300 fi
2301 if test "$*" != "X $srcdir/configure conftest.file" \
2302 && test "$*" != "X conftest.file $srcdir/configure"; then
2303
2304 # If neither matched, then we have a broken ls. This can happen
2305 # if, for instance, CONFIG_SHELL is bash and it inherits a
2306 # broken ls alias from the environment. This has actually
2307 # happened. Such a system could not be considered "sane".
2308 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2309 alias in your environment" "$LINENO" 5
2310 fi
2311 if test "$2" = conftest.file || test $am_try -eq 2; then
2312 break
2313 fi
2314 # Just in case.
2315 sleep 1
2316 am_has_slept=yes
2317 done
2318 test "$2" = conftest.file
2319 )
2320 then
2321 # Ok.
2322 :
2323 else
2324 as_fn_error $? "newly created file is older than distributed files!
2325 Check your system clock" "$LINENO" 5
2326 fi
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2328 $as_echo "yes" >&6; }
2329 # If we didn't sleep, we still need to ensure time stamps of config.status and
2330 # generated files are strictly newer.
2331 am_sleep_pid=
2332 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2333 ( sleep 1 ) &
2334 am_sleep_pid=$!
2335 fi
2336
2337 rm -f conftest.file
2338
2339 test "$program_prefix" != NONE &&
2340 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2341 # Use a double $ so make ignores it.
2342 test "$program_suffix" != NONE &&
2343 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2344 # Double any \ or $.
2345 # By default was `s,x,x', remove it if useless.
2346 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2347 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2348
2349 # Expand $ac_aux_dir to an absolute path.
2350 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2351
2352 if test x"${MISSING+set}" != xset; then
2353 case $am_aux_dir in
2354 *\ * | *\ *)
2355 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2356 *)
2357 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2358 esac
2359 fi
2360 # Use eval to expand $SHELL
2361 if eval "$MISSING --is-lightweight"; then
2362 am_missing_run="$MISSING "
2363 else
2364 am_missing_run=
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2366 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2367 fi
2368
2369 if test x"${install_sh+set}" != xset; then
2370 case $am_aux_dir in
2371 *\ * | *\ *)
2372 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2373 *)
2374 install_sh="\${SHELL} $am_aux_dir/install-sh"
2375 esac
2376 fi
2377
2378 # Installed binaries are usually stripped using 'strip' when the user
2379 # run "make install-strip". However 'strip' might not be the right
2380 # tool to use in cross-compilation environments, therefore Automake
2381 # will honor the 'STRIP' environment variable to overrule this program.
2382 if test "$cross_compiling" != no; then
2383 if test -n "$ac_tool_prefix"; then
2384 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2385 set dummy ${ac_tool_prefix}strip; ac_word=$2
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2387 $as_echo_n "checking for $ac_word... " >&6; }
2388 if ${ac_cv_prog_STRIP+:} false; then :
2389 $as_echo_n "(cached) " >&6
2390 else
2391 if test -n "$STRIP"; then
2392 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2393 else
2394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2395 for as_dir in $PATH
2396 do
2397 IFS=$as_save_IFS
2398 test -z "$as_dir" && as_dir=.
2399 for ac_exec_ext in '' $ac_executable_extensions; do
2400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2401 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2403 break 2
2404 fi
2405 done
2406 done
2407 IFS=$as_save_IFS
2408
2409 fi
2410 fi
2411 STRIP=$ac_cv_prog_STRIP
2412 if test -n "$STRIP"; then
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2414 $as_echo "$STRIP" >&6; }
2415 else
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2417 $as_echo "no" >&6; }
2418 fi
2419
2420
2421 fi
2422 if test -z "$ac_cv_prog_STRIP"; then
2423 ac_ct_STRIP=$STRIP
2424 # Extract the first word of "strip", so it can be a program name with args.
2425 set dummy strip; ac_word=$2
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2427 $as_echo_n "checking for $ac_word... " >&6; }
2428 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2429 $as_echo_n "(cached) " >&6
2430 else
2431 if test -n "$ac_ct_STRIP"; then
2432 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2433 else
2434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2435 for as_dir in $PATH
2436 do
2437 IFS=$as_save_IFS
2438 test -z "$as_dir" && as_dir=.
2439 for ac_exec_ext in '' $ac_executable_extensions; do
2440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2441 ac_cv_prog_ac_ct_STRIP="strip"
2442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2443 break 2
2444 fi
2445 done
2446 done
2447 IFS=$as_save_IFS
2448
2449 fi
2450 fi
2451 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2452 if test -n "$ac_ct_STRIP"; then
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2454 $as_echo "$ac_ct_STRIP" >&6; }
2455 else
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2457 $as_echo "no" >&6; }
2458 fi
2459
2460 if test "x$ac_ct_STRIP" = x; then
2461 STRIP=":"
2462 else
2463 case $cross_compiling:$ac_tool_warned in
2464 yes:)
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2466 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2467 ac_tool_warned=yes ;;
2468 esac
2469 STRIP=$ac_ct_STRIP
2470 fi
2471 else
2472 STRIP="$ac_cv_prog_STRIP"
2473 fi
2474
2475 fi
2476 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2477
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2479 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2480 if test -z "$MKDIR_P"; then
2481 if ${ac_cv_path_mkdir+:} false; then :
2482 $as_echo_n "(cached) " >&6
2483 else
2484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2485 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2486 do
2487 IFS=$as_save_IFS
2488 test -z "$as_dir" && as_dir=.
2489 for ac_prog in mkdir gmkdir; do
2490 for ac_exec_ext in '' $ac_executable_extensions; do
2491 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2492 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2493 'mkdir (GNU coreutils) '* | \
2494 'mkdir (coreutils) '* | \
2495 'mkdir (fileutils) '4.1*)
2496 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2497 break 3;;
2498 esac
2499 done
2500 done
2501 done
2502 IFS=$as_save_IFS
2503
2504 fi
2505
2506 test -d ./--version && rmdir ./--version
2507 if test "${ac_cv_path_mkdir+set}" = set; then
2508 MKDIR_P="$ac_cv_path_mkdir -p"
2509 else
2510 # As a last resort, use the slow shell script. Don't cache a
2511 # value for MKDIR_P within a source directory, because that will
2512 # break other packages using the cache if that directory is
2513 # removed, or if the value is a relative name.
2514 MKDIR_P="$ac_install_sh -d"
2515 fi
2516 fi
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2518 $as_echo "$MKDIR_P" >&6; }
2519
2520 for ac_prog in gawk mawk nawk awk
2521 do
2522 # Extract the first word of "$ac_prog", so it can be a program name with args.
2523 set dummy $ac_prog; ac_word=$2
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2525 $as_echo_n "checking for $ac_word... " >&6; }
2526 if ${ac_cv_prog_AWK+:} false; then :
2527 $as_echo_n "(cached) " >&6
2528 else
2529 if test -n "$AWK"; then
2530 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2531 else
2532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2533 for as_dir in $PATH
2534 do
2535 IFS=$as_save_IFS
2536 test -z "$as_dir" && as_dir=.
2537 for ac_exec_ext in '' $ac_executable_extensions; do
2538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2539 ac_cv_prog_AWK="$ac_prog"
2540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2541 break 2
2542 fi
2543 done
2544 done
2545 IFS=$as_save_IFS
2546
2547 fi
2548 fi
2549 AWK=$ac_cv_prog_AWK
2550 if test -n "$AWK"; then
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2552 $as_echo "$AWK" >&6; }
2553 else
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2555 $as_echo "no" >&6; }
2556 fi
2557
2558
2559 test -n "$AWK" && break
2560 done
2561
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2563 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2564 set x ${MAKE-make}
2565 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2566 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2567 $as_echo_n "(cached) " >&6
2568 else
2569 cat >conftest.make <<\_ACEOF
2570 SHELL = /bin/sh
2571 all:
2572 @echo '@@@%%%=$(MAKE)=@@@%%%'
2573 _ACEOF
2574 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2575 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2576 *@@@%%%=?*=@@@%%%*)
2577 eval ac_cv_prog_make_${ac_make}_set=yes;;
2578 *)
2579 eval ac_cv_prog_make_${ac_make}_set=no;;
2580 esac
2581 rm -f conftest.make
2582 fi
2583 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2585 $as_echo "yes" >&6; }
2586 SET_MAKE=
2587 else
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2589 $as_echo "no" >&6; }
2590 SET_MAKE="MAKE=${MAKE-make}"
2591 fi
2592
2593 rm -rf .tst 2>/dev/null
2594 mkdir .tst 2>/dev/null
2595 if test -d .tst; then
2596 am__leading_dot=.
2597 else
2598 am__leading_dot=_
2599 fi
2600 rmdir .tst 2>/dev/null
2601
2602 # Check whether --enable-silent-rules was given.
2603 if test "${enable_silent_rules+set}" = set; then :
2604 enableval=$enable_silent_rules;
2605 fi
2606
2607 case $enable_silent_rules in # (((
2608 yes) AM_DEFAULT_VERBOSITY=0;;
2609 no) AM_DEFAULT_VERBOSITY=1;;
2610 *) AM_DEFAULT_VERBOSITY=1;;
2611 esac
2612 am_make=${MAKE-make}
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2614 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2615 if ${am_cv_make_support_nested_variables+:} false; then :
2616 $as_echo_n "(cached) " >&6
2617 else
2618 if $as_echo 'TRUE=$(BAR$(V))
2619 BAR0=false
2620 BAR1=true
2621 V=1
2622 am__doit:
2623 @$(TRUE)
2624 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2625 am_cv_make_support_nested_variables=yes
2626 else
2627 am_cv_make_support_nested_variables=no
2628 fi
2629 fi
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2631 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2632 if test $am_cv_make_support_nested_variables = yes; then
2633 AM_V='$(V)'
2634 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2635 else
2636 AM_V=$AM_DEFAULT_VERBOSITY
2637 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2638 fi
2639 AM_BACKSLASH='\'
2640
2641 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2642 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2643 # is not polluted with repeated "-I."
2644 am__isrc=' -I$(srcdir)'
2645 # test to see if srcdir already configured
2646 if test -f $srcdir/config.status; then
2647 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2648 fi
2649 fi
2650
2651 # test whether we have cygpath
2652 if test -z "$CYGPATH_W"; then
2653 if (cygpath --version) >/dev/null 2>/dev/null; then
2654 CYGPATH_W='cygpath -w'
2655 else
2656 CYGPATH_W=echo
2657 fi
2658 fi
2659
2660
2661 # Define the identity of the package.
2662 PACKAGE='hopm'
2663 VERSION='TRUNK'
2664
2665
2666 cat >>confdefs.h <<_ACEOF
2667 #define PACKAGE "$PACKAGE"
2668 _ACEOF
2669
2670
2671 cat >>confdefs.h <<_ACEOF
2672 #define VERSION "$VERSION"
2673 _ACEOF
2674
2675 # Some tools Automake needs.
2676
2677 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2678
2679
2680 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2681
2682
2683 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2684
2685
2686 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2687
2688
2689 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2690
2691 # For better backward compatibility. To be removed once Automake 1.9.x
2692 # dies out for good. For more background, see:
2693 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2694 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2695 mkdir_p='$(MKDIR_P)'
2696
2697 # We need awk for the "check" target (and possibly the TAP driver). The
2698 # system "awk" is bad on some platforms.
2699 # Always define AMTAR for backward compatibility. Yes, it's still used
2700 # in the wild :-( We should find a proper way to deprecate it ...
2701 AMTAR='$${TAR-tar}'
2702
2703
2704 # We'll loop over all known methods to create a tar archive until one works.
2705 _am_tools='gnutar pax cpio none'
2706
2707 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2708
2709
2710
2711
2712
2713
2714 # POSIX will say in a future version that running "rm -f" with no argument
2715 # is OK; and we want to be able to make that assumption in our Makefile
2716 # recipes. So use an aggressive probe to check that the usage we want is
2717 # actually supported "in the wild" to an acceptable degree.
2718 # See automake bug#10828.
2719 # To make any issue more visible, cause the running configure to be aborted
2720 # by default if the 'rm' program in use doesn't match our expectations; the
2721 # user can still override this though.
2722 if rm -f && rm -fr && rm -rf; then : OK; else
2723 cat >&2 <<'END'
2724 Oops!
2725
2726 Your 'rm' program seems unable to run without file operands specified
2727 on the command line, even when the '-f' option is present. This is contrary
2728 to the behaviour of most rm programs out there, and not conforming with
2729 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2730
2731 Please tell bug-automake@gnu.org about your system, including the value
2732 of your $PATH and any error possibly output before this message. This
2733 can help us improve future automake versions.
2734
2735 END
2736 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2737 echo 'Configuration will proceed anyway, since you have set the' >&2
2738 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2739 echo >&2
2740 else
2741 cat >&2 <<'END'
2742 Aborting the configuration process, to ensure you take notice of the issue.
2743
2744 You can download and install GNU coreutils to get an 'rm' implementation
2745 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2746
2747 If you want to complete the configuration process using your problematic
2748 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2749 to "yes", and re-run configure.
2750
2751 END
2752 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2753 fi
2754 fi
2755
2756
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2758 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2759 # Check whether --enable-maintainer-mode was given.
2760 if test "${enable_maintainer_mode+set}" = set; then :
2761 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2762 else
2763 USE_MAINTAINER_MODE=no
2764 fi
2765
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2767 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2768 if test $USE_MAINTAINER_MODE = yes; then
2769 MAINTAINER_MODE_TRUE=
2770 MAINTAINER_MODE_FALSE='#'
2771 else
2772 MAINTAINER_MODE_TRUE='#'
2773 MAINTAINER_MODE_FALSE=
2774 fi
2775
2776 MAINT=$MAINTAINER_MODE_TRUE
2777
2778
2779
2780 ac_config_headers="$ac_config_headers src/setup.h"
2781
2782
2783
2784
2785 DEPDIR="${am__leading_dot}deps"
2786
2787 ac_config_commands="$ac_config_commands depfiles"
2788
2789
2790 am_make=${MAKE-make}
2791 cat > confinc << 'END'
2792 am__doit:
2793 @echo this is the am__doit target
2794 .PHONY: am__doit
2795 END
2796 # If we don't find an include directive, just comment out the code.
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2798 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2799 am__include="#"
2800 am__quote=
2801 _am_result=none
2802 # First try GNU make style include.
2803 echo "include confinc" > confmf
2804 # Ignore all kinds of additional output from 'make'.
2805 case `$am_make -s -f confmf 2> /dev/null` in #(
2806 *the\ am__doit\ target*)
2807 am__include=include
2808 am__quote=
2809 _am_result=GNU
2810 ;;
2811 esac
2812 # Now try BSD make style include.
2813 if test "$am__include" = "#"; then
2814 echo '.include "confinc"' > confmf
2815 case `$am_make -s -f confmf 2> /dev/null` in #(
2816 *the\ am__doit\ target*)
2817 am__include=.include
2818 am__quote="\""
2819 _am_result=BSD
2820 ;;
2821 esac
2822 fi
2823
2824
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2826 $as_echo "$_am_result" >&6; }
2827 rm -f confinc confmf
2828
2829 # Check whether --enable-dependency-tracking was given.
2830 if test "${enable_dependency_tracking+set}" = set; then :
2831 enableval=$enable_dependency_tracking;
2832 fi
2833
2834 if test "x$enable_dependency_tracking" != xno; then
2835 am_depcomp="$ac_aux_dir/depcomp"
2836 AMDEPBACKSLASH='\'
2837 am__nodep='_no'
2838 fi
2839 if test "x$enable_dependency_tracking" != xno; then
2840 AMDEP_TRUE=
2841 AMDEP_FALSE='#'
2842 else
2843 AMDEP_TRUE='#'
2844 AMDEP_FALSE=
2845 fi
2846
2847
2848 ac_ext=c
2849 ac_cpp='$CPP $CPPFLAGS'
2850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2853 if test -n "$ac_tool_prefix"; then
2854 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2855 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2857 $as_echo_n "checking for $ac_word... " >&6; }
2858 if ${ac_cv_prog_CC+:} false; then :
2859 $as_echo_n "(cached) " >&6
2860 else
2861 if test -n "$CC"; then
2862 ac_cv_prog_CC="$CC" # Let the user override the test.
2863 else
2864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2865 for as_dir in $PATH
2866 do
2867 IFS=$as_save_IFS
2868 test -z "$as_dir" && as_dir=.
2869 for ac_exec_ext in '' $ac_executable_extensions; do
2870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2871 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2873 break 2
2874 fi
2875 done
2876 done
2877 IFS=$as_save_IFS
2878
2879 fi
2880 fi
2881 CC=$ac_cv_prog_CC
2882 if test -n "$CC"; then
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2884 $as_echo "$CC" >&6; }
2885 else
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2887 $as_echo "no" >&6; }
2888 fi
2889
2890
2891 fi
2892 if test -z "$ac_cv_prog_CC"; then
2893 ac_ct_CC=$CC
2894 # Extract the first word of "gcc", so it can be a program name with args.
2895 set dummy gcc; ac_word=$2
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2897 $as_echo_n "checking for $ac_word... " >&6; }
2898 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2899 $as_echo_n "(cached) " >&6
2900 else
2901 if test -n "$ac_ct_CC"; then
2902 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2903 else
2904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2905 for as_dir in $PATH
2906 do
2907 IFS=$as_save_IFS
2908 test -z "$as_dir" && as_dir=.
2909 for ac_exec_ext in '' $ac_executable_extensions; do
2910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2911 ac_cv_prog_ac_ct_CC="gcc"
2912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2913 break 2
2914 fi
2915 done
2916 done
2917 IFS=$as_save_IFS
2918
2919 fi
2920 fi
2921 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2922 if test -n "$ac_ct_CC"; then
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2924 $as_echo "$ac_ct_CC" >&6; }
2925 else
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2927 $as_echo "no" >&6; }
2928 fi
2929
2930 if test "x$ac_ct_CC" = x; then
2931 CC=""
2932 else
2933 case $cross_compiling:$ac_tool_warned in
2934 yes:)
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2936 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2937 ac_tool_warned=yes ;;
2938 esac
2939 CC=$ac_ct_CC
2940 fi
2941 else
2942 CC="$ac_cv_prog_CC"
2943 fi
2944
2945 if test -z "$CC"; then
2946 if test -n "$ac_tool_prefix"; then
2947 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2948 set dummy ${ac_tool_prefix}cc; ac_word=$2
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2950 $as_echo_n "checking for $ac_word... " >&6; }
2951 if ${ac_cv_prog_CC+:} false; then :
2952 $as_echo_n "(cached) " >&6
2953 else
2954 if test -n "$CC"; then
2955 ac_cv_prog_CC="$CC" # Let the user override the test.
2956 else
2957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2958 for as_dir in $PATH
2959 do
2960 IFS=$as_save_IFS
2961 test -z "$as_dir" && as_dir=.
2962 for ac_exec_ext in '' $ac_executable_extensions; do
2963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2964 ac_cv_prog_CC="${ac_tool_prefix}cc"
2965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2966 break 2
2967 fi
2968 done
2969 done
2970 IFS=$as_save_IFS
2971
2972 fi
2973 fi
2974 CC=$ac_cv_prog_CC
2975 if test -n "$CC"; then
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2977 $as_echo "$CC" >&6; }
2978 else
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2980 $as_echo "no" >&6; }
2981 fi
2982
2983
2984 fi
2985 fi
2986 if test -z "$CC"; then
2987 # Extract the first word of "cc", so it can be a program name with args.
2988 set dummy cc; ac_word=$2
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2990 $as_echo_n "checking for $ac_word... " >&6; }
2991 if ${ac_cv_prog_CC+:} false; then :
2992 $as_echo_n "(cached) " >&6
2993 else
2994 if test -n "$CC"; then
2995 ac_cv_prog_CC="$CC" # Let the user override the test.
2996 else
2997 ac_prog_rejected=no
2998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999 for as_dir in $PATH
3000 do
3001 IFS=$as_save_IFS
3002 test -z "$as_dir" && as_dir=.
3003 for ac_exec_ext in '' $ac_executable_extensions; do
3004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3005 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3006 ac_prog_rejected=yes
3007 continue
3008 fi
3009 ac_cv_prog_CC="cc"
3010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3011 break 2
3012 fi
3013 done
3014 done
3015 IFS=$as_save_IFS
3016
3017 if test $ac_prog_rejected = yes; then
3018 # We found a bogon in the path, so make sure we never use it.
3019 set dummy $ac_cv_prog_CC
3020 shift
3021 if test $# != 0; then
3022 # We chose a different compiler from the bogus one.
3023 # However, it has the same basename, so the bogon will be chosen
3024 # first if we set CC to just the basename; use the full file name.
3025 shift
3026 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3027 fi
3028 fi
3029 fi
3030 fi
3031 CC=$ac_cv_prog_CC
3032 if test -n "$CC"; then
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3034 $as_echo "$CC" >&6; }
3035 else
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3037 $as_echo "no" >&6; }
3038 fi
3039
3040
3041 fi
3042 if test -z "$CC"; then
3043 if test -n "$ac_tool_prefix"; then
3044 for ac_prog in cl.exe
3045 do
3046 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3047 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3049 $as_echo_n "checking for $ac_word... " >&6; }
3050 if ${ac_cv_prog_CC+:} false; then :
3051 $as_echo_n "(cached) " >&6
3052 else
3053 if test -n "$CC"; then
3054 ac_cv_prog_CC="$CC" # Let the user override the test.
3055 else
3056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057 for as_dir in $PATH
3058 do
3059 IFS=$as_save_IFS
3060 test -z "$as_dir" && as_dir=.
3061 for ac_exec_ext in '' $ac_executable_extensions; do
3062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3063 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3065 break 2
3066 fi
3067 done
3068 done
3069 IFS=$as_save_IFS
3070
3071 fi
3072 fi
3073 CC=$ac_cv_prog_CC
3074 if test -n "$CC"; then
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3076 $as_echo "$CC" >&6; }
3077 else
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3079 $as_echo "no" >&6; }
3080 fi
3081
3082
3083 test -n "$CC" && break
3084 done
3085 fi
3086 if test -z "$CC"; then
3087 ac_ct_CC=$CC
3088 for ac_prog in cl.exe
3089 do
3090 # Extract the first word of "$ac_prog", so it can be a program name with args.
3091 set dummy $ac_prog; ac_word=$2
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3093 $as_echo_n "checking for $ac_word... " >&6; }
3094 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3095 $as_echo_n "(cached) " >&6
3096 else
3097 if test -n "$ac_ct_CC"; then
3098 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3099 else
3100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3101 for as_dir in $PATH
3102 do
3103 IFS=$as_save_IFS
3104 test -z "$as_dir" && as_dir=.
3105 for ac_exec_ext in '' $ac_executable_extensions; do
3106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3107 ac_cv_prog_ac_ct_CC="$ac_prog"
3108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3109 break 2
3110 fi
3111 done
3112 done
3113 IFS=$as_save_IFS
3114
3115 fi
3116 fi
3117 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3118 if test -n "$ac_ct_CC"; then
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3120 $as_echo "$ac_ct_CC" >&6; }
3121 else
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3123 $as_echo "no" >&6; }
3124 fi
3125
3126
3127 test -n "$ac_ct_CC" && break
3128 done
3129
3130 if test "x$ac_ct_CC" = x; then
3131 CC=""
3132 else
3133 case $cross_compiling:$ac_tool_warned in
3134 yes:)
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3136 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3137 ac_tool_warned=yes ;;
3138 esac
3139 CC=$ac_ct_CC
3140 fi
3141 fi
3142
3143 fi
3144
3145
3146 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3147 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3148 as_fn_error $? "no acceptable C compiler found in \$PATH
3149 See \`config.log' for more details" "$LINENO" 5; }
3150
3151 # Provide some information about the compiler.
3152 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3153 set X $ac_compile
3154 ac_compiler=$2
3155 for ac_option in --version -v -V -qversion; do
3156 { { ac_try="$ac_compiler $ac_option >&5"
3157 case "(($ac_try" in
3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159 *) ac_try_echo=$ac_try;;
3160 esac
3161 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3162 $as_echo "$ac_try_echo"; } >&5
3163 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3164 ac_status=$?
3165 if test -s conftest.err; then
3166 sed '10a\
3167 ... rest of stderr output deleted ...
3168 10q' conftest.err >conftest.er1
3169 cat conftest.er1 >&5
3170 fi
3171 rm -f conftest.er1 conftest.err
3172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3173 test $ac_status = 0; }
3174 done
3175
3176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3177 /* end confdefs.h. */
3178
3179 int
3180 main ()
3181 {
3182
3183 ;
3184 return 0;
3185 }
3186 _ACEOF
3187 ac_clean_files_save=$ac_clean_files
3188 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3189 # Try to create an executable without -o first, disregard a.out.
3190 # It will help us diagnose broken compilers, and finding out an intuition
3191 # of exeext.
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3193 $as_echo_n "checking whether the C compiler works... " >&6; }
3194 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3195
3196 # The possible output files:
3197 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3198
3199 ac_rmfiles=
3200 for ac_file in $ac_files
3201 do
3202 case $ac_file in
3203 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3204 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3205 esac
3206 done
3207 rm -f $ac_rmfiles
3208
3209 if { { ac_try="$ac_link_default"
3210 case "(($ac_try" in
3211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212 *) ac_try_echo=$ac_try;;
3213 esac
3214 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3215 $as_echo "$ac_try_echo"; } >&5
3216 (eval "$ac_link_default") 2>&5
3217 ac_status=$?
3218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3219 test $ac_status = 0; }; then :
3220 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3221 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3222 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3223 # so that the user can short-circuit this test for compilers unknown to
3224 # Autoconf.
3225 for ac_file in $ac_files ''
3226 do
3227 test -f "$ac_file" || continue
3228 case $ac_file in
3229 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3230 ;;
3231 [ab].out )
3232 # We found the default executable, but exeext='' is most
3233 # certainly right.
3234 break;;
3235 *.* )
3236 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3237 then :; else
3238 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3239 fi
3240 # We set ac_cv_exeext here because the later test for it is not
3241 # safe: cross compilers may not add the suffix if given an `-o'
3242 # argument, so we may need to know it at that point already.
3243 # Even if this section looks crufty: it has the advantage of
3244 # actually working.
3245 break;;
3246 * )
3247 break;;
3248 esac
3249 done
3250 test "$ac_cv_exeext" = no && ac_cv_exeext=
3251
3252 else
3253 ac_file=''
3254 fi
3255 if test -z "$ac_file"; then :
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3257 $as_echo "no" >&6; }
3258 $as_echo "$as_me: failed program was:" >&5
3259 sed 's/^/| /' conftest.$ac_ext >&5
3260
3261 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3262 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3263 as_fn_error 77 "C compiler cannot create executables
3264 See \`config.log' for more details" "$LINENO" 5; }
3265 else
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3267 $as_echo "yes" >&6; }
3268 fi
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3270 $as_echo_n "checking for C compiler default output file name... " >&6; }
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3272 $as_echo "$ac_file" >&6; }
3273 ac_exeext=$ac_cv_exeext
3274
3275 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3276 ac_clean_files=$ac_clean_files_save
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3278 $as_echo_n "checking for suffix of executables... " >&6; }
3279 if { { ac_try="$ac_link"
3280 case "(($ac_try" in
3281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3282 *) ac_try_echo=$ac_try;;
3283 esac
3284 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3285 $as_echo "$ac_try_echo"; } >&5
3286 (eval "$ac_link") 2>&5
3287 ac_status=$?
3288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3289 test $ac_status = 0; }; then :
3290 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3291 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3292 # work properly (i.e., refer to `conftest.exe'), while it won't with
3293 # `rm'.
3294 for ac_file in conftest.exe conftest conftest.*; do
3295 test -f "$ac_file" || continue
3296 case $ac_file in
3297 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3298 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3299 break;;
3300 * ) break;;
3301 esac
3302 done
3303 else
3304 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3305 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3306 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3307 See \`config.log' for more details" "$LINENO" 5; }
3308 fi
3309 rm -f conftest conftest$ac_cv_exeext
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3311 $as_echo "$ac_cv_exeext" >&6; }
3312
3313 rm -f conftest.$ac_ext
3314 EXEEXT=$ac_cv_exeext
3315 ac_exeext=$EXEEXT
3316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3317 /* end confdefs.h. */
3318 #include <stdio.h>
3319 int
3320 main ()
3321 {
3322 FILE *f = fopen ("conftest.out", "w");
3323 return ferror (f) || fclose (f) != 0;
3324
3325 ;
3326 return 0;
3327 }
3328 _ACEOF
3329 ac_clean_files="$ac_clean_files conftest.out"
3330 # Check that the compiler produces executables we can run. If not, either
3331 # the compiler is broken, or we cross compile.
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3333 $as_echo_n "checking whether we are cross compiling... " >&6; }
3334 if test "$cross_compiling" != yes; then
3335 { { ac_try="$ac_link"
3336 case "(($ac_try" in
3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338 *) ac_try_echo=$ac_try;;
3339 esac
3340 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3341 $as_echo "$ac_try_echo"; } >&5
3342 (eval "$ac_link") 2>&5
3343 ac_status=$?
3344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3345 test $ac_status = 0; }
3346 if { ac_try='./conftest$ac_cv_exeext'
3347 { { case "(($ac_try" in
3348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3349 *) ac_try_echo=$ac_try;;
3350 esac
3351 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3352 $as_echo "$ac_try_echo"; } >&5
3353 (eval "$ac_try") 2>&5
3354 ac_status=$?
3355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3356 test $ac_status = 0; }; }; then
3357 cross_compiling=no
3358 else
3359 if test "$cross_compiling" = maybe; then
3360 cross_compiling=yes
3361 else
3362 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3363 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3364 as_fn_error $? "cannot run C compiled programs.
3365 If you meant to cross compile, use \`--host'.
3366 See \`config.log' for more details" "$LINENO" 5; }
3367 fi
3368 fi
3369 fi
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3371 $as_echo "$cross_compiling" >&6; }
3372
3373 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3374 ac_clean_files=$ac_clean_files_save
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3376 $as_echo_n "checking for suffix of object files... " >&6; }
3377 if ${ac_cv_objext+:} false; then :
3378 $as_echo_n "(cached) " >&6
3379 else
3380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3381 /* end confdefs.h. */
3382
3383 int
3384 main ()
3385 {
3386
3387 ;
3388 return 0;
3389 }
3390 _ACEOF
3391 rm -f conftest.o conftest.obj
3392 if { { ac_try="$ac_compile"
3393 case "(($ac_try" in
3394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3395 *) ac_try_echo=$ac_try;;
3396 esac
3397 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3398 $as_echo "$ac_try_echo"; } >&5
3399 (eval "$ac_compile") 2>&5
3400 ac_status=$?
3401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3402 test $ac_status = 0; }; then :
3403 for ac_file in conftest.o conftest.obj conftest.*; do
3404 test -f "$ac_file" || continue;
3405 case $ac_file in
3406 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3407 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3408 break;;
3409 esac
3410 done
3411 else
3412 $as_echo "$as_me: failed program was:" >&5
3413 sed 's/^/| /' conftest.$ac_ext >&5
3414
3415 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3416 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3417 as_fn_error $? "cannot compute suffix of object files: cannot compile
3418 See \`config.log' for more details" "$LINENO" 5; }
3419 fi
3420 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3421 fi
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3423 $as_echo "$ac_cv_objext" >&6; }
3424 OBJEXT=$ac_cv_objext
3425 ac_objext=$OBJEXT
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3427 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3428 if ${ac_cv_c_compiler_gnu+:} false; then :
3429 $as_echo_n "(cached) " >&6
3430 else
3431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3432 /* end confdefs.h. */
3433
3434 int
3435 main ()
3436 {
3437 #ifndef __GNUC__
3438 choke me
3439 #endif
3440
3441 ;
3442 return 0;
3443 }
3444 _ACEOF
3445 if ac_fn_c_try_compile "$LINENO"; then :
3446 ac_compiler_gnu=yes
3447 else
3448 ac_compiler_gnu=no
3449 fi
3450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3451 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3452
3453 fi
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3455 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3456 if test $ac_compiler_gnu = yes; then
3457 GCC=yes
3458 else
3459 GCC=
3460 fi
3461 ac_test_CFLAGS=${CFLAGS+set}
3462 ac_save_CFLAGS=$CFLAGS
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3464 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3465 if ${ac_cv_prog_cc_g+:} false; then :
3466 $as_echo_n "(cached) " >&6
3467 else
3468 ac_save_c_werror_flag=$ac_c_werror_flag
3469 ac_c_werror_flag=yes
3470 ac_cv_prog_cc_g=no
3471 CFLAGS="-g"
3472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3473 /* end confdefs.h. */
3474
3475 int
3476 main ()
3477 {
3478
3479 ;
3480 return 0;
3481 }
3482 _ACEOF
3483 if ac_fn_c_try_compile "$LINENO"; then :
3484 ac_cv_prog_cc_g=yes
3485 else
3486 CFLAGS=""
3487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3488 /* end confdefs.h. */
3489
3490 int
3491 main ()
3492 {
3493
3494 ;
3495 return 0;
3496 }
3497 _ACEOF
3498 if ac_fn_c_try_compile "$LINENO"; then :
3499
3500 else
3501 ac_c_werror_flag=$ac_save_c_werror_flag
3502 CFLAGS="-g"
3503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3504 /* end confdefs.h. */
3505
3506 int
3507 main ()
3508 {
3509
3510 ;
3511 return 0;
3512 }
3513 _ACEOF
3514 if ac_fn_c_try_compile "$LINENO"; then :
3515 ac_cv_prog_cc_g=yes
3516 fi
3517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3518 fi
3519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3520 fi
3521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3522 ac_c_werror_flag=$ac_save_c_werror_flag
3523 fi
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3525 $as_echo "$ac_cv_prog_cc_g" >&6; }
3526 if test "$ac_test_CFLAGS" = set; then
3527 CFLAGS=$ac_save_CFLAGS
3528 elif test $ac_cv_prog_cc_g = yes; then
3529 if test "$GCC" = yes; then
3530 CFLAGS="-g -O2"
3531 else
3532 CFLAGS="-g"
3533 fi
3534 else
3535 if test "$GCC" = yes; then
3536 CFLAGS="-O2"
3537 else
3538 CFLAGS=
3539 fi
3540 fi
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3542 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3543 if ${ac_cv_prog_cc_c89+:} false; then :
3544 $as_echo_n "(cached) " >&6
3545 else
3546 ac_cv_prog_cc_c89=no
3547 ac_save_CC=$CC
3548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3549 /* end confdefs.h. */
3550 #include <stdarg.h>
3551 #include <stdio.h>
3552 struct stat;
3553 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3554 struct buf { int x; };
3555 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3556 static char *e (p, i)
3557 char **p;
3558 int i;
3559 {
3560 return p[i];
3561 }
3562 static char *f (char * (*g) (char **, int), char **p, ...)
3563 {
3564 char *s;
3565 va_list v;
3566 va_start (v,p);
3567 s = g (p, va_arg (v,int));
3568 va_end (v);
3569 return s;
3570 }
3571
3572 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3573 function prototypes and stuff, but not '\xHH' hex character constants.
3574 These don't provoke an error unfortunately, instead are silently treated
3575 as 'x'. The following induces an error, until -std is added to get
3576 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3577 array size at least. It's necessary to write '\x00'==0 to get something
3578 that's true only with -std. */
3579 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3580
3581 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3582 inside strings and character constants. */
3583 #define FOO(x) 'x'
3584 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3585
3586 int test (int i, double x);
3587 struct s1 {int (*f) (int a);};
3588 struct s2 {int (*f) (double a);};
3589 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3590 int argc;
3591 char **argv;
3592 int
3593 main ()
3594 {
3595 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3596 ;
3597 return 0;
3598 }
3599 _ACEOF
3600 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3601 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3602 do
3603 CC="$ac_save_CC $ac_arg"
3604 if ac_fn_c_try_compile "$LINENO"; then :
3605 ac_cv_prog_cc_c89=$ac_arg
3606 fi
3607 rm -f core conftest.err conftest.$ac_objext
3608 test "x$ac_cv_prog_cc_c89" != "xno" && break
3609 done
3610 rm -f conftest.$ac_ext
3611 CC=$ac_save_CC
3612
3613 fi
3614 # AC_CACHE_VAL
3615 case "x$ac_cv_prog_cc_c89" in
3616 x)
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3618 $as_echo "none needed" >&6; } ;;
3619 xno)
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3621 $as_echo "unsupported" >&6; } ;;
3622 *)
3623 CC="$CC $ac_cv_prog_cc_c89"
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3625 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3626 esac
3627 if test "x$ac_cv_prog_cc_c89" != xno; then :
3628
3629 fi
3630
3631 ac_ext=c
3632 ac_cpp='$CPP $CPPFLAGS'
3633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3636
3637 ac_ext=c
3638 ac_cpp='$CPP $CPPFLAGS'
3639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3643 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3644 if ${am_cv_prog_cc_c_o+:} false; then :
3645 $as_echo_n "(cached) " >&6
3646 else
3647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3648 /* end confdefs.h. */
3649
3650 int
3651 main ()
3652 {
3653
3654 ;
3655 return 0;
3656 }
3657 _ACEOF
3658 # Make sure it works both with $CC and with simple cc.
3659 # Following AC_PROG_CC_C_O, we do the test twice because some
3660 # compilers refuse to overwrite an existing .o file with -o,
3661 # though they will create one.
3662 am_cv_prog_cc_c_o=yes
3663 for am_i in 1 2; do
3664 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3665 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3666 ac_status=$?
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); } \
3669 && test -f conftest2.$ac_objext; then
3670 : OK
3671 else
3672 am_cv_prog_cc_c_o=no
3673 break
3674 fi
3675 done
3676 rm -f core conftest*
3677 unset am_i
3678 fi
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3680 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3681 if test "$am_cv_prog_cc_c_o" != yes; then
3682 # Losing compiler, so override with the script.
3683 # FIXME: It is wrong to rewrite CC.
3684 # But if we don't then we get into trouble of one sort or another.
3685 # A longer-term fix would be to have automake use am__CC in this case,
3686 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3687 CC="$am_aux_dir/compile $CC"
3688 fi
3689 ac_ext=c
3690 ac_cpp='$CPP $CPPFLAGS'
3691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3694
3695
3696 depcc="$CC" am_compiler_list=
3697
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3699 $as_echo_n "checking dependency style of $depcc... " >&6; }
3700 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3701 $as_echo_n "(cached) " >&6
3702 else
3703 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3704 # We make a subdir and do the tests there. Otherwise we can end up
3705 # making bogus files that we don't know about and never remove. For
3706 # instance it was reported that on HP-UX the gcc test will end up
3707 # making a dummy file named 'D' -- because '-MD' means "put the output
3708 # in D".
3709 rm -rf conftest.dir
3710 mkdir conftest.dir
3711 # Copy depcomp to subdir because otherwise we won't find it if we're
3712 # using a relative directory.
3713 cp "$am_depcomp" conftest.dir
3714 cd conftest.dir
3715 # We will build objects and dependencies in a subdirectory because
3716 # it helps to detect inapplicable dependency modes. For instance
3717 # both Tru64's cc and ICC support -MD to output dependencies as a
3718 # side effect of compilation, but ICC will put the dependencies in
3719 # the current directory while Tru64 will put them in the object
3720 # directory.
3721 mkdir sub
3722
3723 am_cv_CC_dependencies_compiler_type=none
3724 if test "$am_compiler_list" = ""; then
3725 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3726 fi
3727 am__universal=false
3728 case " $depcc " in #(
3729 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3730 esac
3731
3732 for depmode in $am_compiler_list; do
3733 # Setup a source with many dependencies, because some compilers
3734 # like to wrap large dependency lists on column 80 (with \), and
3735 # we should not choose a depcomp mode which is confused by this.
3736 #
3737 # We need to recreate these files for each test, as the compiler may
3738 # overwrite some of them when testing with obscure command lines.
3739 # This happens at least with the AIX C compiler.
3740 : > sub/conftest.c
3741 for i in 1 2 3 4 5 6; do
3742 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3743 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3744 # Solaris 10 /bin/sh.
3745 echo '/* dummy */' > sub/conftst$i.h
3746 done
3747 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3748
3749 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3750 # mode. It turns out that the SunPro C++ compiler does not properly
3751 # handle '-M -o', and we need to detect this. Also, some Intel
3752 # versions had trouble with output in subdirs.
3753 am__obj=sub/conftest.${OBJEXT-o}
3754 am__minus_obj="-o $am__obj"
3755 case $depmode in
3756 gcc)
3757 # This depmode causes a compiler race in universal mode.
3758 test "$am__universal" = false || continue
3759 ;;
3760 nosideeffect)
3761 # After this tag, mechanisms are not by side-effect, so they'll
3762 # only be used when explicitly requested.
3763 if test "x$enable_dependency_tracking" = xyes; then
3764 continue
3765 else
3766 break
3767 fi
3768 ;;
3769 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3770 # This compiler won't grok '-c -o', but also, the minuso test has
3771 # not run yet. These depmodes are late enough in the game, and
3772 # so weak that their functioning should not be impacted.
3773 am__obj=conftest.${OBJEXT-o}
3774 am__minus_obj=
3775 ;;
3776 none) break ;;
3777 esac
3778 if depmode=$depmode \
3779 source=sub/conftest.c object=$am__obj \
3780 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3781 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3782 >/dev/null 2>conftest.err &&
3783 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3784 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3785 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3786 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3787 # icc doesn't choke on unknown options, it will just issue warnings
3788 # or remarks (even with -Werror). So we grep stderr for any message
3789 # that says an option was ignored or not supported.
3790 # When given -MP, icc 7.0 and 7.1 complain thusly:
3791 # icc: Command line warning: ignoring option '-M'; no argument required
3792 # The diagnosis changed in icc 8.0:
3793 # icc: Command line remark: option '-MP' not supported
3794 if (grep 'ignoring option' conftest.err ||
3795 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3796 am_cv_CC_dependencies_compiler_type=$depmode
3797 break
3798 fi
3799 fi
3800 done
3801
3802 cd ..
3803 rm -rf conftest.dir
3804 else
3805 am_cv_CC_dependencies_compiler_type=none
3806 fi
3807
3808 fi
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3810 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3811 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3812
3813 if
3814 test "x$enable_dependency_tracking" != xno \
3815 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3816 am__fastdepCC_TRUE=
3817 am__fastdepCC_FALSE='#'
3818 else
3819 am__fastdepCC_TRUE='#'
3820 am__fastdepCC_FALSE=
3821 fi
3822
3823
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3825 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3826 if ${ac_cv_prog_cc_c99+:} false; then :
3827 $as_echo_n "(cached) " >&6
3828 else
3829 ac_cv_prog_cc_c99=no
3830 ac_save_CC=$CC
3831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3832 /* end confdefs.h. */
3833 #include <stdarg.h>
3834 #include <stdbool.h>
3835 #include <stdlib.h>
3836 #include <wchar.h>
3837 #include <stdio.h>
3838
3839 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3840 #define debug(...) fprintf (stderr, __VA_ARGS__)
3841 #define showlist(...) puts (#__VA_ARGS__)
3842 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3843 static void
3844 test_varargs_macros (void)
3845 {
3846 int x = 1234;
3847 int y = 5678;
3848 debug ("Flag");
3849 debug ("X = %d\n", x);
3850 showlist (The first, second, and third items.);
3851 report (x>y, "x is %d but y is %d", x, y);
3852 }
3853
3854 // Check long long types.
3855 #define BIG64 18446744073709551615ull
3856 #define BIG32 4294967295ul
3857 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3858 #if !BIG_OK
3859 your preprocessor is broken;
3860 #endif
3861 #if BIG_OK
3862 #else
3863 your preprocessor is broken;
3864 #endif
3865 static long long int bignum = -9223372036854775807LL;
3866 static unsigned long long int ubignum = BIG64;
3867
3868 struct incomplete_array
3869 {
3870 int datasize;
3871 double data[];
3872 };
3873
3874 struct named_init {
3875 int number;
3876 const wchar_t *name;
3877 double average;
3878 };
3879
3880 typedef const char *ccp;
3881
3882 static inline int
3883 test_restrict (ccp restrict text)
3884 {
3885 // See if C++-style comments work.
3886 // Iterate through items via the restricted pointer.
3887 // Also check for declarations in for loops.
3888 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3889 continue;
3890 return 0;
3891 }
3892
3893 // Check varargs and va_copy.
3894 static void
3895 test_varargs (const char *format, ...)
3896 {
3897 va_list args;
3898 va_start (args, format);
3899 va_list args_copy;
3900 va_copy (args_copy, args);
3901
3902 const char *str;
3903 int number;
3904 float fnumber;
3905
3906 while (*format)
3907 {
3908 switch (*format++)
3909 {
3910 case 's': // string
3911 str = va_arg (args_copy, const char *);
3912 break;
3913 case 'd': // int
3914 number = va_arg (args_copy, int);
3915 break;
3916 case 'f': // float
3917 fnumber = va_arg (args_copy, double);
3918 break;
3919 default:
3920 break;
3921 }
3922 }
3923 va_end (args_copy);
3924 va_end (args);
3925 }
3926
3927 int
3928 main ()
3929 {
3930
3931 // Check bool.
3932 _Bool success = false;
3933
3934 // Check restrict.
3935 if (test_restrict ("String literal") == 0)
3936 success = true;
3937 char *restrict newvar = "Another string";
3938
3939 // Check varargs.
3940 test_varargs ("s, d' f .", "string", 65, 34.234);
3941 test_varargs_macros ();
3942
3943 // Check flexible array members.
3944 struct incomplete_array *ia =
3945 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3946 ia->datasize = 10;
3947 for (int i = 0; i < ia->datasize; ++i)
3948 ia->data[i] = i * 1.234;
3949
3950 // Check named initializers.
3951 struct named_init ni = {
3952 .number = 34,
3953 .name = L"Test wide string",
3954 .average = 543.34343,
3955 };
3956
3957 ni.number = 58;
3958
3959 int dynamic_array[ni.number];
3960 dynamic_array[ni.number - 1] = 543;
3961
3962 // work around unused variable warnings
3963 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3964 || dynamic_array[ni.number - 1] != 543);
3965
3966 ;
3967 return 0;
3968 }
3969 _ACEOF
3970 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3971 do
3972 CC="$ac_save_CC $ac_arg"
3973 if ac_fn_c_try_compile "$LINENO"; then :
3974 ac_cv_prog_cc_c99=$ac_arg
3975 fi
3976 rm -f core conftest.err conftest.$ac_objext
3977 test "x$ac_cv_prog_cc_c99" != "xno" && break
3978 done
3979 rm -f conftest.$ac_ext
3980 CC=$ac_save_CC
3981
3982 fi
3983 # AC_CACHE_VAL
3984 case "x$ac_cv_prog_cc_c99" in
3985 x)
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3987 $as_echo "none needed" >&6; } ;;
3988 xno)
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3990 $as_echo "unsupported" >&6; } ;;
3991 *)
3992 CC="$CC $ac_cv_prog_cc_c99"
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3994 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3995 esac
3996 if test "x$ac_cv_prog_cc_c99" != xno; then :
3997
3998 fi
3999
4000
4001 if test "$ac_cv_prog_cc_c99" = "no"; then :
4002 as_fn_error $? "no suitable C99 compiler found. Aborting." "$LINENO" 5
4003 fi
4004 case `pwd` in
4005 *\ * | *\ *)
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4007 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4008 esac
4009
4010
4011
4012 macro_version='2.4.6'
4013 macro_revision='2.4.6'
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027 ltmain=$ac_aux_dir/ltmain.sh
4028
4029 # Make sure we can run config.sub.
4030 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4031 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4032
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4034 $as_echo_n "checking build system type... " >&6; }
4035 if ${ac_cv_build+:} false; then :
4036 $as_echo_n "(cached) " >&6
4037 else
4038 ac_build_alias=$build_alias
4039 test "x$ac_build_alias" = x &&
4040 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4041 test "x$ac_build_alias" = x &&
4042 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4043 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4044 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4045
4046 fi
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4048 $as_echo "$ac_cv_build" >&6; }
4049 case $ac_cv_build in
4050 *-*-*) ;;
4051 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4052 esac
4053 build=$ac_cv_build
4054 ac_save_IFS=$IFS; IFS='-'
4055 set x $ac_cv_build
4056 shift
4057 build_cpu=$1
4058 build_vendor=$2
4059 shift; shift
4060 # Remember, the first character of IFS is used to create $*,
4061 # except with old shells:
4062 build_os=$*
4063 IFS=$ac_save_IFS
4064 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4065
4066
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4068 $as_echo_n "checking host system type... " >&6; }
4069 if ${ac_cv_host+:} false; then :
4070 $as_echo_n "(cached) " >&6
4071 else
4072 if test "x$host_alias" = x; then
4073 ac_cv_host=$ac_cv_build
4074 else
4075 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4076 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4077 fi
4078
4079 fi
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4081 $as_echo "$ac_cv_host" >&6; }
4082 case $ac_cv_host in
4083 *-*-*) ;;
4084 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4085 esac
4086 host=$ac_cv_host
4087 ac_save_IFS=$IFS; IFS='-'
4088 set x $ac_cv_host
4089 shift
4090 host_cpu=$1
4091 host_vendor=$2
4092 shift; shift
4093 # Remember, the first character of IFS is used to create $*,
4094 # except with old shells:
4095 host_os=$*
4096 IFS=$ac_save_IFS
4097 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4098
4099
4100 # Backslashify metacharacters that are still active within
4101 # double-quoted strings.
4102 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4103
4104 # Same as above, but do not quote variable references.
4105 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4106
4107 # Sed substitution to delay expansion of an escaped shell variable in a
4108 # double_quote_subst'ed string.
4109 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4110
4111 # Sed substitution to delay expansion of an escaped single quote.
4112 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4113
4114 # Sed substitution to avoid accidental globbing in evaled expressions
4115 no_glob_subst='s/\*/\\\*/g'
4116
4117 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4118 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4119 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4120
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4122 $as_echo_n "checking how to print strings... " >&6; }
4123 # Test print first, because it will be a builtin if present.
4124 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4125 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4126 ECHO='print -r --'
4127 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4128 ECHO='printf %s\n'
4129 else
4130 # Use this function as a fallback that always works.
4131 func_fallback_echo ()
4132 {
4133 eval 'cat <<_LTECHO_EOF
4134 $1
4135 _LTECHO_EOF'
4136 }
4137 ECHO='func_fallback_echo'
4138 fi
4139
4140 # func_echo_all arg...
4141 # Invoke $ECHO with all args, space-separated.
4142 func_echo_all ()
4143 {
4144 $ECHO ""
4145 }
4146
4147 case $ECHO in
4148 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4149 $as_echo "printf" >&6; } ;;
4150 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4151 $as_echo "print -r" >&6; } ;;
4152 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4153 $as_echo "cat" >&6; } ;;
4154 esac
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4170 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4171 if ${ac_cv_path_SED+:} false; then :
4172 $as_echo_n "(cached) " >&6
4173 else
4174 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4175 for ac_i in 1 2 3 4 5 6 7; do
4176 ac_script="$ac_script$as_nl$ac_script"
4177 done
4178 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4179 { ac_script=; unset ac_script;}
4180 if test -z "$SED"; then
4181 ac_path_SED_found=false
4182 # Loop through the user's path and test for each of PROGNAME-LIST
4183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4184 for as_dir in $PATH
4185 do
4186 IFS=$as_save_IFS
4187 test -z "$as_dir" && as_dir=.
4188 for ac_prog in sed gsed; do
4189 for ac_exec_ext in '' $ac_executable_extensions; do
4190 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4191 as_fn_executable_p "$ac_path_SED" || continue
4192 # Check for GNU ac_path_SED and select it if it is found.
4193 # Check for GNU $ac_path_SED
4194 case `"$ac_path_SED" --version 2>&1` in
4195 *GNU*)
4196 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4197 *)
4198 ac_count=0
4199 $as_echo_n 0123456789 >"conftest.in"
4200 while :
4201 do
4202 cat "conftest.in" "conftest.in" >"conftest.tmp"
4203 mv "conftest.tmp" "conftest.in"
4204 cp "conftest.in" "conftest.nl"
4205 $as_echo '' >> "conftest.nl"
4206 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4207 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4208 as_fn_arith $ac_count + 1 && ac_count=$as_val
4209 if test $ac_count -gt ${ac_path_SED_max-0}; then
4210 # Best one so far, save it but keep looking for a better one
4211 ac_cv_path_SED="$ac_path_SED"
4212 ac_path_SED_max=$ac_count
4213 fi
4214 # 10*(2^10) chars as input seems more than enough
4215 test $ac_count -gt 10 && break
4216 done
4217 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4218 esac
4219
4220 $ac_path_SED_found && break 3
4221 done
4222 done
4223 done
4224 IFS=$as_save_IFS
4225 if test -z "$ac_cv_path_SED"; then
4226 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4227 fi
4228 else
4229 ac_cv_path_SED=$SED
4230 fi
4231
4232 fi
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4234 $as_echo "$ac_cv_path_SED" >&6; }
4235 SED="$ac_cv_path_SED"
4236 rm -f conftest.sed
4237
4238 test -z "$SED" && SED=sed
4239 Xsed="$SED -e 1s/^X//"
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4252 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4253 if ${ac_cv_path_GREP+:} false; then :
4254 $as_echo_n "(cached) " >&6
4255 else
4256 if test -z "$GREP"; then
4257 ac_path_GREP_found=false
4258 # Loop through the user's path and test for each of PROGNAME-LIST
4259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4260 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4261 do
4262 IFS=$as_save_IFS
4263 test -z "$as_dir" && as_dir=.
4264 for ac_prog in grep ggrep; do
4265 for ac_exec_ext in '' $ac_executable_extensions; do
4266 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4267 as_fn_executable_p "$ac_path_GREP" || continue
4268 # Check for GNU ac_path_GREP and select it if it is found.
4269 # Check for GNU $ac_path_GREP
4270 case `"$ac_path_GREP" --version 2>&1` in
4271 *GNU*)
4272 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4273 *)
4274 ac_count=0
4275 $as_echo_n 0123456789 >"conftest.in"
4276 while :
4277 do
4278 cat "conftest.in" "conftest.in" >"conftest.tmp"
4279 mv "conftest.tmp" "conftest.in"
4280 cp "conftest.in" "conftest.nl"
4281 $as_echo 'GREP' >> "conftest.nl"
4282 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4283 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4284 as_fn_arith $ac_count + 1 && ac_count=$as_val
4285 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4286 # Best one so far, save it but keep looking for a better one
4287 ac_cv_path_GREP="$ac_path_GREP"
4288 ac_path_GREP_max=$ac_count
4289 fi
4290 # 10*(2^10) chars as input seems more than enough
4291 test $ac_count -gt 10 && break
4292 done
4293 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4294 esac
4295
4296 $ac_path_GREP_found && break 3
4297 done
4298 done
4299 done
4300 IFS=$as_save_IFS
4301 if test -z "$ac_cv_path_GREP"; then
4302 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4303 fi
4304 else
4305 ac_cv_path_GREP=$GREP
4306 fi
4307
4308 fi
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4310 $as_echo "$ac_cv_path_GREP" >&6; }
4311 GREP="$ac_cv_path_GREP"
4312
4313
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4315 $as_echo_n "checking for egrep... " >&6; }
4316 if ${ac_cv_path_EGREP+:} false; then :
4317 $as_echo_n "(cached) " >&6
4318 else
4319 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4320 then ac_cv_path_EGREP="$GREP -E"
4321 else
4322 if test -z "$EGREP"; then
4323 ac_path_EGREP_found=false
4324 # Loop through the user's path and test for each of PROGNAME-LIST
4325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4326 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4327 do
4328 IFS=$as_save_IFS
4329 test -z "$as_dir" && as_dir=.
4330 for ac_prog in egrep; do
4331 for ac_exec_ext in '' $ac_executable_extensions; do
4332 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4333 as_fn_executable_p "$ac_path_EGREP" || continue
4334 # Check for GNU ac_path_EGREP and select it if it is found.
4335 # Check for GNU $ac_path_EGREP
4336 case `"$ac_path_EGREP" --version 2>&1` in
4337 *GNU*)
4338 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4339 *)
4340 ac_count=0
4341 $as_echo_n 0123456789 >"conftest.in"
4342 while :
4343 do
4344 cat "conftest.in" "conftest.in" >"conftest.tmp"
4345 mv "conftest.tmp" "conftest.in"
4346 cp "conftest.in" "conftest.nl"
4347 $as_echo 'EGREP' >> "conftest.nl"
4348 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4349 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4350 as_fn_arith $ac_count + 1 && ac_count=$as_val
4351 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4352 # Best one so far, save it but keep looking for a better one
4353 ac_cv_path_EGREP="$ac_path_EGREP"
4354 ac_path_EGREP_max=$ac_count
4355 fi
4356 # 10*(2^10) chars as input seems more than enough
4357 test $ac_count -gt 10 && break
4358 done
4359 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4360 esac
4361
4362 $ac_path_EGREP_found && break 3
4363 done
4364 done
4365 done
4366 IFS=$as_save_IFS
4367 if test -z "$ac_cv_path_EGREP"; then
4368 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4369 fi
4370 else
4371 ac_cv_path_EGREP=$EGREP
4372 fi
4373
4374 fi
4375 fi
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4377 $as_echo "$ac_cv_path_EGREP" >&6; }
4378 EGREP="$ac_cv_path_EGREP"
4379
4380
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4382 $as_echo_n "checking for fgrep... " >&6; }
4383 if ${ac_cv_path_FGREP+:} false; then :
4384 $as_echo_n "(cached) " >&6
4385 else
4386 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4387 then ac_cv_path_FGREP="$GREP -F"
4388 else
4389 if test -z "$FGREP"; then
4390 ac_path_FGREP_found=false
4391 # Loop through the user's path and test for each of PROGNAME-LIST
4392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4394 do
4395 IFS=$as_save_IFS
4396 test -z "$as_dir" && as_dir=.
4397 for ac_prog in fgrep; do
4398 for ac_exec_ext in '' $ac_executable_extensions; do
4399 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4400 as_fn_executable_p "$ac_path_FGREP" || continue
4401 # Check for GNU ac_path_FGREP and select it if it is found.
4402 # Check for GNU $ac_path_FGREP
4403 case `"$ac_path_FGREP" --version 2>&1` in
4404 *GNU*)
4405 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4406 *)
4407 ac_count=0
4408 $as_echo_n 0123456789 >"conftest.in"
4409 while :
4410 do
4411 cat "conftest.in" "conftest.in" >"conftest.tmp"
4412 mv "conftest.tmp" "conftest.in"
4413 cp "conftest.in" "conftest.nl"
4414 $as_echo 'FGREP' >> "conftest.nl"
4415 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4416 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4417 as_fn_arith $ac_count + 1 && ac_count=$as_val
4418 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4419 # Best one so far, save it but keep looking for a better one
4420 ac_cv_path_FGREP="$ac_path_FGREP"
4421 ac_path_FGREP_max=$ac_count
4422 fi
4423 # 10*(2^10) chars as input seems more than enough
4424 test $ac_count -gt 10 && break
4425 done
4426 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4427 esac
4428
4429 $ac_path_FGREP_found && break 3
4430 done
4431 done
4432 done
4433 IFS=$as_save_IFS
4434 if test -z "$ac_cv_path_FGREP"; then
4435 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4436 fi
4437 else
4438 ac_cv_path_FGREP=$FGREP
4439 fi
4440
4441 fi
4442 fi
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4444 $as_echo "$ac_cv_path_FGREP" >&6; }
4445 FGREP="$ac_cv_path_FGREP"
4446
4447
4448 test -z "$GREP" && GREP=grep
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468 # Check whether --with-gnu-ld was given.
4469 if test "${with_gnu_ld+set}" = set; then :
4470 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4471 else
4472 with_gnu_ld=no
4473 fi
4474
4475 ac_prog=ld
4476 if test yes = "$GCC"; then
4477 # Check if gcc -print-prog-name=ld gives a path.
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4479 $as_echo_n "checking for ld used by $CC... " >&6; }
4480 case $host in
4481 *-*-mingw*)
4482 # gcc leaves a trailing carriage return, which upsets mingw
4483 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4484 *)
4485 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4486 esac
4487 case $ac_prog in
4488 # Accept absolute paths.
4489 [\\/]* | ?:[\\/]*)
4490 re_direlt='/[^/][^/]*/\.\./'
4491 # Canonicalize the pathname of ld
4492 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4493 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4494 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4495 done
4496 test -z "$LD" && LD=$ac_prog
4497 ;;
4498 "")
4499 # If it fails, then pretend we aren't using GCC.
4500 ac_prog=ld
4501 ;;
4502 *)
4503 # If it is relative, then search for the first ld in PATH.
4504 with_gnu_ld=unknown
4505 ;;
4506 esac
4507 elif test yes = "$with_gnu_ld"; then
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4509 $as_echo_n "checking for GNU ld... " >&6; }
4510 else
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4512 $as_echo_n "checking for non-GNU ld... " >&6; }
4513 fi
4514 if ${lt_cv_path_LD+:} false; then :
4515 $as_echo_n "(cached) " >&6
4516 else
4517 if test -z "$LD"; then
4518 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4519 for ac_dir in $PATH; do
4520 IFS=$lt_save_ifs
4521 test -z "$ac_dir" && ac_dir=.
4522 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4523 lt_cv_path_LD=$ac_dir/$ac_prog
4524 # Check to see if the program is GNU ld. I'd rather use --version,
4525 # but apparently some variants of GNU ld only accept -v.
4526 # Break only if it was the GNU/non-GNU ld that we prefer.
4527 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4528 *GNU* | *'with BFD'*)
4529 test no != "$with_gnu_ld" && break
4530 ;;
4531 *)
4532 test yes != "$with_gnu_ld" && break
4533 ;;
4534 esac
4535 fi
4536 done
4537 IFS=$lt_save_ifs
4538 else
4539 lt_cv_path_LD=$LD # Let the user override the test with a path.
4540 fi
4541 fi
4542
4543 LD=$lt_cv_path_LD
4544 if test -n "$LD"; then
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4546 $as_echo "$LD" >&6; }
4547 else
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4549 $as_echo "no" >&6; }
4550 fi
4551 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4553 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4554 if ${lt_cv_prog_gnu_ld+:} false; then :
4555 $as_echo_n "(cached) " >&6
4556 else
4557 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4558 case `$LD -v 2>&1 </dev/null` in
4559 *GNU* | *'with BFD'*)
4560 lt_cv_prog_gnu_ld=yes
4561 ;;
4562 *)
4563 lt_cv_prog_gnu_ld=no
4564 ;;
4565 esac
4566 fi
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4568 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4569 with_gnu_ld=$lt_cv_prog_gnu_ld
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4580 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4581 if ${lt_cv_path_NM+:} false; then :
4582 $as_echo_n "(cached) " >&6
4583 else
4584 if test -n "$NM"; then
4585 # Let the user override the test.
4586 lt_cv_path_NM=$NM
4587 else
4588 lt_nm_to_check=${ac_tool_prefix}nm
4589 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4590 lt_nm_to_check="$lt_nm_to_check nm"
4591 fi
4592 for lt_tmp_nm in $lt_nm_to_check; do
4593 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4594 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4595 IFS=$lt_save_ifs
4596 test -z "$ac_dir" && ac_dir=.
4597 tmp_nm=$ac_dir/$lt_tmp_nm
4598 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4599 # Check to see if the nm accepts a BSD-compat flag.
4600 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4601 # nm: unknown option "B" ignored
4602 # Tru64's nm complains that /dev/null is an invalid object file
4603 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4604 case $build_os in
4605 mingw*) lt_bad_file=conftest.nm/nofile ;;
4606 *) lt_bad_file=/dev/null ;;
4607 esac
4608 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4609 *$lt_bad_file* | *'Invalid file or object type'*)
4610 lt_cv_path_NM="$tmp_nm -B"
4611 break 2
4612 ;;
4613 *)
4614 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4615 */dev/null*)
4616 lt_cv_path_NM="$tmp_nm -p"
4617 break 2
4618 ;;
4619 *)
4620 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4621 continue # so that we can try to find one that supports BSD flags
4622 ;;
4623 esac
4624 ;;
4625 esac
4626 fi
4627 done
4628 IFS=$lt_save_ifs
4629 done
4630 : ${lt_cv_path_NM=no}
4631 fi
4632 fi
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4634 $as_echo "$lt_cv_path_NM" >&6; }
4635 if test no != "$lt_cv_path_NM"; then
4636 NM=$lt_cv_path_NM
4637 else
4638 # Didn't find any BSD compatible name lister, look for dumpbin.
4639 if test -n "$DUMPBIN"; then :
4640 # Let the user override the test.
4641 else
4642 if test -n "$ac_tool_prefix"; then
4643 for ac_prog in dumpbin "link -dump"
4644 do
4645 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4646 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4648 $as_echo_n "checking for $ac_word... " >&6; }
4649 if ${ac_cv_prog_DUMPBIN+:} false; then :
4650 $as_echo_n "(cached) " >&6
4651 else
4652 if test -n "$DUMPBIN"; then
4653 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4654 else
4655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656 for as_dir in $PATH
4657 do
4658 IFS=$as_save_IFS
4659 test -z "$as_dir" && as_dir=.
4660 for ac_exec_ext in '' $ac_executable_extensions; do
4661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4662 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4664 break 2
4665 fi
4666 done
4667 done
4668 IFS=$as_save_IFS
4669
4670 fi
4671 fi
4672 DUMPBIN=$ac_cv_prog_DUMPBIN
4673 if test -n "$DUMPBIN"; then
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4675 $as_echo "$DUMPBIN" >&6; }
4676 else
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4678 $as_echo "no" >&6; }
4679 fi
4680
4681
4682 test -n "$DUMPBIN" && break
4683 done
4684 fi
4685 if test -z "$DUMPBIN"; then
4686 ac_ct_DUMPBIN=$DUMPBIN
4687 for ac_prog in dumpbin "link -dump"
4688 do
4689 # Extract the first word of "$ac_prog", so it can be a program name with args.
4690 set dummy $ac_prog; ac_word=$2
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4692 $as_echo_n "checking for $ac_word... " >&6; }
4693 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4694 $as_echo_n "(cached) " >&6
4695 else
4696 if test -n "$ac_ct_DUMPBIN"; then
4697 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4698 else
4699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4700 for as_dir in $PATH
4701 do
4702 IFS=$as_save_IFS
4703 test -z "$as_dir" && as_dir=.
4704 for ac_exec_ext in '' $ac_executable_extensions; do
4705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4706 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4708 break 2
4709 fi
4710 done
4711 done
4712 IFS=$as_save_IFS
4713
4714 fi
4715 fi
4716 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4717 if test -n "$ac_ct_DUMPBIN"; then
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4719 $as_echo "$ac_ct_DUMPBIN" >&6; }
4720 else
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4722 $as_echo "no" >&6; }
4723 fi
4724
4725
4726 test -n "$ac_ct_DUMPBIN" && break
4727 done
4728
4729 if test "x$ac_ct_DUMPBIN" = x; then
4730 DUMPBIN=":"
4731 else
4732 case $cross_compiling:$ac_tool_warned in
4733 yes:)
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4735 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4736 ac_tool_warned=yes ;;
4737 esac
4738 DUMPBIN=$ac_ct_DUMPBIN
4739 fi
4740 fi
4741
4742 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4743 *COFF*)
4744 DUMPBIN="$DUMPBIN -symbols -headers"
4745 ;;
4746 *)
4747 DUMPBIN=:
4748 ;;
4749 esac
4750 fi
4751
4752 if test : != "$DUMPBIN"; then
4753 NM=$DUMPBIN
4754 fi
4755 fi
4756 test -z "$NM" && NM=nm
4757
4758
4759
4760
4761
4762
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4764 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4765 if ${lt_cv_nm_interface+:} false; then :
4766 $as_echo_n "(cached) " >&6
4767 else
4768 lt_cv_nm_interface="BSD nm"
4769 echo "int some_variable = 0;" > conftest.$ac_ext
4770 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4771 (eval "$ac_compile" 2>conftest.err)
4772 cat conftest.err >&5
4773 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4774 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4775 cat conftest.err >&5
4776 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4777 cat conftest.out >&5
4778 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4779 lt_cv_nm_interface="MS dumpbin"
4780 fi
4781 rm -f conftest*
4782 fi
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4784 $as_echo "$lt_cv_nm_interface" >&6; }
4785
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4787 $as_echo_n "checking whether ln -s works... " >&6; }
4788 LN_S=$as_ln_s
4789 if test "$LN_S" = "ln -s"; then
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4791 $as_echo "yes" >&6; }
4792 else
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4794 $as_echo "no, using $LN_S" >&6; }
4795 fi
4796
4797 # find the maximum length of command line arguments
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4799 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4800 if ${lt_cv_sys_max_cmd_len+:} false; then :
4801 $as_echo_n "(cached) " >&6
4802 else
4803 i=0
4804 teststring=ABCD
4805
4806 case $build_os in
4807 msdosdjgpp*)
4808 # On DJGPP, this test can blow up pretty badly due to problems in libc
4809 # (any single argument exceeding 2000 bytes causes a buffer overrun
4810 # during glob expansion). Even if it were fixed, the result of this
4811 # check would be larger than it should be.
4812 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4813 ;;
4814
4815 gnu*)
4816 # Under GNU Hurd, this test is not required because there is
4817 # no limit to the length of command line arguments.
4818 # Libtool will interpret -1 as no limit whatsoever
4819 lt_cv_sys_max_cmd_len=-1;
4820 ;;
4821
4822 cygwin* | mingw* | cegcc*)
4823 # On Win9x/ME, this test blows up -- it succeeds, but takes
4824 # about 5 minutes as the teststring grows exponentially.
4825 # Worse, since 9x/ME are not pre-emptively multitasking,
4826 # you end up with a "frozen" computer, even though with patience
4827 # the test eventually succeeds (with a max line length of 256k).
4828 # Instead, let's just punt: use the minimum linelength reported by
4829 # all of the supported platforms: 8192 (on NT/2K/XP).
4830 lt_cv_sys_max_cmd_len=8192;
4831 ;;
4832
4833 mint*)
4834 # On MiNT this can take a long time and run out of memory.
4835 lt_cv_sys_max_cmd_len=8192;
4836 ;;
4837
4838 amigaos*)
4839 # On AmigaOS with pdksh, this test takes hours, literally.
4840 # So we just punt and use a minimum line length of 8192.
4841 lt_cv_sys_max_cmd_len=8192;
4842 ;;
4843
4844 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4845 # This has been around since 386BSD, at least. Likely further.
4846 if test -x /sbin/sysctl; then
4847 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4848 elif test -x /usr/sbin/sysctl; then
4849 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4850 else
4851 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4852 fi
4853 # And add a safety zone
4854 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4855 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4856 ;;
4857
4858 interix*)
4859 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4860 lt_cv_sys_max_cmd_len=196608
4861 ;;
4862
4863 os2*)
4864 # The test takes a long time on OS/2.
4865 lt_cv_sys_max_cmd_len=8192
4866 ;;
4867
4868 osf*)
4869 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4870 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4871 # nice to cause kernel panics so lets avoid the loop below.
4872 # First set a reasonable default.
4873 lt_cv_sys_max_cmd_len=16384
4874 #
4875 if test -x /sbin/sysconfig; then
4876 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4877 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4878 esac
4879 fi
4880 ;;
4881 sco3.2v5*)
4882 lt_cv_sys_max_cmd_len=102400
4883 ;;
4884 sysv5* | sco5v6* | sysv4.2uw2*)
4885 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4886 if test -n "$kargmax"; then
4887 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4888 else
4889 lt_cv_sys_max_cmd_len=32768
4890 fi
4891 ;;
4892 *)
4893 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4894 if test -n "$lt_cv_sys_max_cmd_len" && \
4895 test undefined != "$lt_cv_sys_max_cmd_len"; then
4896 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4897 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4898 else
4899 # Make teststring a little bigger before we do anything with it.
4900 # a 1K string should be a reasonable start.
4901 for i in 1 2 3 4 5 6 7 8; do
4902 teststring=$teststring$teststring
4903 done
4904 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4905 # If test is not a shell built-in, we'll probably end up computing a
4906 # maximum length that is only half of the actual maximum length, but
4907 # we can't tell.
4908 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4909 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4910 test 17 != "$i" # 1/2 MB should be enough
4911 do
4912 i=`expr $i + 1`
4913 teststring=$teststring$teststring
4914 done
4915 # Only check the string length outside the loop.
4916 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4917 teststring=
4918 # Add a significant safety factor because C++ compilers can tack on
4919 # massive amounts of additional arguments before passing them to the
4920 # linker. It appears as though 1/2 is a usable value.
4921 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4922 fi
4923 ;;
4924 esac
4925
4926 fi
4927
4928 if test -n "$lt_cv_sys_max_cmd_len"; then
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4930 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4931 else
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4933 $as_echo "none" >&6; }
4934 fi
4935 max_cmd_len=$lt_cv_sys_max_cmd_len
4936
4937
4938
4939
4940
4941
4942 : ${CP="cp -f"}
4943 : ${MV="mv -f"}
4944 : ${RM="rm -f"}
4945
4946 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4947 lt_unset=unset
4948 else
4949 lt_unset=false
4950 fi
4951
4952
4953
4954
4955
4956 # test EBCDIC or ASCII
4957 case `echo X|tr X '\101'` in
4958 A) # ASCII based system
4959 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4960 lt_SP2NL='tr \040 \012'
4961 lt_NL2SP='tr \015\012 \040\040'
4962 ;;
4963 *) # EBCDIC based system
4964 lt_SP2NL='tr \100 \n'
4965 lt_NL2SP='tr \r\n \100\100'
4966 ;;
4967 esac
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4978 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4979 if ${lt_cv_to_host_file_cmd+:} false; then :
4980 $as_echo_n "(cached) " >&6
4981 else
4982 case $host in
4983 *-*-mingw* )
4984 case $build in
4985 *-*-mingw* ) # actually msys
4986 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4987 ;;
4988 *-*-cygwin* )
4989 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4990 ;;
4991 * ) # otherwise, assume *nix
4992 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4993 ;;
4994 esac
4995 ;;
4996 *-*-cygwin* )
4997 case $build in
4998 *-*-mingw* ) # actually msys
4999 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5000 ;;
5001 *-*-cygwin* )
5002 lt_cv_to_host_file_cmd=func_convert_file_noop
5003 ;;
5004 * ) # otherwise, assume *nix
5005 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5006 ;;
5007 esac
5008 ;;
5009 * ) # unhandled hosts (and "normal" native builds)
5010 lt_cv_to_host_file_cmd=func_convert_file_noop
5011 ;;
5012 esac
5013
5014 fi
5015
5016 to_host_file_cmd=$lt_cv_to_host_file_cmd
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5018 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5019
5020
5021
5022
5023
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5025 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5026 if ${lt_cv_to_tool_file_cmd+:} false; then :
5027 $as_echo_n "(cached) " >&6
5028 else
5029 #assume ordinary cross tools, or native build.
5030 lt_cv_to_tool_file_cmd=func_convert_file_noop
5031 case $host in
5032 *-*-mingw* )
5033 case $build in
5034 *-*-mingw* ) # actually msys
5035 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5036 ;;
5037 esac
5038 ;;
5039 esac
5040
5041 fi
5042
5043 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5045 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5046
5047
5048
5049
5050
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5052 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5053 if ${lt_cv_ld_reload_flag+:} false; then :
5054 $as_echo_n "(cached) " >&6
5055 else
5056 lt_cv_ld_reload_flag='-r'
5057 fi
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5059 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5060 reload_flag=$lt_cv_ld_reload_flag
5061 case $reload_flag in
5062 "" | " "*) ;;
5063 *) reload_flag=" $reload_flag" ;;
5064 esac
5065 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5066 case $host_os in
5067 cygwin* | mingw* | pw32* | cegcc*)
5068 if test yes != "$GCC"; then
5069 reload_cmds=false
5070 fi
5071 ;;
5072 darwin*)
5073 if test yes = "$GCC"; then
5074 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5075 else
5076 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5077 fi
5078 ;;
5079 esac
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089 if test -n "$ac_tool_prefix"; then
5090 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5091 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5093 $as_echo_n "checking for $ac_word... " >&6; }
5094 if ${ac_cv_prog_OBJDUMP+:} false; then :
5095 $as_echo_n "(cached) " >&6
5096 else
5097 if test -n "$OBJDUMP"; then
5098 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5099 else
5100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5101 for as_dir in $PATH
5102 do
5103 IFS=$as_save_IFS
5104 test -z "$as_dir" && as_dir=.
5105 for ac_exec_ext in '' $ac_executable_extensions; do
5106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5107 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5109 break 2
5110 fi
5111 done
5112 done
5113 IFS=$as_save_IFS
5114
5115 fi
5116 fi
5117 OBJDUMP=$ac_cv_prog_OBJDUMP
5118 if test -n "$OBJDUMP"; then
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5120 $as_echo "$OBJDUMP" >&6; }
5121 else
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5123 $as_echo "no" >&6; }
5124 fi
5125
5126
5127 fi
5128 if test -z "$ac_cv_prog_OBJDUMP"; then
5129 ac_ct_OBJDUMP=$OBJDUMP
5130 # Extract the first word of "objdump", so it can be a program name with args.
5131 set dummy objdump; ac_word=$2
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5133 $as_echo_n "checking for $ac_word... " >&6; }
5134 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5135 $as_echo_n "(cached) " >&6
5136 else
5137 if test -n "$ac_ct_OBJDUMP"; then
5138 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5139 else
5140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5141 for as_dir in $PATH
5142 do
5143 IFS=$as_save_IFS
5144 test -z "$as_dir" && as_dir=.
5145 for ac_exec_ext in '' $ac_executable_extensions; do
5146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5147 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5149 break 2
5150 fi
5151 done
5152 done
5153 IFS=$as_save_IFS
5154
5155 fi
5156 fi
5157 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5158 if test -n "$ac_ct_OBJDUMP"; then
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5160 $as_echo "$ac_ct_OBJDUMP" >&6; }
5161 else
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5163 $as_echo "no" >&6; }
5164 fi
5165
5166 if test "x$ac_ct_OBJDUMP" = x; then
5167 OBJDUMP="false"
5168 else
5169 case $cross_compiling:$ac_tool_warned in
5170 yes:)
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5172 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5173 ac_tool_warned=yes ;;
5174 esac
5175 OBJDUMP=$ac_ct_OBJDUMP
5176 fi
5177 else
5178 OBJDUMP="$ac_cv_prog_OBJDUMP"
5179 fi
5180
5181 test -z "$OBJDUMP" && OBJDUMP=objdump
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5192 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5193 if ${lt_cv_deplibs_check_method+:} false; then :
5194 $as_echo_n "(cached) " >&6
5195 else
5196 lt_cv_file_magic_cmd='$MAGIC_CMD'
5197 lt_cv_file_magic_test_file=
5198 lt_cv_deplibs_check_method='unknown'
5199 # Need to set the preceding variable on all platforms that support
5200 # interlibrary dependencies.
5201 # 'none' -- dependencies not supported.
5202 # 'unknown' -- same as none, but documents that we really don't know.
5203 # 'pass_all' -- all dependencies passed with no checks.
5204 # 'test_compile' -- check by making test program.
5205 # 'file_magic [[regex]]' -- check by looking for files in library path
5206 # that responds to the $file_magic_cmd with a given extended regex.
5207 # If you have 'file' or equivalent on your system and you're not sure
5208 # whether 'pass_all' will *always* work, you probably want this one.
5209
5210 case $host_os in
5211 aix[4-9]*)
5212 lt_cv_deplibs_check_method=pass_all
5213 ;;
5214
5215 beos*)
5216 lt_cv_deplibs_check_method=pass_all
5217 ;;
5218
5219 bsdi[45]*)
5220 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5221 lt_cv_file_magic_cmd='/usr/bin/file -L'
5222 lt_cv_file_magic_test_file=/shlib/libc.so
5223 ;;
5224
5225 cygwin*)
5226 # func_win32_libid is a shell function defined in ltmain.sh
5227 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5228 lt_cv_file_magic_cmd='func_win32_libid'
5229 ;;
5230
5231 mingw* | pw32*)
5232 # Base MSYS/MinGW do not provide the 'file' command needed by
5233 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5234 # unless we find 'file', for example because we are cross-compiling.
5235 if ( file / ) >/dev/null 2>&1; then
5236 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5237 lt_cv_file_magic_cmd='func_win32_libid'
5238 else
5239 # Keep this pattern in sync with the one in func_win32_libid.
5240 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5241 lt_cv_file_magic_cmd='$OBJDUMP -f'
5242 fi
5243 ;;
5244
5245 cegcc*)
5246 # use the weaker test based on 'objdump'. See mingw*.
5247 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5248 lt_cv_file_magic_cmd='$OBJDUMP -f'
5249 ;;
5250
5251 darwin* | rhapsody*)
5252 lt_cv_deplibs_check_method=pass_all
5253 ;;
5254
5255 freebsd* | dragonfly*)
5256 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5257 case $host_cpu in
5258 i*86 )
5259 # Not sure whether the presence of OpenBSD here was a mistake.
5260 # Let's accept both of them until this is cleared up.
5261 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5262 lt_cv_file_magic_cmd=/usr/bin/file
5263 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5264 ;;
5265 esac
5266 else
5267 lt_cv_deplibs_check_method=pass_all
5268 fi
5269 ;;
5270
5271 haiku*)
5272 lt_cv_deplibs_check_method=pass_all
5273 ;;
5274
5275 hpux10.20* | hpux11*)
5276 lt_cv_file_magic_cmd=/usr/bin/file
5277 case $host_cpu in
5278 ia64*)
5279 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5280 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5281 ;;
5282 hppa*64*)
5283 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]'
5284 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5285 ;;
5286 *)
5287 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5288 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5289 ;;
5290 esac
5291 ;;
5292
5293 interix[3-9]*)
5294 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5295 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5296 ;;
5297
5298 irix5* | irix6* | nonstopux*)
5299 case $LD in
5300 *-32|*"-32 ") libmagic=32-bit;;
5301 *-n32|*"-n32 ") libmagic=N32;;
5302 *-64|*"-64 ") libmagic=64-bit;;
5303 *) libmagic=never-match;;
5304 esac
5305 lt_cv_deplibs_check_method=pass_all
5306 ;;
5307
5308 # This must be glibc/ELF.
5309 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5310 lt_cv_deplibs_check_method=pass_all
5311 ;;
5312
5313 netbsd*)
5314 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5315 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5316 else
5317 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5318 fi
5319 ;;
5320
5321 newos6*)
5322 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5323 lt_cv_file_magic_cmd=/usr/bin/file
5324 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5325 ;;
5326
5327 *nto* | *qnx*)
5328 lt_cv_deplibs_check_method=pass_all
5329 ;;
5330
5331 openbsd* | bitrig*)
5332 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5333 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5334 else
5335 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5336 fi
5337 ;;
5338
5339 osf3* | osf4* | osf5*)
5340 lt_cv_deplibs_check_method=pass_all
5341 ;;
5342
5343 rdos*)
5344 lt_cv_deplibs_check_method=pass_all
5345 ;;
5346
5347 solaris*)
5348 lt_cv_deplibs_check_method=pass_all
5349 ;;
5350
5351 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5352 lt_cv_deplibs_check_method=pass_all
5353 ;;
5354
5355 sysv4 | sysv4.3*)
5356 case $host_vendor in
5357 motorola)
5358 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]'
5359 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5360 ;;
5361 ncr)
5362 lt_cv_deplibs_check_method=pass_all
5363 ;;
5364 sequent)
5365 lt_cv_file_magic_cmd='/bin/file'
5366 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5367 ;;
5368 sni)
5369 lt_cv_file_magic_cmd='/bin/file'
5370 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5371 lt_cv_file_magic_test_file=/lib/libc.so
5372 ;;
5373 siemens)
5374 lt_cv_deplibs_check_method=pass_all
5375 ;;
5376 pc)
5377 lt_cv_deplibs_check_method=pass_all
5378 ;;
5379 esac
5380 ;;
5381
5382 tpf*)
5383 lt_cv_deplibs_check_method=pass_all
5384 ;;
5385 os2*)
5386 lt_cv_deplibs_check_method=pass_all
5387 ;;
5388 esac
5389
5390 fi
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5392 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5393
5394 file_magic_glob=
5395 want_nocaseglob=no
5396 if test "$build" = "$host"; then
5397 case $host_os in
5398 mingw* | pw32*)
5399 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5400 want_nocaseglob=yes
5401 else
5402 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5403 fi
5404 ;;
5405 esac
5406 fi
5407
5408 file_magic_cmd=$lt_cv_file_magic_cmd
5409 deplibs_check_method=$lt_cv_deplibs_check_method
5410 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433 if test -n "$ac_tool_prefix"; then
5434 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5435 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5437 $as_echo_n "checking for $ac_word... " >&6; }
5438 if ${ac_cv_prog_DLLTOOL+:} false; then :
5439 $as_echo_n "(cached) " >&6
5440 else
5441 if test -n "$DLLTOOL"; then
5442 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5443 else
5444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5445 for as_dir in $PATH
5446 do
5447 IFS=$as_save_IFS
5448 test -z "$as_dir" && as_dir=.
5449 for ac_exec_ext in '' $ac_executable_extensions; do
5450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5451 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5453 break 2
5454 fi
5455 done
5456 done
5457 IFS=$as_save_IFS
5458
5459 fi
5460 fi
5461 DLLTOOL=$ac_cv_prog_DLLTOOL
5462 if test -n "$DLLTOOL"; then
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5464 $as_echo "$DLLTOOL" >&6; }
5465 else
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5467 $as_echo "no" >&6; }
5468 fi
5469
5470
5471 fi
5472 if test -z "$ac_cv_prog_DLLTOOL"; then
5473 ac_ct_DLLTOOL=$DLLTOOL
5474 # Extract the first word of "dlltool", so it can be a program name with args.
5475 set dummy dlltool; ac_word=$2
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5477 $as_echo_n "checking for $ac_word... " >&6; }
5478 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5479 $as_echo_n "(cached) " >&6
5480 else
5481 if test -n "$ac_ct_DLLTOOL"; then
5482 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5483 else
5484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5485 for as_dir in $PATH
5486 do
5487 IFS=$as_save_IFS
5488 test -z "$as_dir" && as_dir=.
5489 for ac_exec_ext in '' $ac_executable_extensions; do
5490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5491 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5493 break 2
5494 fi
5495 done
5496 done
5497 IFS=$as_save_IFS
5498
5499 fi
5500 fi
5501 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5502 if test -n "$ac_ct_DLLTOOL"; then
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5504 $as_echo "$ac_ct_DLLTOOL" >&6; }
5505 else
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5507 $as_echo "no" >&6; }
5508 fi
5509
5510 if test "x$ac_ct_DLLTOOL" = x; then
5511 DLLTOOL="false"
5512 else
5513 case $cross_compiling:$ac_tool_warned in
5514 yes:)
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5516 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5517 ac_tool_warned=yes ;;
5518 esac
5519 DLLTOOL=$ac_ct_DLLTOOL
5520 fi
5521 else
5522 DLLTOOL="$ac_cv_prog_DLLTOOL"
5523 fi
5524
5525 test -z "$DLLTOOL" && DLLTOOL=dlltool
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5537 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5538 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5539 $as_echo_n "(cached) " >&6
5540 else
5541 lt_cv_sharedlib_from_linklib_cmd='unknown'
5542
5543 case $host_os in
5544 cygwin* | mingw* | pw32* | cegcc*)
5545 # two different shell functions defined in ltmain.sh;
5546 # decide which one to use based on capabilities of $DLLTOOL
5547 case `$DLLTOOL --help 2>&1` in
5548 *--identify-strict*)
5549 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5550 ;;
5551 *)
5552 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5553 ;;
5554 esac
5555 ;;
5556 *)
5557 # fallback: assume linklib IS sharedlib
5558 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5559 ;;
5560 esac
5561
5562 fi
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5564 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5565 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5566 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5567
5568
5569
5570
5571
5572
5573
5574
5575 if test -n "$ac_tool_prefix"; then
5576 for ac_prog in ar
5577 do
5578 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5579 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5581 $as_echo_n "checking for $ac_word... " >&6; }
5582 if ${ac_cv_prog_AR+:} false; then :
5583 $as_echo_n "(cached) " >&6
5584 else
5585 if test -n "$AR"; then
5586 ac_cv_prog_AR="$AR" # Let the user override the test.
5587 else
5588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5589 for as_dir in $PATH
5590 do
5591 IFS=$as_save_IFS
5592 test -z "$as_dir" && as_dir=.
5593 for ac_exec_ext in '' $ac_executable_extensions; do
5594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5595 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5597 break 2
5598 fi
5599 done
5600 done
5601 IFS=$as_save_IFS
5602
5603 fi
5604 fi
5605 AR=$ac_cv_prog_AR
5606 if test -n "$AR"; then
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5608 $as_echo "$AR" >&6; }
5609 else
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5611 $as_echo "no" >&6; }
5612 fi
5613
5614
5615 test -n "$AR" && break
5616 done
5617 fi
5618 if test -z "$AR"; then
5619 ac_ct_AR=$AR
5620 for ac_prog in ar
5621 do
5622 # Extract the first word of "$ac_prog", so it can be a program name with args.
5623 set dummy $ac_prog; ac_word=$2
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5625 $as_echo_n "checking for $ac_word... " >&6; }
5626 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5627 $as_echo_n "(cached) " >&6
5628 else
5629 if test -n "$ac_ct_AR"; then
5630 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5631 else
5632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5633 for as_dir in $PATH
5634 do
5635 IFS=$as_save_IFS
5636 test -z "$as_dir" && as_dir=.
5637 for ac_exec_ext in '' $ac_executable_extensions; do
5638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5639 ac_cv_prog_ac_ct_AR="$ac_prog"
5640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5641 break 2
5642 fi
5643 done
5644 done
5645 IFS=$as_save_IFS
5646
5647 fi
5648 fi
5649 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5650 if test -n "$ac_ct_AR"; then
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5652 $as_echo "$ac_ct_AR" >&6; }
5653 else
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5655 $as_echo "no" >&6; }
5656 fi
5657
5658
5659 test -n "$ac_ct_AR" && break
5660 done
5661
5662 if test "x$ac_ct_AR" = x; then
5663 AR="false"
5664 else
5665 case $cross_compiling:$ac_tool_warned in
5666 yes:)
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5668 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5669 ac_tool_warned=yes ;;
5670 esac
5671 AR=$ac_ct_AR
5672 fi
5673 fi
5674
5675 : ${AR=ar}
5676 : ${AR_FLAGS=cru}
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5689 $as_echo_n "checking for archiver @FILE support... " >&6; }
5690 if ${lt_cv_ar_at_file+:} false; then :
5691 $as_echo_n "(cached) " >&6
5692 else
5693 lt_cv_ar_at_file=no
5694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5695 /* end confdefs.h. */
5696
5697 int
5698 main ()
5699 {
5700
5701 ;
5702 return 0;
5703 }
5704 _ACEOF
5705 if ac_fn_c_try_compile "$LINENO"; then :
5706 echo conftest.$ac_objext > conftest.lst
5707 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5708 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5709 (eval $lt_ar_try) 2>&5
5710 ac_status=$?
5711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5712 test $ac_status = 0; }
5713 if test 0 -eq "$ac_status"; then
5714 # Ensure the archiver fails upon bogus file names.
5715 rm -f conftest.$ac_objext libconftest.a
5716 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5717 (eval $lt_ar_try) 2>&5
5718 ac_status=$?
5719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5720 test $ac_status = 0; }
5721 if test 0 -ne "$ac_status"; then
5722 lt_cv_ar_at_file=@
5723 fi
5724 fi
5725 rm -f conftest.* libconftest.a
5726
5727 fi
5728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5729
5730 fi
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5732 $as_echo "$lt_cv_ar_at_file" >&6; }
5733
5734 if test no = "$lt_cv_ar_at_file"; then
5735 archiver_list_spec=
5736 else
5737 archiver_list_spec=$lt_cv_ar_at_file
5738 fi
5739
5740
5741
5742
5743
5744
5745
5746 if test -n "$ac_tool_prefix"; then
5747 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5748 set dummy ${ac_tool_prefix}strip; ac_word=$2
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5750 $as_echo_n "checking for $ac_word... " >&6; }
5751 if ${ac_cv_prog_STRIP+:} false; then :
5752 $as_echo_n "(cached) " >&6
5753 else
5754 if test -n "$STRIP"; then
5755 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5756 else
5757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5758 for as_dir in $PATH
5759 do
5760 IFS=$as_save_IFS
5761 test -z "$as_dir" && as_dir=.
5762 for ac_exec_ext in '' $ac_executable_extensions; do
5763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5764 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5766 break 2
5767 fi
5768 done
5769 done
5770 IFS=$as_save_IFS
5771
5772 fi
5773 fi
5774 STRIP=$ac_cv_prog_STRIP
5775 if test -n "$STRIP"; then
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5777 $as_echo "$STRIP" >&6; }
5778 else
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5780 $as_echo "no" >&6; }
5781 fi
5782
5783
5784 fi
5785 if test -z "$ac_cv_prog_STRIP"; then
5786 ac_ct_STRIP=$STRIP
5787 # Extract the first word of "strip", so it can be a program name with args.
5788 set dummy strip; ac_word=$2
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5790 $as_echo_n "checking for $ac_word... " >&6; }
5791 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5792 $as_echo_n "(cached) " >&6
5793 else
5794 if test -n "$ac_ct_STRIP"; then
5795 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5796 else
5797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5798 for as_dir in $PATH
5799 do
5800 IFS=$as_save_IFS
5801 test -z "$as_dir" && as_dir=.
5802 for ac_exec_ext in '' $ac_executable_extensions; do
5803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5804 ac_cv_prog_ac_ct_STRIP="strip"
5805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5806 break 2
5807 fi
5808 done
5809 done
5810 IFS=$as_save_IFS
5811
5812 fi
5813 fi
5814 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5815 if test -n "$ac_ct_STRIP"; then
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5817 $as_echo "$ac_ct_STRIP" >&6; }
5818 else
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5820 $as_echo "no" >&6; }
5821 fi
5822
5823 if test "x$ac_ct_STRIP" = x; then
5824 STRIP=":"
5825 else
5826 case $cross_compiling:$ac_tool_warned in
5827 yes:)
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5829 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5830 ac_tool_warned=yes ;;
5831 esac
5832 STRIP=$ac_ct_STRIP
5833 fi
5834 else
5835 STRIP="$ac_cv_prog_STRIP"
5836 fi
5837
5838 test -z "$STRIP" && STRIP=:
5839
5840
5841
5842
5843
5844
5845 if test -n "$ac_tool_prefix"; then
5846 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5847 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5849 $as_echo_n "checking for $ac_word... " >&6; }
5850 if ${ac_cv_prog_RANLIB+:} false; then :
5851 $as_echo_n "(cached) " >&6
5852 else
5853 if test -n "$RANLIB"; then
5854 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5855 else
5856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5857 for as_dir in $PATH
5858 do
5859 IFS=$as_save_IFS
5860 test -z "$as_dir" && as_dir=.
5861 for ac_exec_ext in '' $ac_executable_extensions; do
5862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5863 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5865 break 2
5866 fi
5867 done
5868 done
5869 IFS=$as_save_IFS
5870
5871 fi
5872 fi
5873 RANLIB=$ac_cv_prog_RANLIB
5874 if test -n "$RANLIB"; then
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5876 $as_echo "$RANLIB" >&6; }
5877 else
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5879 $as_echo "no" >&6; }
5880 fi
5881
5882
5883 fi
5884 if test -z "$ac_cv_prog_RANLIB"; then
5885 ac_ct_RANLIB=$RANLIB
5886 # Extract the first word of "ranlib", so it can be a program name with args.
5887 set dummy ranlib; ac_word=$2
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5889 $as_echo_n "checking for $ac_word... " >&6; }
5890 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5891 $as_echo_n "(cached) " >&6
5892 else
5893 if test -n "$ac_ct_RANLIB"; then
5894 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5895 else
5896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5897 for as_dir in $PATH
5898 do
5899 IFS=$as_save_IFS
5900 test -z "$as_dir" && as_dir=.
5901 for ac_exec_ext in '' $ac_executable_extensions; do
5902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5903 ac_cv_prog_ac_ct_RANLIB="ranlib"
5904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5905 break 2
5906 fi
5907 done
5908 done
5909 IFS=$as_save_IFS
5910
5911 fi
5912 fi
5913 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5914 if test -n "$ac_ct_RANLIB"; then
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5916 $as_echo "$ac_ct_RANLIB" >&6; }
5917 else
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5919 $as_echo "no" >&6; }
5920 fi
5921
5922 if test "x$ac_ct_RANLIB" = x; then
5923 RANLIB=":"
5924 else
5925 case $cross_compiling:$ac_tool_warned in
5926 yes:)
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5928 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5929 ac_tool_warned=yes ;;
5930 esac
5931 RANLIB=$ac_ct_RANLIB
5932 fi
5933 else
5934 RANLIB="$ac_cv_prog_RANLIB"
5935 fi
5936
5937 test -z "$RANLIB" && RANLIB=:
5938
5939
5940
5941
5942
5943
5944 # Determine commands to create old-style static archives.
5945 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5946 old_postinstall_cmds='chmod 644 $oldlib'
5947 old_postuninstall_cmds=
5948
5949 if test -n "$RANLIB"; then
5950 case $host_os in
5951 bitrig* | openbsd*)
5952 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5953 ;;
5954 *)
5955 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5956 ;;
5957 esac
5958 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5959 fi
5960
5961 case $host_os in
5962 darwin*)
5963 lock_old_archive_extraction=yes ;;
5964 *)
5965 lock_old_archive_extraction=no ;;
5966 esac
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006 # If no C compiler was specified, use CC.
6007 LTCC=${LTCC-"$CC"}
6008
6009 # If no C compiler flags were specified, use CFLAGS.
6010 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6011
6012 # Allow CC to be a program name with arguments.
6013 compiler=$CC
6014
6015
6016 # Check for command to grab the raw symbol name followed by C symbol from nm.
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6018 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6019 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6020 $as_echo_n "(cached) " >&6
6021 else
6022
6023 # These are sane defaults that work on at least a few old systems.
6024 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6025
6026 # Character class describing NM global symbol codes.
6027 symcode='[BCDEGRST]'
6028
6029 # Regexp to match symbols that can be accessed directly from C.
6030 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6031
6032 # Define system-specific variables.
6033 case $host_os in
6034 aix*)
6035 symcode='[BCDT]'
6036 ;;
6037 cygwin* | mingw* | pw32* | cegcc*)
6038 symcode='[ABCDGISTW]'
6039 ;;
6040 hpux*)
6041 if test ia64 = "$host_cpu"; then
6042 symcode='[ABCDEGRST]'
6043 fi
6044 ;;
6045 irix* | nonstopux*)
6046 symcode='[BCDEGRST]'
6047 ;;
6048 osf*)
6049 symcode='[BCDEGQRST]'
6050 ;;
6051 solaris*)
6052 symcode='[BDRT]'
6053 ;;
6054 sco3.2v5*)
6055 symcode='[DT]'
6056 ;;
6057 sysv4.2uw2*)
6058 symcode='[DT]'
6059 ;;
6060 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6061 symcode='[ABDT]'
6062 ;;
6063 sysv4)
6064 symcode='[DFNSTU]'
6065 ;;
6066 esac
6067
6068 # If we're using GNU nm, then use its standard symbol codes.
6069 case `$NM -V 2>&1` in
6070 *GNU* | *'with BFD'*)
6071 symcode='[ABCDGIRSTW]' ;;
6072 esac
6073
6074 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6075 # Gets list of data symbols to import.
6076 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6077 # Adjust the below global symbol transforms to fixup imported variables.
6078 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6079 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6080 lt_c_name_lib_hook="\
6081 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6082 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6083 else
6084 # Disable hooks by default.
6085 lt_cv_sys_global_symbol_to_import=
6086 lt_cdecl_hook=
6087 lt_c_name_hook=
6088 lt_c_name_lib_hook=
6089 fi
6090
6091 # Transform an extracted symbol line into a proper C declaration.
6092 # Some systems (esp. on ia64) link data and code symbols differently,
6093 # so use this general approach.
6094 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6095 $lt_cdecl_hook\
6096 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6097 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6098
6099 # Transform an extracted symbol line into symbol name and symbol address
6100 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6101 $lt_c_name_hook\
6102 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6103 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6104
6105 # Transform an extracted symbol line into symbol name with lib prefix and
6106 # symbol address.
6107 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6108 $lt_c_name_lib_hook\
6109 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6110 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6111 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6112
6113 # Handle CRLF in mingw tool chain
6114 opt_cr=
6115 case $build_os in
6116 mingw*)
6117 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6118 ;;
6119 esac
6120
6121 # Try without a prefix underscore, then with it.
6122 for ac_symprfx in "" "_"; do
6123
6124 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6125 symxfrm="\\1 $ac_symprfx\\2 \\2"
6126
6127 # Write the raw and C identifiers.
6128 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6129 # Fake it for dumpbin and say T for any non-static function,
6130 # D for any global variable and I for any imported variable.
6131 # Also find C++ and __fastcall symbols from MSVC++,
6132 # which start with @ or ?.
6133 lt_cv_sys_global_symbol_pipe="$AWK '"\
6134 " {last_section=section; section=\$ 3};"\
6135 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6136 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6137 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6138 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6139 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6140 " \$ 0!~/External *\|/{next};"\
6141 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6142 " {if(hide[section]) next};"\
6143 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6144 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6145 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6146 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6147 " ' prfx=^$ac_symprfx"
6148 else
6149 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6150 fi
6151 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6152
6153 # Check to see that the pipe works correctly.
6154 pipe_works=no
6155
6156 rm -f conftest*
6157 cat > conftest.$ac_ext <<_LT_EOF
6158 #ifdef __cplusplus
6159 extern "C" {
6160 #endif
6161 char nm_test_var;
6162 void nm_test_func(void);
6163 void nm_test_func(void){}
6164 #ifdef __cplusplus
6165 }
6166 #endif
6167 int main(){nm_test_var='a';nm_test_func();return(0);}
6168 _LT_EOF
6169
6170 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6171 (eval $ac_compile) 2>&5
6172 ac_status=$?
6173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6174 test $ac_status = 0; }; then
6175 # Now try to grab the symbols.
6176 nlist=conftest.nm
6177 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6178 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6179 ac_status=$?
6180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6181 test $ac_status = 0; } && test -s "$nlist"; then
6182 # Try sorting and uniquifying the output.
6183 if sort "$nlist" | uniq > "$nlist"T; then
6184 mv -f "$nlist"T "$nlist"
6185 else
6186 rm -f "$nlist"T
6187 fi
6188
6189 # Make sure that we snagged all the symbols we need.
6190 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6191 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6192 cat <<_LT_EOF > conftest.$ac_ext
6193 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6194 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6195 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6196 relocations are performed -- see ld's documentation on pseudo-relocs. */
6197 # define LT_DLSYM_CONST
6198 #elif defined __osf__
6199 /* This system does not cope well with relocations in const data. */
6200 # define LT_DLSYM_CONST
6201 #else
6202 # define LT_DLSYM_CONST const
6203 #endif
6204
6205 #ifdef __cplusplus
6206 extern "C" {
6207 #endif
6208
6209 _LT_EOF
6210 # Now generate the symbol file.
6211 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6212
6213 cat <<_LT_EOF >> conftest.$ac_ext
6214
6215 /* The mapping between symbol names and symbols. */
6216 LT_DLSYM_CONST struct {
6217 const char *name;
6218 void *address;
6219 }
6220 lt__PROGRAM__LTX_preloaded_symbols[] =
6221 {
6222 { "@PROGRAM@", (void *) 0 },
6223 _LT_EOF
6224 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6225 cat <<\_LT_EOF >> conftest.$ac_ext
6226 {0, (void *) 0}
6227 };
6228
6229 /* This works around a problem in FreeBSD linker */
6230 #ifdef FREEBSD_WORKAROUND
6231 static const void *lt_preloaded_setup() {
6232 return lt__PROGRAM__LTX_preloaded_symbols;
6233 }
6234 #endif
6235
6236 #ifdef __cplusplus
6237 }
6238 #endif
6239 _LT_EOF
6240 # Now try linking the two files.
6241 mv conftest.$ac_objext conftstm.$ac_objext
6242 lt_globsym_save_LIBS=$LIBS
6243 lt_globsym_save_CFLAGS=$CFLAGS
6244 LIBS=conftstm.$ac_objext
6245 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6246 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6247 (eval $ac_link) 2>&5
6248 ac_status=$?
6249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6250 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6251 pipe_works=yes
6252 fi
6253 LIBS=$lt_globsym_save_LIBS
6254 CFLAGS=$lt_globsym_save_CFLAGS
6255 else
6256 echo "cannot find nm_test_func in $nlist" >&5
6257 fi
6258 else
6259 echo "cannot find nm_test_var in $nlist" >&5
6260 fi
6261 else
6262 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6263 fi
6264 else
6265 echo "$progname: failed program was:" >&5
6266 cat conftest.$ac_ext >&5
6267 fi
6268 rm -rf conftest* conftst*
6269
6270 # Do not use the global_symbol_pipe unless it works.
6271 if test yes = "$pipe_works"; then
6272 break
6273 else
6274 lt_cv_sys_global_symbol_pipe=
6275 fi
6276 done
6277
6278 fi
6279
6280 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6281 lt_cv_sys_global_symbol_to_cdecl=
6282 fi
6283 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6285 $as_echo "failed" >&6; }
6286 else
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6288 $as_echo "ok" >&6; }
6289 fi
6290
6291 # Response file support.
6292 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6293 nm_file_list_spec='@'
6294 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6295 nm_file_list_spec='@'
6296 fi
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6335 $as_echo_n "checking for sysroot... " >&6; }
6336
6337 # Check whether --with-sysroot was given.
6338 if test "${with_sysroot+set}" = set; then :
6339 withval=$with_sysroot;
6340 else
6341 with_sysroot=no
6342 fi
6343
6344
6345 lt_sysroot=
6346 case $with_sysroot in #(
6347 yes)
6348 if test yes = "$GCC"; then
6349 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6350 fi
6351 ;; #(
6352 /*)
6353 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6354 ;; #(
6355 no|'')
6356 ;; #(
6357 *)
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6359 $as_echo "$with_sysroot" >&6; }
6360 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6361 ;;
6362 esac
6363
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6365 $as_echo "${lt_sysroot:-no}" >&6; }
6366
6367
6368
6369
6370
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6372 $as_echo_n "checking for a working dd... " >&6; }
6373 if ${ac_cv_path_lt_DD+:} false; then :
6374 $as_echo_n "(cached) " >&6
6375 else
6376 printf 0123456789abcdef0123456789abcdef >conftest.i
6377 cat conftest.i conftest.i >conftest2.i
6378 : ${lt_DD:=$DD}
6379 if test -z "$lt_DD"; then
6380 ac_path_lt_DD_found=false
6381 # Loop through the user's path and test for each of PROGNAME-LIST
6382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6383 for as_dir in $PATH
6384 do
6385 IFS=$as_save_IFS
6386 test -z "$as_dir" && as_dir=.
6387 for ac_prog in dd; do
6388 for ac_exec_ext in '' $ac_executable_extensions; do
6389 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6390 as_fn_executable_p "$ac_path_lt_DD" || continue
6391 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6392 cmp -s conftest.i conftest.out \
6393 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6394 fi
6395 $ac_path_lt_DD_found && break 3
6396 done
6397 done
6398 done
6399 IFS=$as_save_IFS
6400 if test -z "$ac_cv_path_lt_DD"; then
6401 :
6402 fi
6403 else
6404 ac_cv_path_lt_DD=$lt_DD
6405 fi
6406
6407 rm -f conftest.i conftest2.i conftest.out
6408 fi
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6410 $as_echo "$ac_cv_path_lt_DD" >&6; }
6411
6412
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6414 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6415 if ${lt_cv_truncate_bin+:} false; then :
6416 $as_echo_n "(cached) " >&6
6417 else
6418 printf 0123456789abcdef0123456789abcdef >conftest.i
6419 cat conftest.i conftest.i >conftest2.i
6420 lt_cv_truncate_bin=
6421 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6422 cmp -s conftest.i conftest.out \
6423 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6424 fi
6425 rm -f conftest.i conftest2.i conftest.out
6426 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6427 fi
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6429 $as_echo "$lt_cv_truncate_bin" >&6; }
6430
6431
6432
6433
6434
6435
6436
6437 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6438 func_cc_basename ()
6439 {
6440 for cc_temp in $*""; do
6441 case $cc_temp in
6442 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6443 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6444 \-*) ;;
6445 *) break;;
6446 esac
6447 done
6448 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6449 }
6450
6451 # Check whether --enable-libtool-lock was given.
6452 if test "${enable_libtool_lock+set}" = set; then :
6453 enableval=$enable_libtool_lock;
6454 fi
6455
6456 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6457
6458 # Some flags need to be propagated to the compiler or linker for good
6459 # libtool support.
6460 case $host in
6461 ia64-*-hpux*)
6462 # Find out what ABI is being produced by ac_compile, and set mode
6463 # options accordingly.
6464 echo 'int i;' > conftest.$ac_ext
6465 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6466 (eval $ac_compile) 2>&5
6467 ac_status=$?
6468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6469 test $ac_status = 0; }; then
6470 case `/usr/bin/file conftest.$ac_objext` in
6471 *ELF-32*)
6472 HPUX_IA64_MODE=32
6473 ;;
6474 *ELF-64*)
6475 HPUX_IA64_MODE=64
6476 ;;
6477 esac
6478 fi
6479 rm -rf conftest*
6480 ;;
6481 *-*-irix6*)
6482 # Find out what ABI is being produced by ac_compile, and set linker
6483 # options accordingly.
6484 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6485 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6486 (eval $ac_compile) 2>&5
6487 ac_status=$?
6488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6489 test $ac_status = 0; }; then
6490 if test yes = "$lt_cv_prog_gnu_ld"; then
6491 case `/usr/bin/file conftest.$ac_objext` in
6492 *32-bit*)
6493 LD="${LD-ld} -melf32bsmip"
6494 ;;
6495 *N32*)
6496 LD="${LD-ld} -melf32bmipn32"
6497 ;;
6498 *64-bit*)
6499 LD="${LD-ld} -melf64bmip"
6500 ;;
6501 esac
6502 else
6503 case `/usr/bin/file conftest.$ac_objext` in
6504 *32-bit*)
6505 LD="${LD-ld} -32"
6506 ;;
6507 *N32*)
6508 LD="${LD-ld} -n32"
6509 ;;
6510 *64-bit*)
6511 LD="${LD-ld} -64"
6512 ;;
6513 esac
6514 fi
6515 fi
6516 rm -rf conftest*
6517 ;;
6518
6519 mips64*-*linux*)
6520 # Find out what ABI is being produced by ac_compile, and set linker
6521 # options accordingly.
6522 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6523 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6524 (eval $ac_compile) 2>&5
6525 ac_status=$?
6526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6527 test $ac_status = 0; }; then
6528 emul=elf
6529 case `/usr/bin/file conftest.$ac_objext` in
6530 *32-bit*)
6531 emul="${emul}32"
6532 ;;
6533 *64-bit*)
6534 emul="${emul}64"
6535 ;;
6536 esac
6537 case `/usr/bin/file conftest.$ac_objext` in
6538 *MSB*)
6539 emul="${emul}btsmip"
6540 ;;
6541 *LSB*)
6542 emul="${emul}ltsmip"
6543 ;;
6544 esac
6545 case `/usr/bin/file conftest.$ac_objext` in
6546 *N32*)
6547 emul="${emul}n32"
6548 ;;
6549 esac
6550 LD="${LD-ld} -m $emul"
6551 fi
6552 rm -rf conftest*
6553 ;;
6554
6555 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6556 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6557 # Find out what ABI is being produced by ac_compile, and set linker
6558 # options accordingly. Note that the listed cases only cover the
6559 # situations where additional linker options are needed (such as when
6560 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6561 # vice versa); the common cases where no linker options are needed do
6562 # not appear in the list.
6563 echo 'int i;' > conftest.$ac_ext
6564 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6565 (eval $ac_compile) 2>&5
6566 ac_status=$?
6567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6568 test $ac_status = 0; }; then
6569 case `/usr/bin/file conftest.o` in
6570 *32-bit*)
6571 case $host in
6572 x86_64-*kfreebsd*-gnu)
6573 LD="${LD-ld} -m elf_i386_fbsd"
6574 ;;
6575 x86_64-*linux*)
6576 case `/usr/bin/file conftest.o` in
6577 *x86-64*)
6578 LD="${LD-ld} -m elf32_x86_64"
6579 ;;
6580 *)
6581 LD="${LD-ld} -m elf_i386"
6582 ;;
6583 esac
6584 ;;
6585 powerpc64le-*linux*)
6586 LD="${LD-ld} -m elf32lppclinux"
6587 ;;
6588 powerpc64-*linux*)
6589 LD="${LD-ld} -m elf32ppclinux"
6590 ;;
6591 s390x-*linux*)
6592 LD="${LD-ld} -m elf_s390"
6593 ;;
6594 sparc64-*linux*)
6595 LD="${LD-ld} -m elf32_sparc"
6596 ;;
6597 esac
6598 ;;
6599 *64-bit*)
6600 case $host in
6601 x86_64-*kfreebsd*-gnu)
6602 LD="${LD-ld} -m elf_x86_64_fbsd"
6603 ;;
6604 x86_64-*linux*)
6605 LD="${LD-ld} -m elf_x86_64"
6606 ;;
6607 powerpcle-*linux*)
6608 LD="${LD-ld} -m elf64lppc"
6609 ;;
6610 powerpc-*linux*)
6611 LD="${LD-ld} -m elf64ppc"
6612 ;;
6613 s390*-*linux*|s390*-*tpf*)
6614 LD="${LD-ld} -m elf64_s390"
6615 ;;
6616 sparc*-*linux*)
6617 LD="${LD-ld} -m elf64_sparc"
6618 ;;
6619 esac
6620 ;;
6621 esac
6622 fi
6623 rm -rf conftest*
6624 ;;
6625
6626 *-*-sco3.2v5*)
6627 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6628 SAVE_CFLAGS=$CFLAGS
6629 CFLAGS="$CFLAGS -belf"
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6631 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6632 if ${lt_cv_cc_needs_belf+:} false; then :
6633 $as_echo_n "(cached) " >&6
6634 else
6635 ac_ext=c
6636 ac_cpp='$CPP $CPPFLAGS'
6637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6640
6641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6642 /* end confdefs.h. */
6643
6644 int
6645 main ()
6646 {
6647
6648 ;
6649 return 0;
6650 }
6651 _ACEOF
6652 if ac_fn_c_try_link "$LINENO"; then :
6653 lt_cv_cc_needs_belf=yes
6654 else
6655 lt_cv_cc_needs_belf=no
6656 fi
6657 rm -f core conftest.err conftest.$ac_objext \
6658 conftest$ac_exeext conftest.$ac_ext
6659 ac_ext=c
6660 ac_cpp='$CPP $CPPFLAGS'
6661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6664
6665 fi
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6667 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6668 if test yes != "$lt_cv_cc_needs_belf"; then
6669 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6670 CFLAGS=$SAVE_CFLAGS
6671 fi
6672 ;;
6673 *-*solaris*)
6674 # Find out what ABI is being produced by ac_compile, and set linker
6675 # options accordingly.
6676 echo 'int i;' > conftest.$ac_ext
6677 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6678 (eval $ac_compile) 2>&5
6679 ac_status=$?
6680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6681 test $ac_status = 0; }; then
6682 case `/usr/bin/file conftest.o` in
6683 *64-bit*)
6684 case $lt_cv_prog_gnu_ld in
6685 yes*)
6686 case $host in
6687 i?86-*-solaris*|x86_64-*-solaris*)
6688 LD="${LD-ld} -m elf_x86_64"
6689 ;;
6690 sparc*-*-solaris*)
6691 LD="${LD-ld} -m elf64_sparc"
6692 ;;
6693 esac
6694 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6695 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6696 LD=${LD-ld}_sol2
6697 fi
6698 ;;
6699 *)
6700 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6701 LD="${LD-ld} -64"
6702 fi
6703 ;;
6704 esac
6705 ;;
6706 esac
6707 fi
6708 rm -rf conftest*
6709 ;;
6710 esac
6711
6712 need_locks=$enable_libtool_lock
6713
6714 if test -n "$ac_tool_prefix"; then
6715 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6716 set dummy ${ac_tool_prefix}mt; ac_word=$2
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6718 $as_echo_n "checking for $ac_word... " >&6; }
6719 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6720 $as_echo_n "(cached) " >&6
6721 else
6722 if test -n "$MANIFEST_TOOL"; then
6723 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6724 else
6725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6726 for as_dir in $PATH
6727 do
6728 IFS=$as_save_IFS
6729 test -z "$as_dir" && as_dir=.
6730 for ac_exec_ext in '' $ac_executable_extensions; do
6731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6732 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6734 break 2
6735 fi
6736 done
6737 done
6738 IFS=$as_save_IFS
6739
6740 fi
6741 fi
6742 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6743 if test -n "$MANIFEST_TOOL"; then
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6745 $as_echo "$MANIFEST_TOOL" >&6; }
6746 else
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6748 $as_echo "no" >&6; }
6749 fi
6750
6751
6752 fi
6753 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6754 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6755 # Extract the first word of "mt", so it can be a program name with args.
6756 set dummy mt; ac_word=$2
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6758 $as_echo_n "checking for $ac_word... " >&6; }
6759 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6760 $as_echo_n "(cached) " >&6
6761 else
6762 if test -n "$ac_ct_MANIFEST_TOOL"; then
6763 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6764 else
6765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6766 for as_dir in $PATH
6767 do
6768 IFS=$as_save_IFS
6769 test -z "$as_dir" && as_dir=.
6770 for ac_exec_ext in '' $ac_executable_extensions; do
6771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6772 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6774 break 2
6775 fi
6776 done
6777 done
6778 IFS=$as_save_IFS
6779
6780 fi
6781 fi
6782 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6783 if test -n "$ac_ct_MANIFEST_TOOL"; then
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6785 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6786 else
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6788 $as_echo "no" >&6; }
6789 fi
6790
6791 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6792 MANIFEST_TOOL=":"
6793 else
6794 case $cross_compiling:$ac_tool_warned in
6795 yes:)
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6797 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6798 ac_tool_warned=yes ;;
6799 esac
6800 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6801 fi
6802 else
6803 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6804 fi
6805
6806 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6808 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6809 if ${lt_cv_path_mainfest_tool+:} false; then :
6810 $as_echo_n "(cached) " >&6
6811 else
6812 lt_cv_path_mainfest_tool=no
6813 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6814 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6815 cat conftest.err >&5
6816 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6817 lt_cv_path_mainfest_tool=yes
6818 fi
6819 rm -f conftest*
6820 fi
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6822 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6823 if test yes != "$lt_cv_path_mainfest_tool"; then
6824 MANIFEST_TOOL=:
6825 fi
6826
6827
6828
6829
6830
6831
6832 case $host_os in
6833 rhapsody* | darwin*)
6834 if test -n "$ac_tool_prefix"; then
6835 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6836 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6838 $as_echo_n "checking for $ac_word... " >&6; }
6839 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6840 $as_echo_n "(cached) " >&6
6841 else
6842 if test -n "$DSYMUTIL"; then
6843 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6844 else
6845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6846 for as_dir in $PATH
6847 do
6848 IFS=$as_save_IFS
6849 test -z "$as_dir" && as_dir=.
6850 for ac_exec_ext in '' $ac_executable_extensions; do
6851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6852 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6854 break 2
6855 fi
6856 done
6857 done
6858 IFS=$as_save_IFS
6859
6860 fi
6861 fi
6862 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6863 if test -n "$DSYMUTIL"; then
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6865 $as_echo "$DSYMUTIL" >&6; }
6866 else
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6868 $as_echo "no" >&6; }
6869 fi
6870
6871
6872 fi
6873 if test -z "$ac_cv_prog_DSYMUTIL"; then
6874 ac_ct_DSYMUTIL=$DSYMUTIL
6875 # Extract the first word of "dsymutil", so it can be a program name with args.
6876 set dummy dsymutil; ac_word=$2
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6878 $as_echo_n "checking for $ac_word... " >&6; }
6879 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6880 $as_echo_n "(cached) " >&6
6881 else
6882 if test -n "$ac_ct_DSYMUTIL"; then
6883 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6884 else
6885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6886 for as_dir in $PATH
6887 do
6888 IFS=$as_save_IFS
6889 test -z "$as_dir" && as_dir=.
6890 for ac_exec_ext in '' $ac_executable_extensions; do
6891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6892 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6894 break 2
6895 fi
6896 done
6897 done
6898 IFS=$as_save_IFS
6899
6900 fi
6901 fi
6902 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6903 if test -n "$ac_ct_DSYMUTIL"; then
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6905 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6906 else
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6908 $as_echo "no" >&6; }
6909 fi
6910
6911 if test "x$ac_ct_DSYMUTIL" = x; then
6912 DSYMUTIL=":"
6913 else
6914 case $cross_compiling:$ac_tool_warned in
6915 yes:)
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6917 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6918 ac_tool_warned=yes ;;
6919 esac
6920 DSYMUTIL=$ac_ct_DSYMUTIL
6921 fi
6922 else
6923 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6924 fi
6925
6926 if test -n "$ac_tool_prefix"; then
6927 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6928 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6930 $as_echo_n "checking for $ac_word... " >&6; }
6931 if ${ac_cv_prog_NMEDIT+:} false; then :
6932 $as_echo_n "(cached) " >&6
6933 else
6934 if test -n "$NMEDIT"; then
6935 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6936 else
6937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6938 for as_dir in $PATH
6939 do
6940 IFS=$as_save_IFS
6941 test -z "$as_dir" && as_dir=.
6942 for ac_exec_ext in '' $ac_executable_extensions; do
6943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6944 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6946 break 2
6947 fi
6948 done
6949 done
6950 IFS=$as_save_IFS
6951
6952 fi
6953 fi
6954 NMEDIT=$ac_cv_prog_NMEDIT
6955 if test -n "$NMEDIT"; then
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6957 $as_echo "$NMEDIT" >&6; }
6958 else
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6960 $as_echo "no" >&6; }
6961 fi
6962
6963
6964 fi
6965 if test -z "$ac_cv_prog_NMEDIT"; then
6966 ac_ct_NMEDIT=$NMEDIT
6967 # Extract the first word of "nmedit", so it can be a program name with args.
6968 set dummy nmedit; ac_word=$2
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6970 $as_echo_n "checking for $ac_word... " >&6; }
6971 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6972 $as_echo_n "(cached) " >&6
6973 else
6974 if test -n "$ac_ct_NMEDIT"; then
6975 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6976 else
6977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6978 for as_dir in $PATH
6979 do
6980 IFS=$as_save_IFS
6981 test -z "$as_dir" && as_dir=.
6982 for ac_exec_ext in '' $ac_executable_extensions; do
6983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6984 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6986 break 2
6987 fi
6988 done
6989 done
6990 IFS=$as_save_IFS
6991
6992 fi
6993 fi
6994 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6995 if test -n "$ac_ct_NMEDIT"; then
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6997 $as_echo "$ac_ct_NMEDIT" >&6; }
6998 else
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7000 $as_echo "no" >&6; }
7001 fi
7002
7003 if test "x$ac_ct_NMEDIT" = x; then
7004 NMEDIT=":"
7005 else
7006 case $cross_compiling:$ac_tool_warned in
7007 yes:)
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7009 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7010 ac_tool_warned=yes ;;
7011 esac
7012 NMEDIT=$ac_ct_NMEDIT
7013 fi
7014 else
7015 NMEDIT="$ac_cv_prog_NMEDIT"
7016 fi
7017
7018 if test -n "$ac_tool_prefix"; then
7019 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7020 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7022 $as_echo_n "checking for $ac_word... " >&6; }
7023 if ${ac_cv_prog_LIPO+:} false; then :
7024 $as_echo_n "(cached) " >&6
7025 else
7026 if test -n "$LIPO"; then
7027 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7028 else
7029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7030 for as_dir in $PATH
7031 do
7032 IFS=$as_save_IFS
7033 test -z "$as_dir" && as_dir=.
7034 for ac_exec_ext in '' $ac_executable_extensions; do
7035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7036 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7038 break 2
7039 fi
7040 done
7041 done
7042 IFS=$as_save_IFS
7043
7044 fi
7045 fi
7046 LIPO=$ac_cv_prog_LIPO
7047 if test -n "$LIPO"; then
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7049 $as_echo "$LIPO" >&6; }
7050 else
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7052 $as_echo "no" >&6; }
7053 fi
7054
7055
7056 fi
7057 if test -z "$ac_cv_prog_LIPO"; then
7058 ac_ct_LIPO=$LIPO
7059 # Extract the first word of "lipo", so it can be a program name with args.
7060 set dummy lipo; ac_word=$2
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7062 $as_echo_n "checking for $ac_word... " >&6; }
7063 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7064 $as_echo_n "(cached) " >&6
7065 else
7066 if test -n "$ac_ct_LIPO"; then
7067 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7068 else
7069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7070 for as_dir in $PATH
7071 do
7072 IFS=$as_save_IFS
7073 test -z "$as_dir" && as_dir=.
7074 for ac_exec_ext in '' $ac_executable_extensions; do
7075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7076 ac_cv_prog_ac_ct_LIPO="lipo"
7077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7078 break 2
7079 fi
7080 done
7081 done
7082 IFS=$as_save_IFS
7083
7084 fi
7085 fi
7086 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7087 if test -n "$ac_ct_LIPO"; then
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7089 $as_echo "$ac_ct_LIPO" >&6; }
7090 else
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7092 $as_echo "no" >&6; }
7093 fi
7094
7095 if test "x$ac_ct_LIPO" = x; then
7096 LIPO=":"
7097 else
7098 case $cross_compiling:$ac_tool_warned in
7099 yes:)
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7101 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7102 ac_tool_warned=yes ;;
7103 esac
7104 LIPO=$ac_ct_LIPO
7105 fi
7106 else
7107 LIPO="$ac_cv_prog_LIPO"
7108 fi
7109
7110 if test -n "$ac_tool_prefix"; then
7111 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7112 set dummy ${ac_tool_prefix}otool; ac_word=$2
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7114 $as_echo_n "checking for $ac_word... " >&6; }
7115 if ${ac_cv_prog_OTOOL+:} false; then :
7116 $as_echo_n "(cached) " >&6
7117 else
7118 if test -n "$OTOOL"; then
7119 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7120 else
7121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7122 for as_dir in $PATH
7123 do
7124 IFS=$as_save_IFS
7125 test -z "$as_dir" && as_dir=.
7126 for ac_exec_ext in '' $ac_executable_extensions; do
7127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7128 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7130 break 2
7131 fi
7132 done
7133 done
7134 IFS=$as_save_IFS
7135
7136 fi
7137 fi
7138 OTOOL=$ac_cv_prog_OTOOL
7139 if test -n "$OTOOL"; then
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7141 $as_echo "$OTOOL" >&6; }
7142 else
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7144 $as_echo "no" >&6; }
7145 fi
7146
7147
7148 fi
7149 if test -z "$ac_cv_prog_OTOOL"; then
7150 ac_ct_OTOOL=$OTOOL
7151 # Extract the first word of "otool", so it can be a program name with args.
7152 set dummy otool; ac_word=$2
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7154 $as_echo_n "checking for $ac_word... " >&6; }
7155 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7156 $as_echo_n "(cached) " >&6
7157 else
7158 if test -n "$ac_ct_OTOOL"; then
7159 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7160 else
7161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7162 for as_dir in $PATH
7163 do
7164 IFS=$as_save_IFS
7165 test -z "$as_dir" && as_dir=.
7166 for ac_exec_ext in '' $ac_executable_extensions; do
7167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7168 ac_cv_prog_ac_ct_OTOOL="otool"
7169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7170 break 2
7171 fi
7172 done
7173 done
7174 IFS=$as_save_IFS
7175
7176 fi
7177 fi
7178 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7179 if test -n "$ac_ct_OTOOL"; then
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7181 $as_echo "$ac_ct_OTOOL" >&6; }
7182 else
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7184 $as_echo "no" >&6; }
7185 fi
7186
7187 if test "x$ac_ct_OTOOL" = x; then
7188 OTOOL=":"
7189 else
7190 case $cross_compiling:$ac_tool_warned in
7191 yes:)
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7193 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7194 ac_tool_warned=yes ;;
7195 esac
7196 OTOOL=$ac_ct_OTOOL
7197 fi
7198 else
7199 OTOOL="$ac_cv_prog_OTOOL"
7200 fi
7201
7202 if test -n "$ac_tool_prefix"; then
7203 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7204 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7206 $as_echo_n "checking for $ac_word... " >&6; }
7207 if ${ac_cv_prog_OTOOL64+:} false; then :
7208 $as_echo_n "(cached) " >&6
7209 else
7210 if test -n "$OTOOL64"; then
7211 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7212 else
7213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7214 for as_dir in $PATH
7215 do
7216 IFS=$as_save_IFS
7217 test -z "$as_dir" && as_dir=.
7218 for ac_exec_ext in '' $ac_executable_extensions; do
7219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7220 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7222 break 2
7223 fi
7224 done
7225 done
7226 IFS=$as_save_IFS
7227
7228 fi
7229 fi
7230 OTOOL64=$ac_cv_prog_OTOOL64
7231 if test -n "$OTOOL64"; then
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7233 $as_echo "$OTOOL64" >&6; }
7234 else
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7236 $as_echo "no" >&6; }
7237 fi
7238
7239
7240 fi
7241 if test -z "$ac_cv_prog_OTOOL64"; then
7242 ac_ct_OTOOL64=$OTOOL64
7243 # Extract the first word of "otool64", so it can be a program name with args.
7244 set dummy otool64; ac_word=$2
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7246 $as_echo_n "checking for $ac_word... " >&6; }
7247 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7248 $as_echo_n "(cached) " >&6
7249 else
7250 if test -n "$ac_ct_OTOOL64"; then
7251 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7252 else
7253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7254 for as_dir in $PATH
7255 do
7256 IFS=$as_save_IFS
7257 test -z "$as_dir" && as_dir=.
7258 for ac_exec_ext in '' $ac_executable_extensions; do
7259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7260 ac_cv_prog_ac_ct_OTOOL64="otool64"
7261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7262 break 2
7263 fi
7264 done
7265 done
7266 IFS=$as_save_IFS
7267
7268 fi
7269 fi
7270 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7271 if test -n "$ac_ct_OTOOL64"; then
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7273 $as_echo "$ac_ct_OTOOL64" >&6; }
7274 else
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7276 $as_echo "no" >&6; }
7277 fi
7278
7279 if test "x$ac_ct_OTOOL64" = x; then
7280 OTOOL64=":"
7281 else
7282 case $cross_compiling:$ac_tool_warned in
7283 yes:)
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7285 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7286 ac_tool_warned=yes ;;
7287 esac
7288 OTOOL64=$ac_ct_OTOOL64
7289 fi
7290 else
7291 OTOOL64="$ac_cv_prog_OTOOL64"
7292 fi
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7321 $as_echo_n "checking for -single_module linker flag... " >&6; }
7322 if ${lt_cv_apple_cc_single_mod+:} false; then :
7323 $as_echo_n "(cached) " >&6
7324 else
7325 lt_cv_apple_cc_single_mod=no
7326 if test -z "$LT_MULTI_MODULE"; then
7327 # By default we will add the -single_module flag. You can override
7328 # by either setting the environment variable LT_MULTI_MODULE
7329 # non-empty at configure time, or by adding -multi_module to the
7330 # link flags.
7331 rm -rf libconftest.dylib*
7332 echo "int foo(void){return 1;}" > conftest.c
7333 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7334 -dynamiclib -Wl,-single_module conftest.c" >&5
7335 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7336 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7337 _lt_result=$?
7338 # If there is a non-empty error log, and "single_module"
7339 # appears in it, assume the flag caused a linker warning
7340 if test -s conftest.err && $GREP single_module conftest.err; then
7341 cat conftest.err >&5
7342 # Otherwise, if the output was created with a 0 exit code from
7343 # the compiler, it worked.
7344 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7345 lt_cv_apple_cc_single_mod=yes
7346 else
7347 cat conftest.err >&5
7348 fi
7349 rm -rf libconftest.dylib*
7350 rm -f conftest.*
7351 fi
7352 fi
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7354 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7355
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7357 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7358 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7359 $as_echo_n "(cached) " >&6
7360 else
7361 lt_cv_ld_exported_symbols_list=no
7362 save_LDFLAGS=$LDFLAGS
7363 echo "_main" > conftest.sym
7364 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7366 /* end confdefs.h. */
7367
7368 int
7369 main ()
7370 {
7371
7372 ;
7373 return 0;
7374 }
7375 _ACEOF
7376 if ac_fn_c_try_link "$LINENO"; then :
7377 lt_cv_ld_exported_symbols_list=yes
7378 else
7379 lt_cv_ld_exported_symbols_list=no
7380 fi
7381 rm -f core conftest.err conftest.$ac_objext \
7382 conftest$ac_exeext conftest.$ac_ext
7383 LDFLAGS=$save_LDFLAGS
7384
7385 fi
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7387 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7388
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7390 $as_echo_n "checking for -force_load linker flag... " >&6; }
7391 if ${lt_cv_ld_force_load+:} false; then :
7392 $as_echo_n "(cached) " >&6
7393 else
7394 lt_cv_ld_force_load=no
7395 cat > conftest.c << _LT_EOF
7396 int forced_loaded() { return 2;}
7397 _LT_EOF
7398 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7399 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7400 echo "$AR cru libconftest.a conftest.o" >&5
7401 $AR cru libconftest.a conftest.o 2>&5
7402 echo "$RANLIB libconftest.a" >&5
7403 $RANLIB libconftest.a 2>&5
7404 cat > conftest.c << _LT_EOF
7405 int main() { return 0;}
7406 _LT_EOF
7407 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7408 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7409 _lt_result=$?
7410 if test -s conftest.err && $GREP force_load conftest.err; then
7411 cat conftest.err >&5
7412 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7413 lt_cv_ld_force_load=yes
7414 else
7415 cat conftest.err >&5
7416 fi
7417 rm -f conftest.err libconftest.a conftest conftest.c
7418 rm -rf conftest.dSYM
7419
7420 fi
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7422 $as_echo "$lt_cv_ld_force_load" >&6; }
7423 case $host_os in
7424 rhapsody* | darwin1.[012])
7425 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7426 darwin1.*)
7427 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7428 darwin*) # darwin 5.x on
7429 # if running on 10.5 or later, the deployment target defaults
7430 # to the OS version, if on x86, and 10.4, the deployment
7431 # target defaults to 10.4. Don't you love it?
7432 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7433 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7434 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7435 10.[012][,.]*)
7436 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7437 10.*)
7438 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7439 esac
7440 ;;
7441 esac
7442 if test yes = "$lt_cv_apple_cc_single_mod"; then
7443 _lt_dar_single_mod='$single_module'
7444 fi
7445 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7446 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7447 else
7448 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7449 fi
7450 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7451 _lt_dsymutil='~$DSYMUTIL $lib || :'
7452 else
7453 _lt_dsymutil=
7454 fi
7455 ;;
7456 esac
7457
7458 # func_munge_path_list VARIABLE PATH
7459 # -----------------------------------
7460 # VARIABLE is name of variable containing _space_ separated list of
7461 # directories to be munged by the contents of PATH, which is string
7462 # having a format:
7463 # "DIR[:DIR]:"
7464 # string "DIR[ DIR]" will be prepended to VARIABLE
7465 # ":DIR[:DIR]"
7466 # string "DIR[ DIR]" will be appended to VARIABLE
7467 # "DIRP[:DIRP]::[DIRA:]DIRA"
7468 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7469 # "DIRA[ DIRA]" will be appended to VARIABLE
7470 # "DIR[:DIR]"
7471 # VARIABLE will be replaced by "DIR[ DIR]"
7472 func_munge_path_list ()
7473 {
7474 case x$2 in
7475 x)
7476 ;;
7477 *:)
7478 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7479 ;;
7480 x:*)
7481 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7482 ;;
7483 *::*)
7484 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7485 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7486 ;;
7487 *)
7488 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7489 ;;
7490 esac
7491 }
7492
7493 ac_ext=c
7494 ac_cpp='$CPP $CPPFLAGS'
7495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7499 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7500 # On Suns, sometimes $CPP names a directory.
7501 if test -n "$CPP" && test -d "$CPP"; then
7502 CPP=
7503 fi
7504 if test -z "$CPP"; then
7505 if ${ac_cv_prog_CPP+:} false; then :
7506 $as_echo_n "(cached) " >&6
7507 else
7508 # Double quotes because CPP needs to be expanded
7509 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7510 do
7511 ac_preproc_ok=false
7512 for ac_c_preproc_warn_flag in '' yes
7513 do
7514 # Use a header file that comes with gcc, so configuring glibc
7515 # with a fresh cross-compiler works.
7516 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7517 # <limits.h> exists even on freestanding compilers.
7518 # On the NeXT, cc -E runs the code through the compiler's parser,
7519 # not just through cpp. "Syntax error" is here to catch this case.
7520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7521 /* end confdefs.h. */
7522 #ifdef __STDC__
7523 # include <limits.h>
7524 #else
7525 # include <assert.h>
7526 #endif
7527 Syntax error
7528 _ACEOF
7529 if ac_fn_c_try_cpp "$LINENO"; then :
7530
7531 else
7532 # Broken: fails on valid input.
7533 continue
7534 fi
7535 rm -f conftest.err conftest.i conftest.$ac_ext
7536
7537 # OK, works on sane cases. Now check whether nonexistent headers
7538 # can be detected and how.
7539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7540 /* end confdefs.h. */
7541 #include <ac_nonexistent.h>
7542 _ACEOF
7543 if ac_fn_c_try_cpp "$LINENO"; then :
7544 # Broken: success on invalid input.
7545 continue
7546 else
7547 # Passes both tests.
7548 ac_preproc_ok=:
7549 break
7550 fi
7551 rm -f conftest.err conftest.i conftest.$ac_ext
7552
7553 done
7554 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7555 rm -f conftest.i conftest.err conftest.$ac_ext
7556 if $ac_preproc_ok; then :
7557 break
7558 fi
7559
7560 done
7561 ac_cv_prog_CPP=$CPP
7562
7563 fi
7564 CPP=$ac_cv_prog_CPP
7565 else
7566 ac_cv_prog_CPP=$CPP
7567 fi
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7569 $as_echo "$CPP" >&6; }
7570 ac_preproc_ok=false
7571 for ac_c_preproc_warn_flag in '' yes
7572 do
7573 # Use a header file that comes with gcc, so configuring glibc
7574 # with a fresh cross-compiler works.
7575 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7576 # <limits.h> exists even on freestanding compilers.
7577 # On the NeXT, cc -E runs the code through the compiler's parser,
7578 # not just through cpp. "Syntax error" is here to catch this case.
7579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7580 /* end confdefs.h. */
7581 #ifdef __STDC__
7582 # include <limits.h>
7583 #else
7584 # include <assert.h>
7585 #endif
7586 Syntax error
7587 _ACEOF
7588 if ac_fn_c_try_cpp "$LINENO"; then :
7589
7590 else
7591 # Broken: fails on valid input.
7592 continue
7593 fi
7594 rm -f conftest.err conftest.i conftest.$ac_ext
7595
7596 # OK, works on sane cases. Now check whether nonexistent headers
7597 # can be detected and how.
7598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7599 /* end confdefs.h. */
7600 #include <ac_nonexistent.h>
7601 _ACEOF
7602 if ac_fn_c_try_cpp "$LINENO"; then :
7603 # Broken: success on invalid input.
7604 continue
7605 else
7606 # Passes both tests.
7607 ac_preproc_ok=:
7608 break
7609 fi
7610 rm -f conftest.err conftest.i conftest.$ac_ext
7611
7612 done
7613 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7614 rm -f conftest.i conftest.err conftest.$ac_ext
7615 if $ac_preproc_ok; then :
7616
7617 else
7618 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7619 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7620 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7621 See \`config.log' for more details" "$LINENO" 5; }
7622 fi
7623
7624 ac_ext=c
7625 ac_cpp='$CPP $CPPFLAGS'
7626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7629
7630
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7632 $as_echo_n "checking for ANSI C header files... " >&6; }
7633 if ${ac_cv_header_stdc+:} false; then :
7634 $as_echo_n "(cached) " >&6
7635 else
7636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7637 /* end confdefs.h. */
7638 #include <stdlib.h>
7639 #include <stdarg.h>
7640 #include <string.h>
7641 #include <float.h>
7642
7643 int
7644 main ()
7645 {
7646
7647 ;
7648 return 0;
7649 }
7650 _ACEOF
7651 if ac_fn_c_try_compile "$LINENO"; then :
7652 ac_cv_header_stdc=yes
7653 else
7654 ac_cv_header_stdc=no
7655 fi
7656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7657
7658 if test $ac_cv_header_stdc = yes; then
7659 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7661 /* end confdefs.h. */
7662 #include <string.h>
7663
7664 _ACEOF
7665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7666 $EGREP "memchr" >/dev/null 2>&1; then :
7667
7668 else
7669 ac_cv_header_stdc=no
7670 fi
7671 rm -f conftest*
7672
7673 fi
7674
7675 if test $ac_cv_header_stdc = yes; then
7676 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7678 /* end confdefs.h. */
7679 #include <stdlib.h>
7680
7681 _ACEOF
7682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7683 $EGREP "free" >/dev/null 2>&1; then :
7684
7685 else
7686 ac_cv_header_stdc=no
7687 fi
7688 rm -f conftest*
7689
7690 fi
7691
7692 if test $ac_cv_header_stdc = yes; then
7693 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7694 if test "$cross_compiling" = yes; then :
7695 :
7696 else
7697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7698 /* end confdefs.h. */
7699 #include <ctype.h>
7700 #include <stdlib.h>
7701 #if ((' ' & 0x0FF) == 0x020)
7702 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7703 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7704 #else
7705 # define ISLOWER(c) \
7706 (('a' <= (c) && (c) <= 'i') \
7707 || ('j' <= (c) && (c) <= 'r') \
7708 || ('s' <= (c) && (c) <= 'z'))
7709 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7710 #endif
7711
7712 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7713 int
7714 main ()
7715 {
7716 int i;
7717 for (i = 0; i < 256; i++)
7718 if (XOR (islower (i), ISLOWER (i))
7719 || toupper (i) != TOUPPER (i))
7720 return 2;
7721 return 0;
7722 }
7723 _ACEOF
7724 if ac_fn_c_try_run "$LINENO"; then :
7725
7726 else
7727 ac_cv_header_stdc=no
7728 fi
7729 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7730 conftest.$ac_objext conftest.beam conftest.$ac_ext
7731 fi
7732
7733 fi
7734 fi
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7736 $as_echo "$ac_cv_header_stdc" >&6; }
7737 if test $ac_cv_header_stdc = yes; then
7738
7739 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7740
7741 fi
7742
7743 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7744 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7745 inttypes.h stdint.h unistd.h
7746 do :
7747 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7748 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7749 "
7750 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7751 cat >>confdefs.h <<_ACEOF
7752 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7753 _ACEOF
7754
7755 fi
7756
7757 done
7758
7759
7760 for ac_header in dlfcn.h
7761 do :
7762 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7763 "
7764 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7765 cat >>confdefs.h <<_ACEOF
7766 #define HAVE_DLFCN_H 1
7767 _ACEOF
7768
7769 fi
7770
7771 done
7772
7773
7774
7775
7776
7777 # Set options
7778
7779
7780
7781 enable_dlopen=no
7782
7783
7784 enable_win32_dll=no
7785
7786
7787 # Check whether --enable-shared was given.
7788 if test "${enable_shared+set}" = set; then :
7789 enableval=$enable_shared; p=${PACKAGE-default}
7790 case $enableval in
7791 yes) enable_shared=yes ;;
7792 no) enable_shared=no ;;
7793 *)
7794 enable_shared=no
7795 # Look at the argument we got. We use all the common list separators.
7796 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7797 for pkg in $enableval; do
7798 IFS=$lt_save_ifs
7799 if test "X$pkg" = "X$p"; then
7800 enable_shared=yes
7801 fi
7802 done
7803 IFS=$lt_save_ifs
7804 ;;
7805 esac
7806 else
7807 enable_shared=yes
7808 fi
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818 # Check whether --enable-static was given.
7819 if test "${enable_static+set}" = set; then :
7820 enableval=$enable_static; p=${PACKAGE-default}
7821 case $enableval in
7822 yes) enable_static=yes ;;
7823 no) enable_static=no ;;
7824 *)
7825 enable_static=no
7826 # Look at the argument we got. We use all the common list separators.
7827 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7828 for pkg in $enableval; do
7829 IFS=$lt_save_ifs
7830 if test "X$pkg" = "X$p"; then
7831 enable_static=yes
7832 fi
7833 done
7834 IFS=$lt_save_ifs
7835 ;;
7836 esac
7837 else
7838 enable_static=yes
7839 fi
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850 # Check whether --with-pic was given.
7851 if test "${with_pic+set}" = set; then :
7852 withval=$with_pic; lt_p=${PACKAGE-default}
7853 case $withval in
7854 yes|no) pic_mode=$withval ;;
7855 *)
7856 pic_mode=default
7857 # Look at the argument we got. We use all the common list separators.
7858 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7859 for lt_pkg in $withval; do
7860 IFS=$lt_save_ifs
7861 if test "X$lt_pkg" = "X$lt_p"; then
7862 pic_mode=yes
7863 fi
7864 done
7865 IFS=$lt_save_ifs
7866 ;;
7867 esac
7868 else
7869 pic_mode=default
7870 fi
7871
7872
7873
7874
7875
7876
7877
7878
7879 # Check whether --enable-fast-install was given.
7880 if test "${enable_fast_install+set}" = set; then :
7881 enableval=$enable_fast_install; p=${PACKAGE-default}
7882 case $enableval in
7883 yes) enable_fast_install=yes ;;
7884 no) enable_fast_install=no ;;
7885 *)
7886 enable_fast_install=no
7887 # Look at the argument we got. We use all the common list separators.
7888 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7889 for pkg in $enableval; do
7890 IFS=$lt_save_ifs
7891 if test "X$pkg" = "X$p"; then
7892 enable_fast_install=yes
7893 fi
7894 done
7895 IFS=$lt_save_ifs
7896 ;;
7897 esac
7898 else
7899 enable_fast_install=yes
7900 fi
7901
7902
7903
7904
7905
7906
7907
7908
7909 shared_archive_member_spec=
7910 case $host,$enable_shared in
7911 power*-*-aix[5-9]*,yes)
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7913 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7914
7915 # Check whether --with-aix-soname was given.
7916 if test "${with_aix_soname+set}" = set; then :
7917 withval=$with_aix_soname; case $withval in
7918 aix|svr4|both)
7919 ;;
7920 *)
7921 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7922 ;;
7923 esac
7924 lt_cv_with_aix_soname=$with_aix_soname
7925 else
7926 if ${lt_cv_with_aix_soname+:} false; then :
7927 $as_echo_n "(cached) " >&6
7928 else
7929 lt_cv_with_aix_soname=aix
7930 fi
7931
7932 with_aix_soname=$lt_cv_with_aix_soname
7933 fi
7934
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7936 $as_echo "$with_aix_soname" >&6; }
7937 if test aix != "$with_aix_soname"; then
7938 # For the AIX way of multilib, we name the shared archive member
7939 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7940 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7941 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7942 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7943 if test 64 = "${OBJECT_MODE-32}"; then
7944 shared_archive_member_spec=shr_64
7945 else
7946 shared_archive_member_spec=shr
7947 fi
7948 fi
7949 ;;
7950 *)
7951 with_aix_soname=aix
7952 ;;
7953 esac
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964 # This can be used to rebuild libtool when needed
7965 LIBTOOL_DEPS=$ltmain
7966
7967 # Always use our own libtool.
7968 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999 test -z "$LN_S" && LN_S="ln -s"
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014 if test -n "${ZSH_VERSION+set}"; then
8015 setopt NO_GLOB_SUBST
8016 fi
8017
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8019 $as_echo_n "checking for objdir... " >&6; }
8020 if ${lt_cv_objdir+:} false; then :
8021 $as_echo_n "(cached) " >&6
8022 else
8023 rm -f .libs 2>/dev/null
8024 mkdir .libs 2>/dev/null
8025 if test -d .libs; then
8026 lt_cv_objdir=.libs
8027 else
8028 # MS-DOS does not allow filenames that begin with a dot.
8029 lt_cv_objdir=_libs
8030 fi
8031 rmdir .libs 2>/dev/null
8032 fi
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8034 $as_echo "$lt_cv_objdir" >&6; }
8035 objdir=$lt_cv_objdir
8036
8037
8038
8039
8040
8041 cat >>confdefs.h <<_ACEOF
8042 #define LT_OBJDIR "$lt_cv_objdir/"
8043 _ACEOF
8044
8045
8046
8047
8048 case $host_os in
8049 aix3*)
8050 # AIX sometimes has problems with the GCC collect2 program. For some
8051 # reason, if we set the COLLECT_NAMES environment variable, the problems
8052 # vanish in a puff of smoke.
8053 if test set != "${COLLECT_NAMES+set}"; then
8054 COLLECT_NAMES=
8055 export COLLECT_NAMES
8056 fi
8057 ;;
8058 esac
8059
8060 # Global variables:
8061 ofile=libtool
8062 can_build_shared=yes
8063
8064 # All known linkers require a '.a' archive for static linking (except MSVC,
8065 # which needs '.lib').
8066 libext=a
8067
8068 with_gnu_ld=$lt_cv_prog_gnu_ld
8069
8070 old_CC=$CC
8071 old_CFLAGS=$CFLAGS
8072
8073 # Set sane defaults for various variables
8074 test -z "$CC" && CC=cc
8075 test -z "$LTCC" && LTCC=$CC
8076 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8077 test -z "$LD" && LD=ld
8078 test -z "$ac_objext" && ac_objext=o
8079
8080 func_cc_basename $compiler
8081 cc_basename=$func_cc_basename_result
8082
8083
8084 # Only perform the check for file, if the check method requires it
8085 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8086 case $deplibs_check_method in
8087 file_magic*)
8088 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8090 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8091 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8092 $as_echo_n "(cached) " >&6
8093 else
8094 case $MAGIC_CMD in
8095 [\\/*] | ?:[\\/]*)
8096 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8097 ;;
8098 *)
8099 lt_save_MAGIC_CMD=$MAGIC_CMD
8100 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8101 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8102 for ac_dir in $ac_dummy; do
8103 IFS=$lt_save_ifs
8104 test -z "$ac_dir" && ac_dir=.
8105 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8106 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8107 if test -n "$file_magic_test_file"; then
8108 case $deplibs_check_method in
8109 "file_magic "*)
8110 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8111 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8112 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8113 $EGREP "$file_magic_regex" > /dev/null; then
8114 :
8115 else
8116 cat <<_LT_EOF 1>&2
8117
8118 *** Warning: the command libtool uses to detect shared libraries,
8119 *** $file_magic_cmd, produces output that libtool cannot recognize.
8120 *** The result is that libtool may fail to recognize shared libraries
8121 *** as such. This will affect the creation of libtool libraries that
8122 *** depend on shared libraries, but programs linked with such libtool
8123 *** libraries will work regardless of this problem. Nevertheless, you
8124 *** may want to report the problem to your system manager and/or to
8125 *** bug-libtool@gnu.org
8126
8127 _LT_EOF
8128 fi ;;
8129 esac
8130 fi
8131 break
8132 fi
8133 done
8134 IFS=$lt_save_ifs
8135 MAGIC_CMD=$lt_save_MAGIC_CMD
8136 ;;
8137 esac
8138 fi
8139
8140 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8141 if test -n "$MAGIC_CMD"; then
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8143 $as_echo "$MAGIC_CMD" >&6; }
8144 else
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8146 $as_echo "no" >&6; }
8147 fi
8148
8149
8150
8151
8152
8153 if test -z "$lt_cv_path_MAGIC_CMD"; then
8154 if test -n "$ac_tool_prefix"; then
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8156 $as_echo_n "checking for file... " >&6; }
8157 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8158 $as_echo_n "(cached) " >&6
8159 else
8160 case $MAGIC_CMD in
8161 [\\/*] | ?:[\\/]*)
8162 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8163 ;;
8164 *)
8165 lt_save_MAGIC_CMD=$MAGIC_CMD
8166 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8167 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8168 for ac_dir in $ac_dummy; do
8169 IFS=$lt_save_ifs
8170 test -z "$ac_dir" && ac_dir=.
8171 if test -f "$ac_dir/file"; then
8172 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8173 if test -n "$file_magic_test_file"; then
8174 case $deplibs_check_method in
8175 "file_magic "*)
8176 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8177 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8178 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8179 $EGREP "$file_magic_regex" > /dev/null; then
8180 :
8181 else
8182 cat <<_LT_EOF 1>&2
8183
8184 *** Warning: the command libtool uses to detect shared libraries,
8185 *** $file_magic_cmd, produces output that libtool cannot recognize.
8186 *** The result is that libtool may fail to recognize shared libraries
8187 *** as such. This will affect the creation of libtool libraries that
8188 *** depend on shared libraries, but programs linked with such libtool
8189 *** libraries will work regardless of this problem. Nevertheless, you
8190 *** may want to report the problem to your system manager and/or to
8191 *** bug-libtool@gnu.org
8192
8193 _LT_EOF
8194 fi ;;
8195 esac
8196 fi
8197 break
8198 fi
8199 done
8200 IFS=$lt_save_ifs
8201 MAGIC_CMD=$lt_save_MAGIC_CMD
8202 ;;
8203 esac
8204 fi
8205
8206 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8207 if test -n "$MAGIC_CMD"; then
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8209 $as_echo "$MAGIC_CMD" >&6; }
8210 else
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8212 $as_echo "no" >&6; }
8213 fi
8214
8215
8216 else
8217 MAGIC_CMD=:
8218 fi
8219 fi
8220
8221 fi
8222 ;;
8223 esac
8224
8225 # Use C for the default configuration in the libtool script
8226
8227 lt_save_CC=$CC
8228 ac_ext=c
8229 ac_cpp='$CPP $CPPFLAGS'
8230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8233
8234
8235 # Source file extension for C test sources.
8236 ac_ext=c
8237
8238 # Object file extension for compiled C test sources.
8239 objext=o
8240 objext=$objext
8241
8242 # Code to be used in simple compile tests
8243 lt_simple_compile_test_code="int some_variable = 0;"
8244
8245 # Code to be used in simple link tests
8246 lt_simple_link_test_code='int main(){return(0);}'
8247
8248
8249
8250
8251
8252
8253
8254 # If no C compiler was specified, use CC.
8255 LTCC=${LTCC-"$CC"}
8256
8257 # If no C compiler flags were specified, use CFLAGS.
8258 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8259
8260 # Allow CC to be a program name with arguments.
8261 compiler=$CC
8262
8263 # Save the default compiler, since it gets overwritten when the other
8264 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8265 compiler_DEFAULT=$CC
8266
8267 # save warnings/boilerplate of simple test code
8268 ac_outfile=conftest.$ac_objext
8269 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8270 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8271 _lt_compiler_boilerplate=`cat conftest.err`
8272 $RM conftest*
8273
8274 ac_outfile=conftest.$ac_objext
8275 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8276 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8277 _lt_linker_boilerplate=`cat conftest.err`
8278 $RM -r conftest*
8279
8280
8281 ## CAVEAT EMPTOR:
8282 ## There is no encapsulation within the following macros, do not change
8283 ## the running order or otherwise move them around unless you know exactly
8284 ## what you are doing...
8285 if test -n "$compiler"; then
8286
8287 lt_prog_compiler_no_builtin_flag=
8288
8289 if test yes = "$GCC"; then
8290 case $cc_basename in
8291 nvcc*)
8292 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8293 *)
8294 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8295 esac
8296
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8298 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8299 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8300 $as_echo_n "(cached) " >&6
8301 else
8302 lt_cv_prog_compiler_rtti_exceptions=no
8303 ac_outfile=conftest.$ac_objext
8304 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8305 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8306 # Insert the option either (1) after the last *FLAGS variable, or
8307 # (2) before a word containing "conftest.", or (3) at the end.
8308 # Note that $ac_compile itself does not contain backslashes and begins
8309 # with a dollar sign (not a hyphen), so the echo should work correctly.
8310 # The option is referenced via a variable to avoid confusing sed.
8311 lt_compile=`echo "$ac_compile" | $SED \
8312 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8313 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8314 -e 's:$: $lt_compiler_flag:'`
8315 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8316 (eval "$lt_compile" 2>conftest.err)
8317 ac_status=$?
8318 cat conftest.err >&5
8319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320 if (exit $ac_status) && test -s "$ac_outfile"; then
8321 # The compiler can only warn and ignore the option if not recognized
8322 # So say no if there are warnings other than the usual output.
8323 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8324 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8325 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8326 lt_cv_prog_compiler_rtti_exceptions=yes
8327 fi
8328 fi
8329 $RM conftest*
8330
8331 fi
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8333 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8334
8335 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8336 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8337 else
8338 :
8339 fi
8340
8341 fi
8342
8343
8344
8345
8346
8347
8348 lt_prog_compiler_wl=
8349 lt_prog_compiler_pic=
8350 lt_prog_compiler_static=
8351
8352
8353 if test yes = "$GCC"; then
8354 lt_prog_compiler_wl='-Wl,'
8355 lt_prog_compiler_static='-static'
8356
8357 case $host_os in
8358 aix*)
8359 # All AIX code is PIC.
8360 if test ia64 = "$host_cpu"; then
8361 # AIX 5 now supports IA64 processor
8362 lt_prog_compiler_static='-Bstatic'
8363 fi
8364 lt_prog_compiler_pic='-fPIC'
8365 ;;
8366
8367 amigaos*)
8368 case $host_cpu in
8369 powerpc)
8370 # see comment about AmigaOS4 .so support
8371 lt_prog_compiler_pic='-fPIC'
8372 ;;
8373 m68k)
8374 # FIXME: we need at least 68020 code to build shared libraries, but
8375 # adding the '-m68020' flag to GCC prevents building anything better,
8376 # like '-m68040'.
8377 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8378 ;;
8379 esac
8380 ;;
8381
8382 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8383 # PIC is the default for these OSes.
8384 ;;
8385
8386 mingw* | cygwin* | pw32* | os2* | cegcc*)
8387 # This hack is so that the source file can tell whether it is being
8388 # built for inclusion in a dll (and should export symbols for example).
8389 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8390 # (--disable-auto-import) libraries
8391 lt_prog_compiler_pic='-DDLL_EXPORT'
8392 case $host_os in
8393 os2*)
8394 lt_prog_compiler_static='$wl-static'
8395 ;;
8396 esac
8397 ;;
8398
8399 darwin* | rhapsody*)
8400 # PIC is the default on this platform
8401 # Common symbols not allowed in MH_DYLIB files
8402 lt_prog_compiler_pic='-fno-common'
8403 ;;
8404
8405 haiku*)
8406 # PIC is the default for Haiku.
8407 # The "-static" flag exists, but is broken.
8408 lt_prog_compiler_static=
8409 ;;
8410
8411 hpux*)
8412 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8413 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8414 # sets the default TLS model and affects inlining.
8415 case $host_cpu in
8416 hppa*64*)
8417 # +Z the default
8418 ;;
8419 *)
8420 lt_prog_compiler_pic='-fPIC'
8421 ;;
8422 esac
8423 ;;
8424
8425 interix[3-9]*)
8426 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8427 # Instead, we relocate shared libraries at runtime.
8428 ;;
8429
8430 msdosdjgpp*)
8431 # Just because we use GCC doesn't mean we suddenly get shared libraries
8432 # on systems that don't support them.
8433 lt_prog_compiler_can_build_shared=no
8434 enable_shared=no
8435 ;;
8436
8437 *nto* | *qnx*)
8438 # QNX uses GNU C++, but need to define -shared option too, otherwise
8439 # it will coredump.
8440 lt_prog_compiler_pic='-fPIC -shared'
8441 ;;
8442
8443 sysv4*MP*)
8444 if test -d /usr/nec; then
8445 lt_prog_compiler_pic=-Kconform_pic
8446 fi
8447 ;;
8448
8449 *)
8450 lt_prog_compiler_pic='-fPIC'
8451 ;;
8452 esac
8453
8454 case $cc_basename in
8455 nvcc*) # Cuda Compiler Driver 2.2
8456 lt_prog_compiler_wl='-Xlinker '
8457 if test -n "$lt_prog_compiler_pic"; then
8458 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8459 fi
8460 ;;
8461 esac
8462 else
8463 # PORTME Check for flag to pass linker flags through the system compiler.
8464 case $host_os in
8465 aix*)
8466 lt_prog_compiler_wl='-Wl,'
8467 if test ia64 = "$host_cpu"; then
8468 # AIX 5 now supports IA64 processor
8469 lt_prog_compiler_static='-Bstatic'
8470 else
8471 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8472 fi
8473 ;;
8474
8475 darwin* | rhapsody*)
8476 # PIC is the default on this platform
8477 # Common symbols not allowed in MH_DYLIB files
8478 lt_prog_compiler_pic='-fno-common'
8479 case $cc_basename in
8480 nagfor*)
8481 # NAG Fortran compiler
8482 lt_prog_compiler_wl='-Wl,-Wl,,'
8483 lt_prog_compiler_pic='-PIC'
8484 lt_prog_compiler_static='-Bstatic'
8485 ;;
8486 esac
8487 ;;
8488
8489 mingw* | cygwin* | pw32* | os2* | cegcc*)
8490 # This hack is so that the source file can tell whether it is being
8491 # built for inclusion in a dll (and should export symbols for example).
8492 lt_prog_compiler_pic='-DDLL_EXPORT'
8493 case $host_os in
8494 os2*)
8495 lt_prog_compiler_static='$wl-static'
8496 ;;
8497 esac
8498 ;;
8499
8500 hpux9* | hpux10* | hpux11*)
8501 lt_prog_compiler_wl='-Wl,'
8502 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8503 # not for PA HP-UX.
8504 case $host_cpu in
8505 hppa*64*|ia64*)
8506 # +Z the default
8507 ;;
8508 *)
8509 lt_prog_compiler_pic='+Z'
8510 ;;
8511 esac
8512 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8513 lt_prog_compiler_static='$wl-a ${wl}archive'
8514 ;;
8515
8516 irix5* | irix6* | nonstopux*)
8517 lt_prog_compiler_wl='-Wl,'
8518 # PIC (with -KPIC) is the default.
8519 lt_prog_compiler_static='-non_shared'
8520 ;;
8521
8522 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8523 case $cc_basename in
8524 # old Intel for x86_64, which still supported -KPIC.
8525 ecc*)
8526 lt_prog_compiler_wl='-Wl,'
8527 lt_prog_compiler_pic='-KPIC'
8528 lt_prog_compiler_static='-static'
8529 ;;
8530 # icc used to be incompatible with GCC.
8531 # ICC 10 doesn't accept -KPIC any more.
8532 icc* | ifort*)
8533 lt_prog_compiler_wl='-Wl,'
8534 lt_prog_compiler_pic='-fPIC'
8535 lt_prog_compiler_static='-static'
8536 ;;
8537 # Lahey Fortran 8.1.
8538 lf95*)
8539 lt_prog_compiler_wl='-Wl,'
8540 lt_prog_compiler_pic='--shared'
8541 lt_prog_compiler_static='--static'
8542 ;;
8543 nagfor*)
8544 # NAG Fortran compiler
8545 lt_prog_compiler_wl='-Wl,-Wl,,'
8546 lt_prog_compiler_pic='-PIC'
8547 lt_prog_compiler_static='-Bstatic'
8548 ;;
8549 tcc*)
8550 # Fabrice Bellard et al's Tiny C Compiler
8551 lt_prog_compiler_wl='-Wl,'
8552 lt_prog_compiler_pic='-fPIC'
8553 lt_prog_compiler_static='-static'
8554 ;;
8555 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8556 # Portland Group compilers (*not* the Pentium gcc compiler,
8557 # which looks to be a dead project)
8558 lt_prog_compiler_wl='-Wl,'
8559 lt_prog_compiler_pic='-fpic'
8560 lt_prog_compiler_static='-Bstatic'
8561 ;;
8562 ccc*)
8563 lt_prog_compiler_wl='-Wl,'
8564 # All Alpha code is PIC.
8565 lt_prog_compiler_static='-non_shared'
8566 ;;
8567 xl* | bgxl* | bgf* | mpixl*)
8568 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8569 lt_prog_compiler_wl='-Wl,'
8570 lt_prog_compiler_pic='-qpic'
8571 lt_prog_compiler_static='-qstaticlink'
8572 ;;
8573 *)
8574 case `$CC -V 2>&1 | sed 5q` in
8575 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8576 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8577 lt_prog_compiler_pic='-KPIC'
8578 lt_prog_compiler_static='-Bstatic'
8579 lt_prog_compiler_wl=''
8580 ;;
8581 *Sun\ F* | *Sun*Fortran*)
8582 lt_prog_compiler_pic='-KPIC'
8583 lt_prog_compiler_static='-Bstatic'
8584 lt_prog_compiler_wl='-Qoption ld '
8585 ;;
8586 *Sun\ C*)
8587 # Sun C 5.9
8588 lt_prog_compiler_pic='-KPIC'
8589 lt_prog_compiler_static='-Bstatic'
8590 lt_prog_compiler_wl='-Wl,'
8591 ;;
8592 *Intel*\ [CF]*Compiler*)
8593 lt_prog_compiler_wl='-Wl,'
8594 lt_prog_compiler_pic='-fPIC'
8595 lt_prog_compiler_static='-static'
8596 ;;
8597 *Portland\ Group*)
8598 lt_prog_compiler_wl='-Wl,'
8599 lt_prog_compiler_pic='-fpic'
8600 lt_prog_compiler_static='-Bstatic'
8601 ;;
8602 esac
8603 ;;
8604 esac
8605 ;;
8606
8607 newsos6)
8608 lt_prog_compiler_pic='-KPIC'
8609 lt_prog_compiler_static='-Bstatic'
8610 ;;
8611
8612 *nto* | *qnx*)
8613 # QNX uses GNU C++, but need to define -shared option too, otherwise
8614 # it will coredump.
8615 lt_prog_compiler_pic='-fPIC -shared'
8616 ;;
8617
8618 osf3* | osf4* | osf5*)
8619 lt_prog_compiler_wl='-Wl,'
8620 # All OSF/1 code is PIC.
8621 lt_prog_compiler_static='-non_shared'
8622 ;;
8623
8624 rdos*)
8625 lt_prog_compiler_static='-non_shared'
8626 ;;
8627
8628 solaris*)
8629 lt_prog_compiler_pic='-KPIC'
8630 lt_prog_compiler_static='-Bstatic'
8631 case $cc_basename in
8632 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8633 lt_prog_compiler_wl='-Qoption ld ';;
8634 *)
8635 lt_prog_compiler_wl='-Wl,';;
8636 esac
8637 ;;
8638
8639 sunos4*)
8640 lt_prog_compiler_wl='-Qoption ld '
8641 lt_prog_compiler_pic='-PIC'
8642 lt_prog_compiler_static='-Bstatic'
8643 ;;
8644
8645 sysv4 | sysv4.2uw2* | sysv4.3*)
8646 lt_prog_compiler_wl='-Wl,'
8647 lt_prog_compiler_pic='-KPIC'
8648 lt_prog_compiler_static='-Bstatic'
8649 ;;
8650
8651 sysv4*MP*)
8652 if test -d /usr/nec; then
8653 lt_prog_compiler_pic='-Kconform_pic'
8654 lt_prog_compiler_static='-Bstatic'
8655 fi
8656 ;;
8657
8658 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8659 lt_prog_compiler_wl='-Wl,'
8660 lt_prog_compiler_pic='-KPIC'
8661 lt_prog_compiler_static='-Bstatic'
8662 ;;
8663
8664 unicos*)
8665 lt_prog_compiler_wl='-Wl,'
8666 lt_prog_compiler_can_build_shared=no
8667 ;;
8668
8669 uts4*)
8670 lt_prog_compiler_pic='-pic'
8671 lt_prog_compiler_static='-Bstatic'
8672 ;;
8673
8674 *)
8675 lt_prog_compiler_can_build_shared=no
8676 ;;
8677 esac
8678 fi
8679
8680 case $host_os in
8681 # For platforms that do not support PIC, -DPIC is meaningless:
8682 *djgpp*)
8683 lt_prog_compiler_pic=
8684 ;;
8685 *)
8686 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8687 ;;
8688 esac
8689
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8691 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8692 if ${lt_cv_prog_compiler_pic+:} false; then :
8693 $as_echo_n "(cached) " >&6
8694 else
8695 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8696 fi
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8698 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8699 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8700
8701 #
8702 # Check to make sure the PIC flag actually works.
8703 #
8704 if test -n "$lt_prog_compiler_pic"; then
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8706 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8707 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8708 $as_echo_n "(cached) " >&6
8709 else
8710 lt_cv_prog_compiler_pic_works=no
8711 ac_outfile=conftest.$ac_objext
8712 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8713 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8714 # Insert the option either (1) after the last *FLAGS variable, or
8715 # (2) before a word containing "conftest.", or (3) at the end.
8716 # Note that $ac_compile itself does not contain backslashes and begins
8717 # with a dollar sign (not a hyphen), so the echo should work correctly.
8718 # The option is referenced via a variable to avoid confusing sed.
8719 lt_compile=`echo "$ac_compile" | $SED \
8720 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8721 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8722 -e 's:$: $lt_compiler_flag:'`
8723 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8724 (eval "$lt_compile" 2>conftest.err)
8725 ac_status=$?
8726 cat conftest.err >&5
8727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728 if (exit $ac_status) && test -s "$ac_outfile"; then
8729 # The compiler can only warn and ignore the option if not recognized
8730 # So say no if there are warnings other than the usual output.
8731 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8732 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8733 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8734 lt_cv_prog_compiler_pic_works=yes
8735 fi
8736 fi
8737 $RM conftest*
8738
8739 fi
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8741 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8742
8743 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8744 case $lt_prog_compiler_pic in
8745 "" | " "*) ;;
8746 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8747 esac
8748 else
8749 lt_prog_compiler_pic=
8750 lt_prog_compiler_can_build_shared=no
8751 fi
8752
8753 fi
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765 #
8766 # Check to make sure the static flag actually works.
8767 #
8768 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8770 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8771 if ${lt_cv_prog_compiler_static_works+:} false; then :
8772 $as_echo_n "(cached) " >&6
8773 else
8774 lt_cv_prog_compiler_static_works=no
8775 save_LDFLAGS=$LDFLAGS
8776 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8777 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8778 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8779 # The linker can only warn and ignore the option if not recognized
8780 # So say no if there are warnings
8781 if test -s conftest.err; then
8782 # Append any errors to the config.log.
8783 cat conftest.err 1>&5
8784 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8785 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8786 if diff conftest.exp conftest.er2 >/dev/null; then
8787 lt_cv_prog_compiler_static_works=yes
8788 fi
8789 else
8790 lt_cv_prog_compiler_static_works=yes
8791 fi
8792 fi
8793 $RM -r conftest*
8794 LDFLAGS=$save_LDFLAGS
8795
8796 fi
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8798 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8799
8800 if test yes = "$lt_cv_prog_compiler_static_works"; then
8801 :
8802 else
8803 lt_prog_compiler_static=
8804 fi
8805
8806
8807
8808
8809
8810
8811
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8813 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8814 if ${lt_cv_prog_compiler_c_o+:} false; then :
8815 $as_echo_n "(cached) " >&6
8816 else
8817 lt_cv_prog_compiler_c_o=no
8818 $RM -r conftest 2>/dev/null
8819 mkdir conftest
8820 cd conftest
8821 mkdir out
8822 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8823
8824 lt_compiler_flag="-o out/conftest2.$ac_objext"
8825 # Insert the option either (1) after the last *FLAGS variable, or
8826 # (2) before a word containing "conftest.", or (3) at the end.
8827 # Note that $ac_compile itself does not contain backslashes and begins
8828 # with a dollar sign (not a hyphen), so the echo should work correctly.
8829 lt_compile=`echo "$ac_compile" | $SED \
8830 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8831 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8832 -e 's:$: $lt_compiler_flag:'`
8833 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8834 (eval "$lt_compile" 2>out/conftest.err)
8835 ac_status=$?
8836 cat out/conftest.err >&5
8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8839 then
8840 # The compiler can only warn and ignore the option if not recognized
8841 # So say no if there are warnings
8842 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8843 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8844 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8845 lt_cv_prog_compiler_c_o=yes
8846 fi
8847 fi
8848 chmod u+w . 2>&5
8849 $RM conftest*
8850 # SGI C++ compiler will create directory out/ii_files/ for
8851 # template instantiation
8852 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8853 $RM out/* && rmdir out
8854 cd ..
8855 $RM -r conftest
8856 $RM conftest*
8857
8858 fi
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8860 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8861
8862
8863
8864
8865
8866
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8868 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8869 if ${lt_cv_prog_compiler_c_o+:} false; then :
8870 $as_echo_n "(cached) " >&6
8871 else
8872 lt_cv_prog_compiler_c_o=no
8873 $RM -r conftest 2>/dev/null
8874 mkdir conftest
8875 cd conftest
8876 mkdir out
8877 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8878
8879 lt_compiler_flag="-o out/conftest2.$ac_objext"
8880 # Insert the option either (1) after the last *FLAGS variable, or
8881 # (2) before a word containing "conftest.", or (3) at the end.
8882 # Note that $ac_compile itself does not contain backslashes and begins
8883 # with a dollar sign (not a hyphen), so the echo should work correctly.
8884 lt_compile=`echo "$ac_compile" | $SED \
8885 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8886 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8887 -e 's:$: $lt_compiler_flag:'`
8888 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8889 (eval "$lt_compile" 2>out/conftest.err)
8890 ac_status=$?
8891 cat out/conftest.err >&5
8892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8893 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8894 then
8895 # The compiler can only warn and ignore the option if not recognized
8896 # So say no if there are warnings
8897 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8898 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8899 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8900 lt_cv_prog_compiler_c_o=yes
8901 fi
8902 fi
8903 chmod u+w . 2>&5
8904 $RM conftest*
8905 # SGI C++ compiler will create directory out/ii_files/ for
8906 # template instantiation
8907 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8908 $RM out/* && rmdir out
8909 cd ..
8910 $RM -r conftest
8911 $RM conftest*
8912
8913 fi
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8915 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8916
8917
8918
8919
8920 hard_links=nottested
8921 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8922 # do not overwrite the value of need_locks provided by the user
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8924 $as_echo_n "checking if we can lock with hard links... " >&6; }
8925 hard_links=yes
8926 $RM conftest*
8927 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8928 touch conftest.a
8929 ln conftest.a conftest.b 2>&5 || hard_links=no
8930 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8932 $as_echo "$hard_links" >&6; }
8933 if test no = "$hard_links"; then
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8935 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8936 need_locks=warn
8937 fi
8938 else
8939 need_locks=no
8940 fi
8941
8942
8943
8944
8945
8946
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8948 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8949
8950 runpath_var=
8951 allow_undefined_flag=
8952 always_export_symbols=no
8953 archive_cmds=
8954 archive_expsym_cmds=
8955 compiler_needs_object=no
8956 enable_shared_with_static_runtimes=no
8957 export_dynamic_flag_spec=
8958 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8959 hardcode_automatic=no
8960 hardcode_direct=no
8961 hardcode_direct_absolute=no
8962 hardcode_libdir_flag_spec=
8963 hardcode_libdir_separator=
8964 hardcode_minus_L=no
8965 hardcode_shlibpath_var=unsupported
8966 inherit_rpath=no
8967 link_all_deplibs=unknown
8968 module_cmds=
8969 module_expsym_cmds=
8970 old_archive_from_new_cmds=
8971 old_archive_from_expsyms_cmds=
8972 thread_safe_flag_spec=
8973 whole_archive_flag_spec=
8974 # include_expsyms should be a list of space-separated symbols to be *always*
8975 # included in the symbol list
8976 include_expsyms=
8977 # exclude_expsyms can be an extended regexp of symbols to exclude
8978 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8979 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8980 # as well as any symbol that contains 'd'.
8981 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8982 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8983 # platforms (ab)use it in PIC code, but their linkers get confused if
8984 # the symbol is explicitly referenced. Since portable code cannot
8985 # rely on this symbol name, it's probably fine to never include it in
8986 # preloaded symbol tables.
8987 # Exclude shared library initialization/finalization symbols.
8988 extract_expsyms_cmds=
8989
8990 case $host_os in
8991 cygwin* | mingw* | pw32* | cegcc*)
8992 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8993 # When not using gcc, we currently assume that we are using
8994 # Microsoft Visual C++.
8995 if test yes != "$GCC"; then
8996 with_gnu_ld=no
8997 fi
8998 ;;
8999 interix*)
9000 # we just hope/assume this is gcc and not c89 (= MSVC++)
9001 with_gnu_ld=yes
9002 ;;
9003 openbsd* | bitrig*)
9004 with_gnu_ld=no
9005 ;;
9006 esac
9007
9008 ld_shlibs=yes
9009
9010 # On some targets, GNU ld is compatible enough with the native linker
9011 # that we're better off using the native interface for both.
9012 lt_use_gnu_ld_interface=no
9013 if test yes = "$with_gnu_ld"; then
9014 case $host_os in
9015 aix*)
9016 # The AIX port of GNU ld has always aspired to compatibility
9017 # with the native linker. However, as the warning in the GNU ld
9018 # block says, versions before 2.19.5* couldn't really create working
9019 # shared libraries, regardless of the interface used.
9020 case `$LD -v 2>&1` in
9021 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9022 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9023 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9024 *)
9025 lt_use_gnu_ld_interface=yes
9026 ;;
9027 esac
9028 ;;
9029 *)
9030 lt_use_gnu_ld_interface=yes
9031 ;;
9032 esac
9033 fi
9034
9035 if test yes = "$lt_use_gnu_ld_interface"; then
9036 # If archive_cmds runs LD, not CC, wlarc should be empty
9037 wlarc='$wl'
9038
9039 # Set some defaults for GNU ld with shared library support. These
9040 # are reset later if shared libraries are not supported. Putting them
9041 # here allows them to be overridden if necessary.
9042 runpath_var=LD_RUN_PATH
9043 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9044 export_dynamic_flag_spec='$wl--export-dynamic'
9045 # ancient GNU ld didn't support --whole-archive et. al.
9046 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9047 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9048 else
9049 whole_archive_flag_spec=
9050 fi
9051 supports_anon_versioning=no
9052 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9053 *GNU\ gold*) supports_anon_versioning=yes ;;
9054 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9055 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9056 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9057 *\ 2.11.*) ;; # other 2.11 versions
9058 *) supports_anon_versioning=yes ;;
9059 esac
9060
9061 # See if GNU ld supports shared libraries.
9062 case $host_os in
9063 aix[3-9]*)
9064 # On AIX/PPC, the GNU linker is very broken
9065 if test ia64 != "$host_cpu"; then
9066 ld_shlibs=no
9067 cat <<_LT_EOF 1>&2
9068
9069 *** Warning: the GNU linker, at least up to release 2.19, is reported
9070 *** to be unable to reliably create shared libraries on AIX.
9071 *** Therefore, libtool is disabling shared libraries support. If you
9072 *** really care for shared libraries, you may want to install binutils
9073 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9074 *** You will then need to restart the configuration process.
9075
9076 _LT_EOF
9077 fi
9078 ;;
9079
9080 amigaos*)
9081 case $host_cpu in
9082 powerpc)
9083 # see comment about AmigaOS4 .so support
9084 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9085 archive_expsym_cmds=''
9086 ;;
9087 m68k)
9088 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)'
9089 hardcode_libdir_flag_spec='-L$libdir'
9090 hardcode_minus_L=yes
9091 ;;
9092 esac
9093 ;;
9094
9095 beos*)
9096 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9097 allow_undefined_flag=unsupported
9098 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9099 # support --undefined. This deserves some investigation. FIXME
9100 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9101 else
9102 ld_shlibs=no
9103 fi
9104 ;;
9105
9106 cygwin* | mingw* | pw32* | cegcc*)
9107 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9108 # as there is no search path for DLLs.
9109 hardcode_libdir_flag_spec='-L$libdir'
9110 export_dynamic_flag_spec='$wl--export-all-symbols'
9111 allow_undefined_flag=unsupported
9112 always_export_symbols=no
9113 enable_shared_with_static_runtimes=yes
9114 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'
9115 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9116
9117 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9118 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9119 # If the export-symbols file already is a .def file, use it as
9120 # is; otherwise, prepend EXPORTS...
9121 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9122 cp $export_symbols $output_objdir/$soname.def;
9123 else
9124 echo EXPORTS > $output_objdir/$soname.def;
9125 cat $export_symbols >> $output_objdir/$soname.def;
9126 fi~
9127 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9128 else
9129 ld_shlibs=no
9130 fi
9131 ;;
9132
9133 haiku*)
9134 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9135 link_all_deplibs=yes
9136 ;;
9137
9138 os2*)
9139 hardcode_libdir_flag_spec='-L$libdir'
9140 hardcode_minus_L=yes
9141 allow_undefined_flag=unsupported
9142 shrext_cmds=.dll
9143 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9144 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9145 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9146 $ECHO EXPORTS >> $output_objdir/$libname.def~
9147 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9148 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9149 emximp -o $lib $output_objdir/$libname.def'
9150 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9151 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9152 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9153 $ECHO EXPORTS >> $output_objdir/$libname.def~
9154 prefix_cmds="$SED"~
9155 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9156 prefix_cmds="$prefix_cmds -e 1d";
9157 fi~
9158 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9159 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9160 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9161 emximp -o $lib $output_objdir/$libname.def'
9162 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9163 enable_shared_with_static_runtimes=yes
9164 ;;
9165
9166 interix[3-9]*)
9167 hardcode_direct=no
9168 hardcode_shlibpath_var=no
9169 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9170 export_dynamic_flag_spec='$wl-E'
9171 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9172 # Instead, shared libraries are loaded at an image base (0x10000000 by
9173 # default) and relocated if they conflict, which is a slow very memory
9174 # consuming and fragmenting process. To avoid this, we pick a random,
9175 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9176 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9177 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9178 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'
9179 ;;
9180
9181 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9182 tmp_diet=no
9183 if test linux-dietlibc = "$host_os"; then
9184 case $cc_basename in
9185 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9186 esac
9187 fi
9188 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9189 && test no = "$tmp_diet"
9190 then
9191 tmp_addflag=' $pic_flag'
9192 tmp_sharedflag='-shared'
9193 case $cc_basename,$host_cpu in
9194 pgcc*) # Portland Group C compiler
9195 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'
9196 tmp_addflag=' $pic_flag'
9197 ;;
9198 pgf77* | pgf90* | pgf95* | pgfortran*)
9199 # Portland Group f77 and f90 compilers
9200 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'
9201 tmp_addflag=' $pic_flag -Mnomain' ;;
9202 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9203 tmp_addflag=' -i_dynamic' ;;
9204 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9205 tmp_addflag=' -i_dynamic -nofor_main' ;;
9206 ifc* | ifort*) # Intel Fortran compiler
9207 tmp_addflag=' -nofor_main' ;;
9208 lf95*) # Lahey Fortran 8.1
9209 whole_archive_flag_spec=
9210 tmp_sharedflag='--shared' ;;
9211 nagfor*) # NAGFOR 5.3
9212 tmp_sharedflag='-Wl,-shared' ;;
9213 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9214 tmp_sharedflag='-qmkshrobj'
9215 tmp_addflag= ;;
9216 nvcc*) # Cuda Compiler Driver 2.2
9217 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'
9218 compiler_needs_object=yes
9219 ;;
9220 esac
9221 case `$CC -V 2>&1 | sed 5q` in
9222 *Sun\ C*) # Sun C 5.9
9223 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'
9224 compiler_needs_object=yes
9225 tmp_sharedflag='-G' ;;
9226 *Sun\ F*) # Sun Fortran 8.3
9227 tmp_sharedflag='-G' ;;
9228 esac
9229 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9230
9231 if test yes = "$supports_anon_versioning"; then
9232 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9233 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9234 echo "local: *; };" >> $output_objdir/$libname.ver~
9235 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9236 fi
9237
9238 case $cc_basename in
9239 tcc*)
9240 export_dynamic_flag_spec='-rdynamic'
9241 ;;
9242 xlf* | bgf* | bgxlf* | mpixlf*)
9243 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9244 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9245 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9246 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9247 if test yes = "$supports_anon_versioning"; then
9248 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9249 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9250 echo "local: *; };" >> $output_objdir/$libname.ver~
9251 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9252 fi
9253 ;;
9254 esac
9255 else
9256 ld_shlibs=no
9257 fi
9258 ;;
9259
9260 netbsd*)
9261 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9262 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9263 wlarc=
9264 else
9265 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9266 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9267 fi
9268 ;;
9269
9270 solaris*)
9271 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9272 ld_shlibs=no
9273 cat <<_LT_EOF 1>&2
9274
9275 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9276 *** create shared libraries on Solaris systems. Therefore, libtool
9277 *** is disabling shared libraries support. We urge you to upgrade GNU
9278 *** binutils to release 2.9.1 or newer. Another option is to modify
9279 *** your PATH or compiler configuration so that the native linker is
9280 *** used, and then restart.
9281
9282 _LT_EOF
9283 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9284 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9285 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9286 else
9287 ld_shlibs=no
9288 fi
9289 ;;
9290
9291 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9292 case `$LD -v 2>&1` in
9293 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9294 ld_shlibs=no
9295 cat <<_LT_EOF 1>&2
9296
9297 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9298 *** reliably create shared libraries on SCO systems. Therefore, libtool
9299 *** is disabling shared libraries support. We urge you to upgrade GNU
9300 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9301 *** your PATH or compiler configuration so that the native linker is
9302 *** used, and then restart.
9303
9304 _LT_EOF
9305 ;;
9306 *)
9307 # For security reasons, it is highly recommended that you always
9308 # use absolute paths for naming shared libraries, and exclude the
9309 # DT_RUNPATH tag from executables and libraries. But doing so
9310 # requires that you compile everything twice, which is a pain.
9311 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9312 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9313 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9314 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9315 else
9316 ld_shlibs=no
9317 fi
9318 ;;
9319 esac
9320 ;;
9321
9322 sunos4*)
9323 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9324 wlarc=
9325 hardcode_direct=yes
9326 hardcode_shlibpath_var=no
9327 ;;
9328
9329 *)
9330 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9331 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9332 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9333 else
9334 ld_shlibs=no
9335 fi
9336 ;;
9337 esac
9338
9339 if test no = "$ld_shlibs"; then
9340 runpath_var=
9341 hardcode_libdir_flag_spec=
9342 export_dynamic_flag_spec=
9343 whole_archive_flag_spec=
9344 fi
9345 else
9346 # PORTME fill in a description of your system's linker (not GNU ld)
9347 case $host_os in
9348 aix3*)
9349 allow_undefined_flag=unsupported
9350 always_export_symbols=yes
9351 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'
9352 # Note: this linker hardcodes the directories in LIBPATH if there
9353 # are no directories specified by -L.
9354 hardcode_minus_L=yes
9355 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9356 # Neither direct hardcoding nor static linking is supported with a
9357 # broken collect2.
9358 hardcode_direct=unsupported
9359 fi
9360 ;;
9361
9362 aix[4-9]*)
9363 if test ia64 = "$host_cpu"; then
9364 # On IA64, the linker does run time linking by default, so we don't
9365 # have to do anything special.
9366 aix_use_runtimelinking=no
9367 exp_sym_flag='-Bexport'
9368 no_entry_flag=
9369 else
9370 # If we're using GNU nm, then we don't want the "-C" option.
9371 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9372 # Without the "-l" option, or with the "-B" option, AIX nm treats
9373 # weak defined symbols like other global defined symbols, whereas
9374 # GNU nm marks them as "W".
9375 # While the 'weak' keyword is ignored in the Export File, we need
9376 # it in the Import File for the 'aix-soname' feature, so we have
9377 # to replace the "-B" option with "-P" for AIX nm.
9378 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9379 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'
9380 else
9381 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'
9382 fi
9383 aix_use_runtimelinking=no
9384
9385 # Test if we are trying to use run time linking or normal
9386 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9387 # have runtime linking enabled, and use it for executables.
9388 # For shared libraries, we enable/disable runtime linking
9389 # depending on the kind of the shared library created -
9390 # when "with_aix_soname,aix_use_runtimelinking" is:
9391 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9392 # "aix,yes" lib.so shared, rtl:yes, for executables
9393 # lib.a static archive
9394 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9395 # lib.a(lib.so.V) shared, rtl:no, for executables
9396 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9397 # lib.a(lib.so.V) shared, rtl:no
9398 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9399 # lib.a static archive
9400 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9401 for ld_flag in $LDFLAGS; do
9402 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9403 aix_use_runtimelinking=yes
9404 break
9405 fi
9406 done
9407 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9408 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9409 # so we don't have lib.a shared libs to link our executables.
9410 # We have to force runtime linking in this case.
9411 aix_use_runtimelinking=yes
9412 LDFLAGS="$LDFLAGS -Wl,-brtl"
9413 fi
9414 ;;
9415 esac
9416
9417 exp_sym_flag='-bexport'
9418 no_entry_flag='-bnoentry'
9419 fi
9420
9421 # When large executables or shared objects are built, AIX ld can
9422 # have problems creating the table of contents. If linking a library
9423 # or program results in "error TOC overflow" add -mminimal-toc to
9424 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9425 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9426
9427 archive_cmds=''
9428 hardcode_direct=yes
9429 hardcode_direct_absolute=yes
9430 hardcode_libdir_separator=':'
9431 link_all_deplibs=yes
9432 file_list_spec='$wl-f,'
9433 case $with_aix_soname,$aix_use_runtimelinking in
9434 aix,*) ;; # traditional, no import file
9435 svr4,* | *,yes) # use import file
9436 # The Import File defines what to hardcode.
9437 hardcode_direct=no
9438 hardcode_direct_absolute=no
9439 ;;
9440 esac
9441
9442 if test yes = "$GCC"; then
9443 case $host_os in aix4.[012]|aix4.[012].*)
9444 # We only want to do this on AIX 4.2 and lower, the check
9445 # below for broken collect2 doesn't work under 4.3+
9446 collect2name=`$CC -print-prog-name=collect2`
9447 if test -f "$collect2name" &&
9448 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9449 then
9450 # We have reworked collect2
9451 :
9452 else
9453 # We have old collect2
9454 hardcode_direct=unsupported
9455 # It fails to find uninstalled libraries when the uninstalled
9456 # path is not listed in the libpath. Setting hardcode_minus_L
9457 # to unsupported forces relinking
9458 hardcode_minus_L=yes
9459 hardcode_libdir_flag_spec='-L$libdir'
9460 hardcode_libdir_separator=
9461 fi
9462 ;;
9463 esac
9464 shared_flag='-shared'
9465 if test yes = "$aix_use_runtimelinking"; then
9466 shared_flag="$shared_flag "'$wl-G'
9467 fi
9468 # Need to ensure runtime linking is disabled for the traditional
9469 # shared library, or the linker may eventually find shared libraries
9470 # /with/ Import File - we do not want to mix them.
9471 shared_flag_aix='-shared'
9472 shared_flag_svr4='-shared $wl-G'
9473 else
9474 # not using gcc
9475 if test ia64 = "$host_cpu"; then
9476 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9477 # chokes on -Wl,-G. The following line is correct:
9478 shared_flag='-G'
9479 else
9480 if test yes = "$aix_use_runtimelinking"; then
9481 shared_flag='$wl-G'
9482 else
9483 shared_flag='$wl-bM:SRE'
9484 fi
9485 shared_flag_aix='$wl-bM:SRE'
9486 shared_flag_svr4='$wl-G'
9487 fi
9488 fi
9489
9490 export_dynamic_flag_spec='$wl-bexpall'
9491 # It seems that -bexpall does not export symbols beginning with
9492 # underscore (_), so it is better to generate a list of symbols to export.
9493 always_export_symbols=yes
9494 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9495 # Warning - without using the other runtime loading flags (-brtl),
9496 # -berok will link without error, but may produce a broken library.
9497 allow_undefined_flag='-berok'
9498 # Determine the default libpath from the value encoded in an
9499 # empty executable.
9500 if test set = "${lt_cv_aix_libpath+set}"; then
9501 aix_libpath=$lt_cv_aix_libpath
9502 else
9503 if ${lt_cv_aix_libpath_+:} false; then :
9504 $as_echo_n "(cached) " >&6
9505 else
9506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9507 /* end confdefs.h. */
9508
9509 int
9510 main ()
9511 {
9512
9513 ;
9514 return 0;
9515 }
9516 _ACEOF
9517 if ac_fn_c_try_link "$LINENO"; then :
9518
9519 lt_aix_libpath_sed='
9520 /Import File Strings/,/^$/ {
9521 /^0/ {
9522 s/^0 *\([^ ]*\) *$/\1/
9523 p
9524 }
9525 }'
9526 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9527 # Check for a 64-bit object if we didn't find anything.
9528 if test -z "$lt_cv_aix_libpath_"; then
9529 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9530 fi
9531 fi
9532 rm -f core conftest.err conftest.$ac_objext \
9533 conftest$ac_exeext conftest.$ac_ext
9534 if test -z "$lt_cv_aix_libpath_"; then
9535 lt_cv_aix_libpath_=/usr/lib:/lib
9536 fi
9537
9538 fi
9539
9540 aix_libpath=$lt_cv_aix_libpath_
9541 fi
9542
9543 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9544 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
9545 else
9546 if test ia64 = "$host_cpu"; then
9547 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9548 allow_undefined_flag="-z nodefs"
9549 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"
9550 else
9551 # Determine the default libpath from the value encoded in an
9552 # empty executable.
9553 if test set = "${lt_cv_aix_libpath+set}"; then
9554 aix_libpath=$lt_cv_aix_libpath
9555 else
9556 if ${lt_cv_aix_libpath_+:} false; then :
9557 $as_echo_n "(cached) " >&6
9558 else
9559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9560 /* end confdefs.h. */
9561
9562 int
9563 main ()
9564 {
9565
9566 ;
9567 return 0;
9568 }
9569 _ACEOF
9570 if ac_fn_c_try_link "$LINENO"; then :
9571
9572 lt_aix_libpath_sed='
9573 /Import File Strings/,/^$/ {
9574 /^0/ {
9575 s/^0 *\([^ ]*\) *$/\1/
9576 p
9577 }
9578 }'
9579 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9580 # Check for a 64-bit object if we didn't find anything.
9581 if test -z "$lt_cv_aix_libpath_"; then
9582 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9583 fi
9584 fi
9585 rm -f core conftest.err conftest.$ac_objext \
9586 conftest$ac_exeext conftest.$ac_ext
9587 if test -z "$lt_cv_aix_libpath_"; then
9588 lt_cv_aix_libpath_=/usr/lib:/lib
9589 fi
9590
9591 fi
9592
9593 aix_libpath=$lt_cv_aix_libpath_
9594 fi
9595
9596 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9597 # Warning - without using the other run time loading flags,
9598 # -berok will link without error, but may produce a broken library.
9599 no_undefined_flag=' $wl-bernotok'
9600 allow_undefined_flag=' $wl-berok'
9601 if test yes = "$with_gnu_ld"; then
9602 # We only use this code for GNU lds that support --whole-archive.
9603 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9604 else
9605 # Exported symbols can be pulled into shared objects from archives
9606 whole_archive_flag_spec='$convenience'
9607 fi
9608 archive_cmds_need_lc=yes
9609 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9610 # -brtl affects multiple linker settings, -berok does not and is overridden later
9611 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9612 if test svr4 != "$with_aix_soname"; then
9613 # This is similar to how AIX traditionally builds its shared libraries.
9614 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'
9615 fi
9616 if test aix != "$with_aix_soname"; then
9617 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'
9618 else
9619 # used by -dlpreopen to get the symbols
9620 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9621 fi
9622 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9623 fi
9624 fi
9625 ;;
9626
9627 amigaos*)
9628 case $host_cpu in
9629 powerpc)
9630 # see comment about AmigaOS4 .so support
9631 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9632 archive_expsym_cmds=''
9633 ;;
9634 m68k)
9635 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)'
9636 hardcode_libdir_flag_spec='-L$libdir'
9637 hardcode_minus_L=yes
9638 ;;
9639 esac
9640 ;;
9641
9642 bsdi[45]*)
9643 export_dynamic_flag_spec=-rdynamic
9644 ;;
9645
9646 cygwin* | mingw* | pw32* | cegcc*)
9647 # When not using gcc, we currently assume that we are using
9648 # Microsoft Visual C++.
9649 # hardcode_libdir_flag_spec is actually meaningless, as there is
9650 # no search path for DLLs.
9651 case $cc_basename in
9652 cl*)
9653 # Native MSVC
9654 hardcode_libdir_flag_spec=' '
9655 allow_undefined_flag=unsupported
9656 always_export_symbols=yes
9657 file_list_spec='@'
9658 # Tell ltmain to make .lib files, not .a files.
9659 libext=lib
9660 # Tell ltmain to make .dll files, not .so files.
9661 shrext_cmds=.dll
9662 # FIXME: Setting linknames here is a bad hack.
9663 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9664 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9665 cp "$export_symbols" "$output_objdir/$soname.def";
9666 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9667 else
9668 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9669 fi~
9670 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9671 linknames='
9672 # The linker will not automatically build a static lib if we build a DLL.
9673 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9674 enable_shared_with_static_runtimes=yes
9675 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9676 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9677 # Don't use ranlib
9678 old_postinstall_cmds='chmod 644 $oldlib'
9679 postlink_cmds='lt_outputfile="@OUTPUT@"~
9680 lt_tool_outputfile="@TOOL_OUTPUT@"~
9681 case $lt_outputfile in
9682 *.exe|*.EXE) ;;
9683 *)
9684 lt_outputfile=$lt_outputfile.exe
9685 lt_tool_outputfile=$lt_tool_outputfile.exe
9686 ;;
9687 esac~
9688 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9689 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9690 $RM "$lt_outputfile.manifest";
9691 fi'
9692 ;;
9693 *)
9694 # Assume MSVC wrapper
9695 hardcode_libdir_flag_spec=' '
9696 allow_undefined_flag=unsupported
9697 # Tell ltmain to make .lib files, not .a files.
9698 libext=lib
9699 # Tell ltmain to make .dll files, not .so files.
9700 shrext_cmds=.dll
9701 # FIXME: Setting linknames here is a bad hack.
9702 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9703 # The linker will automatically build a .lib file if we build a DLL.
9704 old_archive_from_new_cmds='true'
9705 # FIXME: Should let the user specify the lib program.
9706 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9707 enable_shared_with_static_runtimes=yes
9708 ;;
9709 esac
9710 ;;
9711
9712 darwin* | rhapsody*)
9713
9714
9715 archive_cmds_need_lc=no
9716 hardcode_direct=no
9717 hardcode_automatic=yes
9718 hardcode_shlibpath_var=unsupported
9719 if test yes = "$lt_cv_ld_force_load"; then
9720 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\"`'
9721
9722 else
9723 whole_archive_flag_spec=''
9724 fi
9725 link_all_deplibs=yes
9726 allow_undefined_flag=$_lt_dar_allow_undefined
9727 case $cc_basename in
9728 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9729 *) _lt_dar_can_shared=$GCC ;;
9730 esac
9731 if test yes = "$_lt_dar_can_shared"; then
9732 output_verbose_link_cmd=func_echo_all
9733 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9734 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9735 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"
9736 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"
9737
9738 else
9739 ld_shlibs=no
9740 fi
9741
9742 ;;
9743
9744 dgux*)
9745 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9746 hardcode_libdir_flag_spec='-L$libdir'
9747 hardcode_shlibpath_var=no
9748 ;;
9749
9750 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9751 # support. Future versions do this automatically, but an explicit c++rt0.o
9752 # does not break anything, and helps significantly (at the cost of a little
9753 # extra space).
9754 freebsd2.2*)
9755 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9756 hardcode_libdir_flag_spec='-R$libdir'
9757 hardcode_direct=yes
9758 hardcode_shlibpath_var=no
9759 ;;
9760
9761 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9762 freebsd2.*)
9763 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9764 hardcode_direct=yes
9765 hardcode_minus_L=yes
9766 hardcode_shlibpath_var=no
9767 ;;
9768
9769 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9770 freebsd* | dragonfly*)
9771 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9772 hardcode_libdir_flag_spec='-R$libdir'
9773 hardcode_direct=yes
9774 hardcode_shlibpath_var=no
9775 ;;
9776
9777 hpux9*)
9778 if test yes = "$GCC"; then
9779 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'
9780 else
9781 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'
9782 fi
9783 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9784 hardcode_libdir_separator=:
9785 hardcode_direct=yes
9786
9787 # hardcode_minus_L: Not really in the search PATH,
9788 # but as the default location of the library.
9789 hardcode_minus_L=yes
9790 export_dynamic_flag_spec='$wl-E'
9791 ;;
9792
9793 hpux10*)
9794 if test yes,no = "$GCC,$with_gnu_ld"; then
9795 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9796 else
9797 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9798 fi
9799 if test no = "$with_gnu_ld"; then
9800 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9801 hardcode_libdir_separator=:
9802 hardcode_direct=yes
9803 hardcode_direct_absolute=yes
9804 export_dynamic_flag_spec='$wl-E'
9805 # hardcode_minus_L: Not really in the search PATH,
9806 # but as the default location of the library.
9807 hardcode_minus_L=yes
9808 fi
9809 ;;
9810
9811 hpux11*)
9812 if test yes,no = "$GCC,$with_gnu_ld"; then
9813 case $host_cpu in
9814 hppa*64*)
9815 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9816 ;;
9817 ia64*)
9818 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9819 ;;
9820 *)
9821 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9822 ;;
9823 esac
9824 else
9825 case $host_cpu in
9826 hppa*64*)
9827 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9828 ;;
9829 ia64*)
9830 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9831 ;;
9832 *)
9833
9834 # Older versions of the 11.00 compiler do not understand -b yet
9835 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9837 $as_echo_n "checking if $CC understands -b... " >&6; }
9838 if ${lt_cv_prog_compiler__b+:} false; then :
9839 $as_echo_n "(cached) " >&6
9840 else
9841 lt_cv_prog_compiler__b=no
9842 save_LDFLAGS=$LDFLAGS
9843 LDFLAGS="$LDFLAGS -b"
9844 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9845 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9846 # The linker can only warn and ignore the option if not recognized
9847 # So say no if there are warnings
9848 if test -s conftest.err; then
9849 # Append any errors to the config.log.
9850 cat conftest.err 1>&5
9851 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9852 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9853 if diff conftest.exp conftest.er2 >/dev/null; then
9854 lt_cv_prog_compiler__b=yes
9855 fi
9856 else
9857 lt_cv_prog_compiler__b=yes
9858 fi
9859 fi
9860 $RM -r conftest*
9861 LDFLAGS=$save_LDFLAGS
9862
9863 fi
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9865 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9866
9867 if test yes = "$lt_cv_prog_compiler__b"; then
9868 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9869 else
9870 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9871 fi
9872
9873 ;;
9874 esac
9875 fi
9876 if test no = "$with_gnu_ld"; then
9877 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9878 hardcode_libdir_separator=:
9879
9880 case $host_cpu in
9881 hppa*64*|ia64*)
9882 hardcode_direct=no
9883 hardcode_shlibpath_var=no
9884 ;;
9885 *)
9886 hardcode_direct=yes
9887 hardcode_direct_absolute=yes
9888 export_dynamic_flag_spec='$wl-E'
9889
9890 # hardcode_minus_L: Not really in the search PATH,
9891 # but as the default location of the library.
9892 hardcode_minus_L=yes
9893 ;;
9894 esac
9895 fi
9896 ;;
9897
9898 irix5* | irix6* | nonstopux*)
9899 if test yes = "$GCC"; then
9900 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'
9901 # Try to use the -exported_symbol ld option, if it does not
9902 # work, assume that -exports_file does not work either and
9903 # implicitly export all symbols.
9904 # This should be the same for all languages, so no per-tag cache variable.
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9906 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9907 if ${lt_cv_irix_exported_symbol+:} false; then :
9908 $as_echo_n "(cached) " >&6
9909 else
9910 save_LDFLAGS=$LDFLAGS
9911 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9913 /* end confdefs.h. */
9914 int foo (void) { return 0; }
9915 _ACEOF
9916 if ac_fn_c_try_link "$LINENO"; then :
9917 lt_cv_irix_exported_symbol=yes
9918 else
9919 lt_cv_irix_exported_symbol=no
9920 fi
9921 rm -f core conftest.err conftest.$ac_objext \
9922 conftest$ac_exeext conftest.$ac_ext
9923 LDFLAGS=$save_LDFLAGS
9924 fi
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9926 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9927 if test yes = "$lt_cv_irix_exported_symbol"; then
9928 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'
9929 fi
9930 else
9931 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'
9932 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'
9933 fi
9934 archive_cmds_need_lc='no'
9935 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9936 hardcode_libdir_separator=:
9937 inherit_rpath=yes
9938 link_all_deplibs=yes
9939 ;;
9940
9941 linux*)
9942 case $cc_basename in
9943 tcc*)
9944 # Fabrice Bellard et al's Tiny C Compiler
9945 ld_shlibs=yes
9946 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9947 ;;
9948 esac
9949 ;;
9950
9951 netbsd*)
9952 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9953 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9954 else
9955 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9956 fi
9957 hardcode_libdir_flag_spec='-R$libdir'
9958 hardcode_direct=yes
9959 hardcode_shlibpath_var=no
9960 ;;
9961
9962 newsos6)
9963 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9964 hardcode_direct=yes
9965 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9966 hardcode_libdir_separator=:
9967 hardcode_shlibpath_var=no
9968 ;;
9969
9970 *nto* | *qnx*)
9971 ;;
9972
9973 openbsd* | bitrig*)
9974 if test -f /usr/libexec/ld.so; then
9975 hardcode_direct=yes
9976 hardcode_shlibpath_var=no
9977 hardcode_direct_absolute=yes
9978 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9979 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9980 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9981 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9982 export_dynamic_flag_spec='$wl-E'
9983 else
9984 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9985 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9986 fi
9987 else
9988 ld_shlibs=no
9989 fi
9990 ;;
9991
9992 os2*)
9993 hardcode_libdir_flag_spec='-L$libdir'
9994 hardcode_minus_L=yes
9995 allow_undefined_flag=unsupported
9996 shrext_cmds=.dll
9997 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9998 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9999 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10000 $ECHO EXPORTS >> $output_objdir/$libname.def~
10001 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10002 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10003 emximp -o $lib $output_objdir/$libname.def'
10004 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10005 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10006 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10007 $ECHO EXPORTS >> $output_objdir/$libname.def~
10008 prefix_cmds="$SED"~
10009 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10010 prefix_cmds="$prefix_cmds -e 1d";
10011 fi~
10012 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10013 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10014 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10015 emximp -o $lib $output_objdir/$libname.def'
10016 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10017 enable_shared_with_static_runtimes=yes
10018 ;;
10019
10020 osf3*)
10021 if test yes = "$GCC"; then
10022 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10023 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'
10024 else
10025 allow_undefined_flag=' -expect_unresolved \*'
10026 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'
10027 fi
10028 archive_cmds_need_lc='no'
10029 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10030 hardcode_libdir_separator=:
10031 ;;
10032
10033 osf4* | osf5*) # as osf3* with the addition of -msym flag
10034 if test yes = "$GCC"; then
10035 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10036 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'
10037 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10038 else
10039 allow_undefined_flag=' -expect_unresolved \*'
10040 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'
10041 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~
10042 $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'
10043
10044 # Both c and cxx compiler support -rpath directly
10045 hardcode_libdir_flag_spec='-rpath $libdir'
10046 fi
10047 archive_cmds_need_lc='no'
10048 hardcode_libdir_separator=:
10049 ;;
10050
10051 solaris*)
10052 no_undefined_flag=' -z defs'
10053 if test yes = "$GCC"; then
10054 wlarc='$wl'
10055 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10056 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10057 $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'
10058 else
10059 case `$CC -V 2>&1` in
10060 *"Compilers 5.0"*)
10061 wlarc=''
10062 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10063 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10064 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10065 ;;
10066 *)
10067 wlarc='$wl'
10068 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10069 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10070 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10071 ;;
10072 esac
10073 fi
10074 hardcode_libdir_flag_spec='-R$libdir'
10075 hardcode_shlibpath_var=no
10076 case $host_os in
10077 solaris2.[0-5] | solaris2.[0-5].*) ;;
10078 *)
10079 # The compiler driver will combine and reorder linker options,
10080 # but understands '-z linker_flag'. GCC discards it without '$wl',
10081 # but is careful enough not to reorder.
10082 # Supported since Solaris 2.6 (maybe 2.5.1?)
10083 if test yes = "$GCC"; then
10084 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10085 else
10086 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10087 fi
10088 ;;
10089 esac
10090 link_all_deplibs=yes
10091 ;;
10092
10093 sunos4*)
10094 if test sequent = "$host_vendor"; then
10095 # Use $CC to link under sequent, because it throws in some extra .o
10096 # files that make .init and .fini sections work.
10097 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10098 else
10099 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10100 fi
10101 hardcode_libdir_flag_spec='-L$libdir'
10102 hardcode_direct=yes
10103 hardcode_minus_L=yes
10104 hardcode_shlibpath_var=no
10105 ;;
10106
10107 sysv4)
10108 case $host_vendor in
10109 sni)
10110 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10111 hardcode_direct=yes # is this really true???
10112 ;;
10113 siemens)
10114 ## LD is ld it makes a PLAMLIB
10115 ## CC just makes a GrossModule.
10116 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10117 reload_cmds='$CC -r -o $output$reload_objs'
10118 hardcode_direct=no
10119 ;;
10120 motorola)
10121 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10122 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10123 ;;
10124 esac
10125 runpath_var='LD_RUN_PATH'
10126 hardcode_shlibpath_var=no
10127 ;;
10128
10129 sysv4.3*)
10130 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10131 hardcode_shlibpath_var=no
10132 export_dynamic_flag_spec='-Bexport'
10133 ;;
10134
10135 sysv4*MP*)
10136 if test -d /usr/nec; then
10137 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10138 hardcode_shlibpath_var=no
10139 runpath_var=LD_RUN_PATH
10140 hardcode_runpath_var=yes
10141 ld_shlibs=yes
10142 fi
10143 ;;
10144
10145 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10146 no_undefined_flag='$wl-z,text'
10147 archive_cmds_need_lc=no
10148 hardcode_shlibpath_var=no
10149 runpath_var='LD_RUN_PATH'
10150
10151 if test yes = "$GCC"; then
10152 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10153 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10154 else
10155 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10156 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10157 fi
10158 ;;
10159
10160 sysv5* | sco3.2v5* | sco5v6*)
10161 # Note: We CANNOT use -z defs as we might desire, because we do not
10162 # link with -lc, and that would cause any symbols used from libc to
10163 # always be unresolved, which means just about no library would
10164 # ever link correctly. If we're not using GNU ld we use -z text
10165 # though, which does catch some bad symbols but isn't as heavy-handed
10166 # as -z defs.
10167 no_undefined_flag='$wl-z,text'
10168 allow_undefined_flag='$wl-z,nodefs'
10169 archive_cmds_need_lc=no
10170 hardcode_shlibpath_var=no
10171 hardcode_libdir_flag_spec='$wl-R,$libdir'
10172 hardcode_libdir_separator=':'
10173 link_all_deplibs=yes
10174 export_dynamic_flag_spec='$wl-Bexport'
10175 runpath_var='LD_RUN_PATH'
10176
10177 if test yes = "$GCC"; then
10178 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10179 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10180 else
10181 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10182 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10183 fi
10184 ;;
10185
10186 uts4*)
10187 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10188 hardcode_libdir_flag_spec='-L$libdir'
10189 hardcode_shlibpath_var=no
10190 ;;
10191
10192 *)
10193 ld_shlibs=no
10194 ;;
10195 esac
10196
10197 if test sni = "$host_vendor"; then
10198 case $host in
10199 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10200 export_dynamic_flag_spec='$wl-Blargedynsym'
10201 ;;
10202 esac
10203 fi
10204 fi
10205
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10207 $as_echo "$ld_shlibs" >&6; }
10208 test no = "$ld_shlibs" && can_build_shared=no
10209
10210 with_gnu_ld=$with_gnu_ld
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226 #
10227 # Do we need to explicitly link libc?
10228 #
10229 case "x$archive_cmds_need_lc" in
10230 x|xyes)
10231 # Assume -lc should be added
10232 archive_cmds_need_lc=yes
10233
10234 if test yes,yes = "$GCC,$enable_shared"; then
10235 case $archive_cmds in
10236 *'~'*)
10237 # FIXME: we may have to deal with multi-command sequences.
10238 ;;
10239 '$CC '*)
10240 # Test whether the compiler implicitly links with -lc since on some
10241 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10242 # to ld, don't add -lc before -lgcc.
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10244 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10245 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10246 $as_echo_n "(cached) " >&6
10247 else
10248 $RM conftest*
10249 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10250
10251 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10252 (eval $ac_compile) 2>&5
10253 ac_status=$?
10254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10255 test $ac_status = 0; } 2>conftest.err; then
10256 soname=conftest
10257 lib=conftest
10258 libobjs=conftest.$ac_objext
10259 deplibs=
10260 wl=$lt_prog_compiler_wl
10261 pic_flag=$lt_prog_compiler_pic
10262 compiler_flags=-v
10263 linker_flags=-v
10264 verstring=
10265 output_objdir=.
10266 libname=conftest
10267 lt_save_allow_undefined_flag=$allow_undefined_flag
10268 allow_undefined_flag=
10269 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10270 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10271 ac_status=$?
10272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10273 test $ac_status = 0; }
10274 then
10275 lt_cv_archive_cmds_need_lc=no
10276 else
10277 lt_cv_archive_cmds_need_lc=yes
10278 fi
10279 allow_undefined_flag=$lt_save_allow_undefined_flag
10280 else
10281 cat conftest.err 1>&5
10282 fi
10283 $RM conftest*
10284
10285 fi
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10287 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10288 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10289 ;;
10290 esac
10291 fi
10292 ;;
10293 esac
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10447 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10448
10449 if test yes = "$GCC"; then
10450 case $host_os in
10451 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10452 *) lt_awk_arg='/^libraries:/' ;;
10453 esac
10454 case $host_os in
10455 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10456 *) lt_sed_strip_eq='s|=/|/|g' ;;
10457 esac
10458 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10459 case $lt_search_path_spec in
10460 *\;*)
10461 # if the path contains ";" then we assume it to be the separator
10462 # otherwise default to the standard path separator (i.e. ":") - it is
10463 # assumed that no part of a normal pathname contains ";" but that should
10464 # okay in the real world where ";" in dirpaths is itself problematic.
10465 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10466 ;;
10467 *)
10468 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10469 ;;
10470 esac
10471 # Ok, now we have the path, separated by spaces, we can step through it
10472 # and add multilib dir if necessary...
10473 lt_tmp_lt_search_path_spec=
10474 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10475 # ...but if some path component already ends with the multilib dir we assume
10476 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10477 case "$lt_multi_os_dir; $lt_search_path_spec " in
10478 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10479 lt_multi_os_dir=
10480 ;;
10481 esac
10482 for lt_sys_path in $lt_search_path_spec; do
10483 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10484 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10485 elif test -n "$lt_multi_os_dir"; then
10486 test -d "$lt_sys_path" && \
10487 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10488 fi
10489 done
10490 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10491 BEGIN {RS = " "; FS = "/|\n";} {
10492 lt_foo = "";
10493 lt_count = 0;
10494 for (lt_i = NF; lt_i > 0; lt_i--) {
10495 if ($lt_i != "" && $lt_i != ".") {
10496 if ($lt_i == "..") {
10497 lt_count++;
10498 } else {
10499 if (lt_count == 0) {
10500 lt_foo = "/" $lt_i lt_foo;
10501 } else {
10502 lt_count--;
10503 }
10504 }
10505 }
10506 }
10507 if (lt_foo != "") { lt_freq[lt_foo]++; }
10508 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10509 }'`
10510 # AWK program above erroneously prepends '/' to C:/dos/paths
10511 # for these hosts.
10512 case $host_os in
10513 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10514 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10515 esac
10516 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10517 else
10518 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10519 fi
10520 library_names_spec=
10521 libname_spec='lib$name'
10522 soname_spec=
10523 shrext_cmds=.so
10524 postinstall_cmds=
10525 postuninstall_cmds=
10526 finish_cmds=
10527 finish_eval=
10528 shlibpath_var=
10529 shlibpath_overrides_runpath=unknown
10530 version_type=none
10531 dynamic_linker="$host_os ld.so"
10532 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10533 need_lib_prefix=unknown
10534 hardcode_into_libs=no
10535
10536 # when you set need_version to no, make sure it does not cause -set_version
10537 # flags to be left without arguments
10538 need_version=unknown
10539
10540
10541
10542 case $host_os in
10543 aix3*)
10544 version_type=linux # correct to gnu/linux during the next big refactor
10545 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10546 shlibpath_var=LIBPATH
10547
10548 # AIX 3 has no versioning support, so we append a major version to the name.
10549 soname_spec='$libname$release$shared_ext$major'
10550 ;;
10551
10552 aix[4-9]*)
10553 version_type=linux # correct to gnu/linux during the next big refactor
10554 need_lib_prefix=no
10555 need_version=no
10556 hardcode_into_libs=yes
10557 if test ia64 = "$host_cpu"; then
10558 # AIX 5 supports IA64
10559 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10560 shlibpath_var=LD_LIBRARY_PATH
10561 else
10562 # With GCC up to 2.95.x, collect2 would create an import file
10563 # for dependence libraries. The import file would start with
10564 # the line '#! .'. This would cause the generated library to
10565 # depend on '.', always an invalid library. This was fixed in
10566 # development snapshots of GCC prior to 3.0.
10567 case $host_os in
10568 aix4 | aix4.[01] | aix4.[01].*)
10569 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10570 echo ' yes '
10571 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10572 :
10573 else
10574 can_build_shared=no
10575 fi
10576 ;;
10577 esac
10578 # Using Import Files as archive members, it is possible to support
10579 # filename-based versioning of shared library archives on AIX. While
10580 # this would work for both with and without runtime linking, it will
10581 # prevent static linking of such archives. So we do filename-based
10582 # shared library versioning with .so extension only, which is used
10583 # when both runtime linking and shared linking is enabled.
10584 # Unfortunately, runtime linking may impact performance, so we do
10585 # not want this to be the default eventually. Also, we use the
10586 # versioned .so libs for executables only if there is the -brtl
10587 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10588 # To allow for filename-based versioning support, we need to create
10589 # libNAME.so.V as an archive file, containing:
10590 # *) an Import File, referring to the versioned filename of the
10591 # archive as well as the shared archive member, telling the
10592 # bitwidth (32 or 64) of that shared object, and providing the
10593 # list of exported symbols of that shared object, eventually
10594 # decorated with the 'weak' keyword
10595 # *) the shared object with the F_LOADONLY flag set, to really avoid
10596 # it being seen by the linker.
10597 # At run time we better use the real file rather than another symlink,
10598 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10599
10600 case $with_aix_soname,$aix_use_runtimelinking in
10601 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10602 # soname into executable. Probably we can add versioning support to
10603 # collect2, so additional links can be useful in future.
10604 aix,yes) # traditional libtool
10605 dynamic_linker='AIX unversionable lib.so'
10606 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10607 # instead of lib<name>.a to let people know that these are not
10608 # typical AIX shared libraries.
10609 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10610 ;;
10611 aix,no) # traditional AIX only
10612 dynamic_linker='AIX lib.a(lib.so.V)'
10613 # We preserve .a as extension for shared libraries through AIX4.2
10614 # and later when we are not doing run time linking.
10615 library_names_spec='$libname$release.a $libname.a'
10616 soname_spec='$libname$release$shared_ext$major'
10617 ;;
10618 svr4,*) # full svr4 only
10619 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10620 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10621 # We do not specify a path in Import Files, so LIBPATH fires.
10622 shlibpath_overrides_runpath=yes
10623 ;;
10624 *,yes) # both, prefer svr4
10625 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10626 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10627 # unpreferred sharedlib libNAME.a needs extra handling
10628 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"'
10629 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"'
10630 # We do not specify a path in Import Files, so LIBPATH fires.
10631 shlibpath_overrides_runpath=yes
10632 ;;
10633 *,no) # both, prefer aix
10634 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10635 library_names_spec='$libname$release.a $libname.a'
10636 soname_spec='$libname$release$shared_ext$major'
10637 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10638 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)'
10639 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"'
10640 ;;
10641 esac
10642 shlibpath_var=LIBPATH
10643 fi
10644 ;;
10645
10646 amigaos*)
10647 case $host_cpu in
10648 powerpc)
10649 # Since July 2007 AmigaOS4 officially supports .so libraries.
10650 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10651 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10652 ;;
10653 m68k)
10654 library_names_spec='$libname.ixlibrary $libname.a'
10655 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10656 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'
10657 ;;
10658 esac
10659 ;;
10660
10661 beos*)
10662 library_names_spec='$libname$shared_ext'
10663 dynamic_linker="$host_os ld.so"
10664 shlibpath_var=LIBRARY_PATH
10665 ;;
10666
10667 bsdi[45]*)
10668 version_type=linux # correct to gnu/linux during the next big refactor
10669 need_version=no
10670 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10671 soname_spec='$libname$release$shared_ext$major'
10672 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10673 shlibpath_var=LD_LIBRARY_PATH
10674 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10675 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10676 # the default ld.so.conf also contains /usr/contrib/lib and
10677 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10678 # libtool to hard-code these into programs
10679 ;;
10680
10681 cygwin* | mingw* | pw32* | cegcc*)
10682 version_type=windows
10683 shrext_cmds=.dll
10684 need_version=no
10685 need_lib_prefix=no
10686
10687 case $GCC,$cc_basename in
10688 yes,*)
10689 # gcc
10690 library_names_spec='$libname.dll.a'
10691 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10692 postinstall_cmds='base_file=`basename \$file`~
10693 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10694 dldir=$destdir/`dirname \$dlpath`~
10695 test -d \$dldir || mkdir -p \$dldir~
10696 $install_prog $dir/$dlname \$dldir/$dlname~
10697 chmod a+x \$dldir/$dlname~
10698 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10699 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10700 fi'
10701 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10702 dlpath=$dir/\$dldll~
10703 $RM \$dlpath'
10704 shlibpath_overrides_runpath=yes
10705
10706 case $host_os in
10707 cygwin*)
10708 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10709 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10710
10711 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10712 ;;
10713 mingw* | cegcc*)
10714 # MinGW DLLs use traditional 'lib' prefix
10715 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10716 ;;
10717 pw32*)
10718 # pw32 DLLs use 'pw' prefix rather than 'lib'
10719 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10720 ;;
10721 esac
10722 dynamic_linker='Win32 ld.exe'
10723 ;;
10724
10725 *,cl*)
10726 # Native MSVC
10727 libname_spec='$name'
10728 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10729 library_names_spec='$libname.dll.lib'
10730
10731 case $build_os in
10732 mingw*)
10733 sys_lib_search_path_spec=
10734 lt_save_ifs=$IFS
10735 IFS=';'
10736 for lt_path in $LIB
10737 do
10738 IFS=$lt_save_ifs
10739 # Let DOS variable expansion print the short 8.3 style file name.
10740 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10741 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10742 done
10743 IFS=$lt_save_ifs
10744 # Convert to MSYS style.
10745 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10746 ;;
10747 cygwin*)
10748 # Convert to unix form, then to dos form, then back to unix form
10749 # but this time dos style (no spaces!) so that the unix form looks
10750 # like /cygdrive/c/PROGRA~1:/cygdr...
10751 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10752 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10753 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10754 ;;
10755 *)
10756 sys_lib_search_path_spec=$LIB
10757 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10758 # It is most probably a Windows format PATH.
10759 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10760 else
10761 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10762 fi
10763 # FIXME: find the short name or the path components, as spaces are
10764 # common. (e.g. "Program Files" -> "PROGRA~1")
10765 ;;
10766 esac
10767
10768 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10769 postinstall_cmds='base_file=`basename \$file`~
10770 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10771 dldir=$destdir/`dirname \$dlpath`~
10772 test -d \$dldir || mkdir -p \$dldir~
10773 $install_prog $dir/$dlname \$dldir/$dlname'
10774 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10775 dlpath=$dir/\$dldll~
10776 $RM \$dlpath'
10777 shlibpath_overrides_runpath=yes
10778 dynamic_linker='Win32 link.exe'
10779 ;;
10780
10781 *)
10782 # Assume MSVC wrapper
10783 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10784 dynamic_linker='Win32 ld.exe'
10785 ;;
10786 esac
10787 # FIXME: first we should search . and the directory the executable is in
10788 shlibpath_var=PATH
10789 ;;
10790
10791 darwin* | rhapsody*)
10792 dynamic_linker="$host_os dyld"
10793 version_type=darwin
10794 need_lib_prefix=no
10795 need_version=no
10796 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10797 soname_spec='$libname$release$major$shared_ext'
10798 shlibpath_overrides_runpath=yes
10799 shlibpath_var=DYLD_LIBRARY_PATH
10800 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10801
10802 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10803 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10804 ;;
10805
10806 dgux*)
10807 version_type=linux # correct to gnu/linux during the next big refactor
10808 need_lib_prefix=no
10809 need_version=no
10810 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10811 soname_spec='$libname$release$shared_ext$major'
10812 shlibpath_var=LD_LIBRARY_PATH
10813 ;;
10814
10815 freebsd* | dragonfly*)
10816 # DragonFly does not have aout. When/if they implement a new
10817 # versioning mechanism, adjust this.
10818 if test -x /usr/bin/objformat; then
10819 objformat=`/usr/bin/objformat`
10820 else
10821 case $host_os in
10822 freebsd[23].*) objformat=aout ;;
10823 *) objformat=elf ;;
10824 esac
10825 fi
10826 version_type=freebsd-$objformat
10827 case $version_type in
10828 freebsd-elf*)
10829 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10830 soname_spec='$libname$release$shared_ext$major'
10831 need_version=no
10832 need_lib_prefix=no
10833 ;;
10834 freebsd-*)
10835 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10836 need_version=yes
10837 ;;
10838 esac
10839 shlibpath_var=LD_LIBRARY_PATH
10840 case $host_os in
10841 freebsd2.*)
10842 shlibpath_overrides_runpath=yes
10843 ;;
10844 freebsd3.[01]* | freebsdelf3.[01]*)
10845 shlibpath_overrides_runpath=yes
10846 hardcode_into_libs=yes
10847 ;;
10848 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10849 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10850 shlibpath_overrides_runpath=no
10851 hardcode_into_libs=yes
10852 ;;
10853 *) # from 4.6 on, and DragonFly
10854 shlibpath_overrides_runpath=yes
10855 hardcode_into_libs=yes
10856 ;;
10857 esac
10858 ;;
10859
10860 haiku*)
10861 version_type=linux # correct to gnu/linux during the next big refactor
10862 need_lib_prefix=no
10863 need_version=no
10864 dynamic_linker="$host_os runtime_loader"
10865 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10866 soname_spec='$libname$release$shared_ext$major'
10867 shlibpath_var=LIBRARY_PATH
10868 shlibpath_overrides_runpath=no
10869 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10870 hardcode_into_libs=yes
10871 ;;
10872
10873 hpux9* | hpux10* | hpux11*)
10874 # Give a soname corresponding to the major version so that dld.sl refuses to
10875 # link against other versions.
10876 version_type=sunos
10877 need_lib_prefix=no
10878 need_version=no
10879 case $host_cpu in
10880 ia64*)
10881 shrext_cmds='.so'
10882 hardcode_into_libs=yes
10883 dynamic_linker="$host_os dld.so"
10884 shlibpath_var=LD_LIBRARY_PATH
10885 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10886 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10887 soname_spec='$libname$release$shared_ext$major'
10888 if test 32 = "$HPUX_IA64_MODE"; then
10889 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10890 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10891 else
10892 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10893 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10894 fi
10895 ;;
10896 hppa*64*)
10897 shrext_cmds='.sl'
10898 hardcode_into_libs=yes
10899 dynamic_linker="$host_os dld.sl"
10900 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10901 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10902 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10903 soname_spec='$libname$release$shared_ext$major'
10904 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10905 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10906 ;;
10907 *)
10908 shrext_cmds='.sl'
10909 dynamic_linker="$host_os dld.sl"
10910 shlibpath_var=SHLIB_PATH
10911 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10912 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10913 soname_spec='$libname$release$shared_ext$major'
10914 ;;
10915 esac
10916 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10917 postinstall_cmds='chmod 555 $lib'
10918 # or fails outright, so override atomically:
10919 install_override_mode=555
10920 ;;
10921
10922 interix[3-9]*)
10923 version_type=linux # correct to gnu/linux during the next big refactor
10924 need_lib_prefix=no
10925 need_version=no
10926 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10927 soname_spec='$libname$release$shared_ext$major'
10928 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10929 shlibpath_var=LD_LIBRARY_PATH
10930 shlibpath_overrides_runpath=no
10931 hardcode_into_libs=yes
10932 ;;
10933
10934 irix5* | irix6* | nonstopux*)
10935 case $host_os in
10936 nonstopux*) version_type=nonstopux ;;
10937 *)
10938 if test yes = "$lt_cv_prog_gnu_ld"; then
10939 version_type=linux # correct to gnu/linux during the next big refactor
10940 else
10941 version_type=irix
10942 fi ;;
10943 esac
10944 need_lib_prefix=no
10945 need_version=no
10946 soname_spec='$libname$release$shared_ext$major'
10947 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10948 case $host_os in
10949 irix5* | nonstopux*)
10950 libsuff= shlibsuff=
10951 ;;
10952 *)
10953 case $LD in # libtool.m4 will add one of these switches to LD
10954 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10955 libsuff= shlibsuff= libmagic=32-bit;;
10956 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10957 libsuff=32 shlibsuff=N32 libmagic=N32;;
10958 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10959 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10960 *) libsuff= shlibsuff= libmagic=never-match;;
10961 esac
10962 ;;
10963 esac
10964 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10965 shlibpath_overrides_runpath=no
10966 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10967 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10968 hardcode_into_libs=yes
10969 ;;
10970
10971 # No shared lib support for Linux oldld, aout, or coff.
10972 linux*oldld* | linux*aout* | linux*coff*)
10973 dynamic_linker=no
10974 ;;
10975
10976 linux*android*)
10977 version_type=none # Android doesn't support versioned libraries.
10978 need_lib_prefix=no
10979 need_version=no
10980 library_names_spec='$libname$release$shared_ext'
10981 soname_spec='$libname$release$shared_ext'
10982 finish_cmds=
10983 shlibpath_var=LD_LIBRARY_PATH
10984 shlibpath_overrides_runpath=yes
10985
10986 # This implies no fast_install, which is unacceptable.
10987 # Some rework will be needed to allow for fast_install
10988 # before this can be enabled.
10989 hardcode_into_libs=yes
10990
10991 dynamic_linker='Android linker'
10992 # Don't embed -rpath directories since the linker doesn't support them.
10993 hardcode_libdir_flag_spec='-L$libdir'
10994 ;;
10995
10996 # This must be glibc/ELF.
10997 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10998 version_type=linux # correct to gnu/linux during the next big refactor
10999 need_lib_prefix=no
11000 need_version=no
11001 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11002 soname_spec='$libname$release$shared_ext$major'
11003 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11004 shlibpath_var=LD_LIBRARY_PATH
11005 shlibpath_overrides_runpath=no
11006
11007 # Some binutils ld are patched to set DT_RUNPATH
11008 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11009 $as_echo_n "(cached) " >&6
11010 else
11011 lt_cv_shlibpath_overrides_runpath=no
11012 save_LDFLAGS=$LDFLAGS
11013 save_libdir=$libdir
11014 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11015 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11017 /* end confdefs.h. */
11018
11019 int
11020 main ()
11021 {
11022
11023 ;
11024 return 0;
11025 }
11026 _ACEOF
11027 if ac_fn_c_try_link "$LINENO"; then :
11028 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11029 lt_cv_shlibpath_overrides_runpath=yes
11030 fi
11031 fi
11032 rm -f core conftest.err conftest.$ac_objext \
11033 conftest$ac_exeext conftest.$ac_ext
11034 LDFLAGS=$save_LDFLAGS
11035 libdir=$save_libdir
11036
11037 fi
11038
11039 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11040
11041 # This implies no fast_install, which is unacceptable.
11042 # Some rework will be needed to allow for fast_install
11043 # before this can be enabled.
11044 hardcode_into_libs=yes
11045
11046 # Ideally, we could use ldconfig to report *all* directores which are
11047 # searched for libraries, however this is still not possible. Aside from not
11048 # being certain /sbin/ldconfig is available, command
11049 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11050 # even though it is searched at run-time. Try to do the best guess by
11051 # appending ld.so.conf contents (and includes) to the search path.
11052 if test -f /etc/ld.so.conf; then
11053 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' ' '`
11054 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11055 fi
11056
11057 # We used to test for /lib/ld.so.1 and disable shared libraries on
11058 # powerpc, because MkLinux only supported shared libraries with the
11059 # GNU dynamic linker. Since this was broken with cross compilers,
11060 # most powerpc-linux boxes support dynamic linking these days and
11061 # people can always --disable-shared, the test was removed, and we
11062 # assume the GNU/Linux dynamic linker is in use.
11063 dynamic_linker='GNU/Linux ld.so'
11064 ;;
11065
11066 netbsd*)
11067 version_type=sunos
11068 need_lib_prefix=no
11069 need_version=no
11070 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11071 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11072 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11073 dynamic_linker='NetBSD (a.out) ld.so'
11074 else
11075 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11076 soname_spec='$libname$release$shared_ext$major'
11077 dynamic_linker='NetBSD ld.elf_so'
11078 fi
11079 shlibpath_var=LD_LIBRARY_PATH
11080 shlibpath_overrides_runpath=yes
11081 hardcode_into_libs=yes
11082 ;;
11083
11084 newsos6)
11085 version_type=linux # correct to gnu/linux during the next big refactor
11086 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11087 shlibpath_var=LD_LIBRARY_PATH
11088 shlibpath_overrides_runpath=yes
11089 ;;
11090
11091 *nto* | *qnx*)
11092 version_type=qnx
11093 need_lib_prefix=no
11094 need_version=no
11095 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11096 soname_spec='$libname$release$shared_ext$major'
11097 shlibpath_var=LD_LIBRARY_PATH
11098 shlibpath_overrides_runpath=no
11099 hardcode_into_libs=yes
11100 dynamic_linker='ldqnx.so'
11101 ;;
11102
11103 openbsd* | bitrig*)
11104 version_type=sunos
11105 sys_lib_dlsearch_path_spec=/usr/lib
11106 need_lib_prefix=no
11107 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11108 need_version=no
11109 else
11110 need_version=yes
11111 fi
11112 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11113 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11114 shlibpath_var=LD_LIBRARY_PATH
11115 shlibpath_overrides_runpath=yes
11116 ;;
11117
11118 os2*)
11119 libname_spec='$name'
11120 version_type=windows
11121 shrext_cmds=.dll
11122 need_version=no
11123 need_lib_prefix=no
11124 # OS/2 can only load a DLL with a base name of 8 characters or less.
11125 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11126 v=$($ECHO $release$versuffix | tr -d .-);
11127 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11128 $ECHO $n$v`$shared_ext'
11129 library_names_spec='${libname}_dll.$libext'
11130 dynamic_linker='OS/2 ld.exe'
11131 shlibpath_var=BEGINLIBPATH
11132 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11133 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11134 postinstall_cmds='base_file=`basename \$file`~
11135 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11136 dldir=$destdir/`dirname \$dlpath`~
11137 test -d \$dldir || mkdir -p \$dldir~
11138 $install_prog $dir/$dlname \$dldir/$dlname~
11139 chmod a+x \$dldir/$dlname~
11140 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11141 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11142 fi'
11143 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11144 dlpath=$dir/\$dldll~
11145 $RM \$dlpath'
11146 ;;
11147
11148 osf3* | osf4* | osf5*)
11149 version_type=osf
11150 need_lib_prefix=no
11151 need_version=no
11152 soname_spec='$libname$release$shared_ext$major'
11153 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11154 shlibpath_var=LD_LIBRARY_PATH
11155 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11156 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11157 ;;
11158
11159 rdos*)
11160 dynamic_linker=no
11161 ;;
11162
11163 solaris*)
11164 version_type=linux # correct to gnu/linux during the next big refactor
11165 need_lib_prefix=no
11166 need_version=no
11167 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11168 soname_spec='$libname$release$shared_ext$major'
11169 shlibpath_var=LD_LIBRARY_PATH
11170 shlibpath_overrides_runpath=yes
11171 hardcode_into_libs=yes
11172 # ldd complains unless libraries are executable
11173 postinstall_cmds='chmod +x $lib'
11174 ;;
11175
11176 sunos4*)
11177 version_type=sunos
11178 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11179 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11180 shlibpath_var=LD_LIBRARY_PATH
11181 shlibpath_overrides_runpath=yes
11182 if test yes = "$with_gnu_ld"; then
11183 need_lib_prefix=no
11184 fi
11185 need_version=yes
11186 ;;
11187
11188 sysv4 | sysv4.3*)
11189 version_type=linux # correct to gnu/linux during the next big refactor
11190 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11191 soname_spec='$libname$release$shared_ext$major'
11192 shlibpath_var=LD_LIBRARY_PATH
11193 case $host_vendor in
11194 sni)
11195 shlibpath_overrides_runpath=no
11196 need_lib_prefix=no
11197 runpath_var=LD_RUN_PATH
11198 ;;
11199 siemens)
11200 need_lib_prefix=no
11201 ;;
11202 motorola)
11203 need_lib_prefix=no
11204 need_version=no
11205 shlibpath_overrides_runpath=no
11206 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11207 ;;
11208 esac
11209 ;;
11210
11211 sysv4*MP*)
11212 if test -d /usr/nec; then
11213 version_type=linux # correct to gnu/linux during the next big refactor
11214 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11215 soname_spec='$libname$shared_ext.$major'
11216 shlibpath_var=LD_LIBRARY_PATH
11217 fi
11218 ;;
11219
11220 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11221 version_type=sco
11222 need_lib_prefix=no
11223 need_version=no
11224 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11225 soname_spec='$libname$release$shared_ext$major'
11226 shlibpath_var=LD_LIBRARY_PATH
11227 shlibpath_overrides_runpath=yes
11228 hardcode_into_libs=yes
11229 if test yes = "$with_gnu_ld"; then
11230 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11231 else
11232 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11233 case $host_os in
11234 sco3.2v5*)
11235 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11236 ;;
11237 esac
11238 fi
11239 sys_lib_dlsearch_path_spec='/usr/lib'
11240 ;;
11241
11242 tpf*)
11243 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11244 version_type=linux # correct to gnu/linux during the next big refactor
11245 need_lib_prefix=no
11246 need_version=no
11247 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11248 shlibpath_var=LD_LIBRARY_PATH
11249 shlibpath_overrides_runpath=no
11250 hardcode_into_libs=yes
11251 ;;
11252
11253 uts4*)
11254 version_type=linux # correct to gnu/linux during the next big refactor
11255 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11256 soname_spec='$libname$release$shared_ext$major'
11257 shlibpath_var=LD_LIBRARY_PATH
11258 ;;
11259
11260 *)
11261 dynamic_linker=no
11262 ;;
11263 esac
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11265 $as_echo "$dynamic_linker" >&6; }
11266 test no = "$dynamic_linker" && can_build_shared=no
11267
11268 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11269 if test yes = "$GCC"; then
11270 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11271 fi
11272
11273 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11274 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11275 fi
11276
11277 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11278 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11279 fi
11280
11281 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11282 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11283
11284 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11285 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11286
11287 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11288 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11387 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11388 hardcode_action=
11389 if test -n "$hardcode_libdir_flag_spec" ||
11390 test -n "$runpath_var" ||
11391 test yes = "$hardcode_automatic"; then
11392
11393 # We can hardcode non-existent directories.
11394 if test no != "$hardcode_direct" &&
11395 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11396 # have to relink, otherwise we might link with an installed library
11397 # when we should be linking with a yet-to-be-installed one
11398 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11399 test no != "$hardcode_minus_L"; then
11400 # Linking always hardcodes the temporary library directory.
11401 hardcode_action=relink
11402 else
11403 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11404 hardcode_action=immediate
11405 fi
11406 else
11407 # We cannot hardcode anything, or else we can only hardcode existing
11408 # directories.
11409 hardcode_action=unsupported
11410 fi
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11412 $as_echo "$hardcode_action" >&6; }
11413
11414 if test relink = "$hardcode_action" ||
11415 test yes = "$inherit_rpath"; then
11416 # Fast installation is not supported
11417 enable_fast_install=no
11418 elif test yes = "$shlibpath_overrides_runpath" ||
11419 test no = "$enable_shared"; then
11420 # Fast installation is not necessary
11421 enable_fast_install=needless
11422 fi
11423
11424
11425
11426
11427
11428
11429 if test yes != "$enable_dlopen"; then
11430 enable_dlopen=unknown
11431 enable_dlopen_self=unknown
11432 enable_dlopen_self_static=unknown
11433 else
11434 lt_cv_dlopen=no
11435 lt_cv_dlopen_libs=
11436
11437 case $host_os in
11438 beos*)
11439 lt_cv_dlopen=load_add_on
11440 lt_cv_dlopen_libs=
11441 lt_cv_dlopen_self=yes
11442 ;;
11443
11444 mingw* | pw32* | cegcc*)
11445 lt_cv_dlopen=LoadLibrary
11446 lt_cv_dlopen_libs=
11447 ;;
11448
11449 cygwin*)
11450 lt_cv_dlopen=dlopen
11451 lt_cv_dlopen_libs=
11452 ;;
11453
11454 darwin*)
11455 # if libdl is installed we need to link against it
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11457 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11458 if ${ac_cv_lib_dl_dlopen+:} false; then :
11459 $as_echo_n "(cached) " >&6
11460 else
11461 ac_check_lib_save_LIBS=$LIBS
11462 LIBS="-ldl $LIBS"
11463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11464 /* end confdefs.h. */
11465
11466 /* Override any GCC internal prototype to avoid an error.
11467 Use char because int might match the return type of a GCC
11468 builtin and then its argument prototype would still apply. */
11469 #ifdef __cplusplus
11470 extern "C"
11471 #endif
11472 char dlopen ();
11473 int
11474 main ()
11475 {
11476 return dlopen ();
11477 ;
11478 return 0;
11479 }
11480 _ACEOF
11481 if ac_fn_c_try_link "$LINENO"; then :
11482 ac_cv_lib_dl_dlopen=yes
11483 else
11484 ac_cv_lib_dl_dlopen=no
11485 fi
11486 rm -f core conftest.err conftest.$ac_objext \
11487 conftest$ac_exeext conftest.$ac_ext
11488 LIBS=$ac_check_lib_save_LIBS
11489 fi
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11491 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11492 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11493 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11494 else
11495
11496 lt_cv_dlopen=dyld
11497 lt_cv_dlopen_libs=
11498 lt_cv_dlopen_self=yes
11499
11500 fi
11501
11502 ;;
11503
11504 tpf*)
11505 # Don't try to run any link tests for TPF. We know it's impossible
11506 # because TPF is a cross-compiler, and we know how we open DSOs.
11507 lt_cv_dlopen=dlopen
11508 lt_cv_dlopen_libs=
11509 lt_cv_dlopen_self=no
11510 ;;
11511
11512 *)
11513 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11514 if test "x$ac_cv_func_shl_load" = xyes; then :
11515 lt_cv_dlopen=shl_load
11516 else
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11518 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11519 if ${ac_cv_lib_dld_shl_load+:} false; then :
11520 $as_echo_n "(cached) " >&6
11521 else
11522 ac_check_lib_save_LIBS=$LIBS
11523 LIBS="-ldld $LIBS"
11524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11525 /* end confdefs.h. */
11526
11527 /* Override any GCC internal prototype to avoid an error.
11528 Use char because int might match the return type of a GCC
11529 builtin and then its argument prototype would still apply. */
11530 #ifdef __cplusplus
11531 extern "C"
11532 #endif
11533 char shl_load ();
11534 int
11535 main ()
11536 {
11537 return shl_load ();
11538 ;
11539 return 0;
11540 }
11541 _ACEOF
11542 if ac_fn_c_try_link "$LINENO"; then :
11543 ac_cv_lib_dld_shl_load=yes
11544 else
11545 ac_cv_lib_dld_shl_load=no
11546 fi
11547 rm -f core conftest.err conftest.$ac_objext \
11548 conftest$ac_exeext conftest.$ac_ext
11549 LIBS=$ac_check_lib_save_LIBS
11550 fi
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11552 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11553 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11554 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11555 else
11556 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11557 if test "x$ac_cv_func_dlopen" = xyes; then :
11558 lt_cv_dlopen=dlopen
11559 else
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11561 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11562 if ${ac_cv_lib_dl_dlopen+:} false; then :
11563 $as_echo_n "(cached) " >&6
11564 else
11565 ac_check_lib_save_LIBS=$LIBS
11566 LIBS="-ldl $LIBS"
11567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11568 /* end confdefs.h. */
11569
11570 /* Override any GCC internal prototype to avoid an error.
11571 Use char because int might match the return type of a GCC
11572 builtin and then its argument prototype would still apply. */
11573 #ifdef __cplusplus
11574 extern "C"
11575 #endif
11576 char dlopen ();
11577 int
11578 main ()
11579 {
11580 return dlopen ();
11581 ;
11582 return 0;
11583 }
11584 _ACEOF
11585 if ac_fn_c_try_link "$LINENO"; then :
11586 ac_cv_lib_dl_dlopen=yes
11587 else
11588 ac_cv_lib_dl_dlopen=no
11589 fi
11590 rm -f core conftest.err conftest.$ac_objext \
11591 conftest$ac_exeext conftest.$ac_ext
11592 LIBS=$ac_check_lib_save_LIBS
11593 fi
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11595 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11596 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11597 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11598 else
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11600 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11601 if ${ac_cv_lib_svld_dlopen+:} false; then :
11602 $as_echo_n "(cached) " >&6
11603 else
11604 ac_check_lib_save_LIBS=$LIBS
11605 LIBS="-lsvld $LIBS"
11606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11607 /* end confdefs.h. */
11608
11609 /* Override any GCC internal prototype to avoid an error.
11610 Use char because int might match the return type of a GCC
11611 builtin and then its argument prototype would still apply. */
11612 #ifdef __cplusplus
11613 extern "C"
11614 #endif
11615 char dlopen ();
11616 int
11617 main ()
11618 {
11619 return dlopen ();
11620 ;
11621 return 0;
11622 }
11623 _ACEOF
11624 if ac_fn_c_try_link "$LINENO"; then :
11625 ac_cv_lib_svld_dlopen=yes
11626 else
11627 ac_cv_lib_svld_dlopen=no
11628 fi
11629 rm -f core conftest.err conftest.$ac_objext \
11630 conftest$ac_exeext conftest.$ac_ext
11631 LIBS=$ac_check_lib_save_LIBS
11632 fi
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11634 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11635 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11636 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11637 else
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11639 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11640 if ${ac_cv_lib_dld_dld_link+:} false; then :
11641 $as_echo_n "(cached) " >&6
11642 else
11643 ac_check_lib_save_LIBS=$LIBS
11644 LIBS="-ldld $LIBS"
11645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11646 /* end confdefs.h. */
11647
11648 /* Override any GCC internal prototype to avoid an error.
11649 Use char because int might match the return type of a GCC
11650 builtin and then its argument prototype would still apply. */
11651 #ifdef __cplusplus
11652 extern "C"
11653 #endif
11654 char dld_link ();
11655 int
11656 main ()
11657 {
11658 return dld_link ();
11659 ;
11660 return 0;
11661 }
11662 _ACEOF
11663 if ac_fn_c_try_link "$LINENO"; then :
11664 ac_cv_lib_dld_dld_link=yes
11665 else
11666 ac_cv_lib_dld_dld_link=no
11667 fi
11668 rm -f core conftest.err conftest.$ac_objext \
11669 conftest$ac_exeext conftest.$ac_ext
11670 LIBS=$ac_check_lib_save_LIBS
11671 fi
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11673 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11674 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11675 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11676 fi
11677
11678
11679 fi
11680
11681
11682 fi
11683
11684
11685 fi
11686
11687
11688 fi
11689
11690
11691 fi
11692
11693 ;;
11694 esac
11695
11696 if test no = "$lt_cv_dlopen"; then
11697 enable_dlopen=no
11698 else
11699 enable_dlopen=yes
11700 fi
11701
11702 case $lt_cv_dlopen in
11703 dlopen)
11704 save_CPPFLAGS=$CPPFLAGS
11705 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11706
11707 save_LDFLAGS=$LDFLAGS
11708 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11709
11710 save_LIBS=$LIBS
11711 LIBS="$lt_cv_dlopen_libs $LIBS"
11712
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11714 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11715 if ${lt_cv_dlopen_self+:} false; then :
11716 $as_echo_n "(cached) " >&6
11717 else
11718 if test yes = "$cross_compiling"; then :
11719 lt_cv_dlopen_self=cross
11720 else
11721 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11722 lt_status=$lt_dlunknown
11723 cat > conftest.$ac_ext <<_LT_EOF
11724 #line $LINENO "configure"
11725 #include "confdefs.h"
11726
11727 #if HAVE_DLFCN_H
11728 #include <dlfcn.h>
11729 #endif
11730
11731 #include <stdio.h>
11732
11733 #ifdef RTLD_GLOBAL
11734 # define LT_DLGLOBAL RTLD_GLOBAL
11735 #else
11736 # ifdef DL_GLOBAL
11737 # define LT_DLGLOBAL DL_GLOBAL
11738 # else
11739 # define LT_DLGLOBAL 0
11740 # endif
11741 #endif
11742
11743 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11744 find out it does not work in some platform. */
11745 #ifndef LT_DLLAZY_OR_NOW
11746 # ifdef RTLD_LAZY
11747 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11748 # else
11749 # ifdef DL_LAZY
11750 # define LT_DLLAZY_OR_NOW DL_LAZY
11751 # else
11752 # ifdef RTLD_NOW
11753 # define LT_DLLAZY_OR_NOW RTLD_NOW
11754 # else
11755 # ifdef DL_NOW
11756 # define LT_DLLAZY_OR_NOW DL_NOW
11757 # else
11758 # define LT_DLLAZY_OR_NOW 0
11759 # endif
11760 # endif
11761 # endif
11762 # endif
11763 #endif
11764
11765 /* When -fvisibility=hidden is used, assume the code has been annotated
11766 correspondingly for the symbols needed. */
11767 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11768 int fnord () __attribute__((visibility("default")));
11769 #endif
11770
11771 int fnord () { return 42; }
11772 int main ()
11773 {
11774 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11775 int status = $lt_dlunknown;
11776
11777 if (self)
11778 {
11779 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11780 else
11781 {
11782 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11783 else puts (dlerror ());
11784 }
11785 /* dlclose (self); */
11786 }
11787 else
11788 puts (dlerror ());
11789
11790 return status;
11791 }
11792 _LT_EOF
11793 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11794 (eval $ac_link) 2>&5
11795 ac_status=$?
11796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11797 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11798 (./conftest; exit; ) >&5 2>/dev/null
11799 lt_status=$?
11800 case x$lt_status in
11801 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11802 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11803 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11804 esac
11805 else :
11806 # compilation failed
11807 lt_cv_dlopen_self=no
11808 fi
11809 fi
11810 rm -fr conftest*
11811
11812
11813 fi
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11815 $as_echo "$lt_cv_dlopen_self" >&6; }
11816
11817 if test yes = "$lt_cv_dlopen_self"; then
11818 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11820 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11821 if ${lt_cv_dlopen_self_static+:} false; then :
11822 $as_echo_n "(cached) " >&6
11823 else
11824 if test yes = "$cross_compiling"; then :
11825 lt_cv_dlopen_self_static=cross
11826 else
11827 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11828 lt_status=$lt_dlunknown
11829 cat > conftest.$ac_ext <<_LT_EOF
11830 #line $LINENO "configure"
11831 #include "confdefs.h"
11832
11833 #if HAVE_DLFCN_H
11834 #include <dlfcn.h>
11835 #endif
11836
11837 #include <stdio.h>
11838
11839 #ifdef RTLD_GLOBAL
11840 # define LT_DLGLOBAL RTLD_GLOBAL
11841 #else
11842 # ifdef DL_GLOBAL
11843 # define LT_DLGLOBAL DL_GLOBAL
11844 # else
11845 # define LT_DLGLOBAL 0
11846 # endif
11847 #endif
11848
11849 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11850 find out it does not work in some platform. */
11851 #ifndef LT_DLLAZY_OR_NOW
11852 # ifdef RTLD_LAZY
11853 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11854 # else
11855 # ifdef DL_LAZY
11856 # define LT_DLLAZY_OR_NOW DL_LAZY
11857 # else
11858 # ifdef RTLD_NOW
11859 # define LT_DLLAZY_OR_NOW RTLD_NOW
11860 # else
11861 # ifdef DL_NOW
11862 # define LT_DLLAZY_OR_NOW DL_NOW
11863 # else
11864 # define LT_DLLAZY_OR_NOW 0
11865 # endif
11866 # endif
11867 # endif
11868 # endif
11869 #endif
11870
11871 /* When -fvisibility=hidden is used, assume the code has been annotated
11872 correspondingly for the symbols needed. */
11873 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11874 int fnord () __attribute__((visibility("default")));
11875 #endif
11876
11877 int fnord () { return 42; }
11878 int main ()
11879 {
11880 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11881 int status = $lt_dlunknown;
11882
11883 if (self)
11884 {
11885 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11886 else
11887 {
11888 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11889 else puts (dlerror ());
11890 }
11891 /* dlclose (self); */
11892 }
11893 else
11894 puts (dlerror ());
11895
11896 return status;
11897 }
11898 _LT_EOF
11899 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11900 (eval $ac_link) 2>&5
11901 ac_status=$?
11902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11903 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11904 (./conftest; exit; ) >&5 2>/dev/null
11905 lt_status=$?
11906 case x$lt_status in
11907 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11908 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11909 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11910 esac
11911 else :
11912 # compilation failed
11913 lt_cv_dlopen_self_static=no
11914 fi
11915 fi
11916 rm -fr conftest*
11917
11918
11919 fi
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11921 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11922 fi
11923
11924 CPPFLAGS=$save_CPPFLAGS
11925 LDFLAGS=$save_LDFLAGS
11926 LIBS=$save_LIBS
11927 ;;
11928 esac
11929
11930 case $lt_cv_dlopen_self in
11931 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11932 *) enable_dlopen_self=unknown ;;
11933 esac
11934
11935 case $lt_cv_dlopen_self_static in
11936 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11937 *) enable_dlopen_self_static=unknown ;;
11938 esac
11939 fi
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957 striplib=
11958 old_striplib=
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11960 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11961 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11962 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11963 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11965 $as_echo "yes" >&6; }
11966 else
11967 # FIXME - insert some real tests, host_os isn't really good enough
11968 case $host_os in
11969 darwin*)
11970 if test -n "$STRIP"; then
11971 striplib="$STRIP -x"
11972 old_striplib="$STRIP -S"
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11974 $as_echo "yes" >&6; }
11975 else
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11977 $as_echo "no" >&6; }
11978 fi
11979 ;;
11980 *)
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11982 $as_echo "no" >&6; }
11983 ;;
11984 esac
11985 fi
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998 # Report what library types will actually be built
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12000 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12002 $as_echo "$can_build_shared" >&6; }
12003
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12005 $as_echo_n "checking whether to build shared libraries... " >&6; }
12006 test no = "$can_build_shared" && enable_shared=no
12007
12008 # On AIX, shared libraries and static libraries use the same namespace, and
12009 # are all built from PIC.
12010 case $host_os in
12011 aix3*)
12012 test yes = "$enable_shared" && enable_static=no
12013 if test -n "$RANLIB"; then
12014 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12015 postinstall_cmds='$RANLIB $lib'
12016 fi
12017 ;;
12018
12019 aix[4-9]*)
12020 if test ia64 != "$host_cpu"; then
12021 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12022 yes,aix,yes) ;; # shared object as lib.so file only
12023 yes,svr4,*) ;; # shared object as lib.so archive member only
12024 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12025 esac
12026 fi
12027 ;;
12028 esac
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12030 $as_echo "$enable_shared" >&6; }
12031
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12033 $as_echo_n "checking whether to build static libraries... " >&6; }
12034 # Make sure either enable_shared or enable_static is yes.
12035 test yes = "$enable_shared" || enable_static=yes
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12037 $as_echo "$enable_static" >&6; }
12038
12039
12040
12041
12042 fi
12043 ac_ext=c
12044 ac_cpp='$CPP $CPPFLAGS'
12045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12048
12049 CC=$lt_save_CC
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065 ac_config_commands="$ac_config_commands libtool"
12066
12067
12068
12069
12070 # Only expand once:
12071
12072
12073
12074
12075 for ac_prog in 'bison -y' byacc
12076 do
12077 # Extract the first word of "$ac_prog", so it can be a program name with args.
12078 set dummy $ac_prog; ac_word=$2
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12080 $as_echo_n "checking for $ac_word... " >&6; }
12081 if ${ac_cv_prog_YACC+:} false; then :
12082 $as_echo_n "(cached) " >&6
12083 else
12084 if test -n "$YACC"; then
12085 ac_cv_prog_YACC="$YACC" # Let the user override the test.
12086 else
12087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12088 for as_dir in $PATH
12089 do
12090 IFS=$as_save_IFS
12091 test -z "$as_dir" && as_dir=.
12092 for ac_exec_ext in '' $ac_executable_extensions; do
12093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12094 ac_cv_prog_YACC="$ac_prog"
12095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12096 break 2
12097 fi
12098 done
12099 done
12100 IFS=$as_save_IFS
12101
12102 fi
12103 fi
12104 YACC=$ac_cv_prog_YACC
12105 if test -n "$YACC"; then
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12107 $as_echo "$YACC" >&6; }
12108 else
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12110 $as_echo "no" >&6; }
12111 fi
12112
12113
12114 test -n "$YACC" && break
12115 done
12116 test -n "$YACC" || YACC="yacc"
12117
12118
12119 for ac_prog in flex lex
12120 do
12121 # Extract the first word of "$ac_prog", so it can be a program name with args.
12122 set dummy $ac_prog; ac_word=$2
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12124 $as_echo_n "checking for $ac_word... " >&6; }
12125 if ${ac_cv_prog_LEX+:} false; then :
12126 $as_echo_n "(cached) " >&6
12127 else
12128 if test -n "$LEX"; then
12129 ac_cv_prog_LEX="$LEX" # Let the user override the test.
12130 else
12131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12132 for as_dir in $PATH
12133 do
12134 IFS=$as_save_IFS
12135 test -z "$as_dir" && as_dir=.
12136 for ac_exec_ext in '' $ac_executable_extensions; do
12137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12138 ac_cv_prog_LEX="$ac_prog"
12139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12140 break 2
12141 fi
12142 done
12143 done
12144 IFS=$as_save_IFS
12145
12146 fi
12147 fi
12148 LEX=$ac_cv_prog_LEX
12149 if test -n "$LEX"; then
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12151 $as_echo "$LEX" >&6; }
12152 else
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12154 $as_echo "no" >&6; }
12155 fi
12156
12157
12158 test -n "$LEX" && break
12159 done
12160 test -n "$LEX" || LEX=":"
12161
12162 if test "x$LEX" != "x:"; then
12163 cat >conftest.l <<_ACEOF
12164 %%
12165 a { ECHO; }
12166 b { REJECT; }
12167 c { yymore (); }
12168 d { yyless (1); }
12169 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
12170 yyless ((input () != 0)); }
12171 f { unput (yytext[0]); }
12172 . { BEGIN INITIAL; }
12173 %%
12174 #ifdef YYTEXT_POINTER
12175 extern char *yytext;
12176 #endif
12177 int
12178 main (void)
12179 {
12180 return ! yylex () + ! yywrap ();
12181 }
12182 _ACEOF
12183 { { ac_try="$LEX conftest.l"
12184 case "(($ac_try" in
12185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12186 *) ac_try_echo=$ac_try;;
12187 esac
12188 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12189 $as_echo "$ac_try_echo"; } >&5
12190 (eval "$LEX conftest.l") 2>&5
12191 ac_status=$?
12192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12193 test $ac_status = 0; }
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12195 $as_echo_n "checking lex output file root... " >&6; }
12196 if ${ac_cv_prog_lex_root+:} false; then :
12197 $as_echo_n "(cached) " >&6
12198 else
12199
12200 if test -f lex.yy.c; then
12201 ac_cv_prog_lex_root=lex.yy
12202 elif test -f lexyy.c; then
12203 ac_cv_prog_lex_root=lexyy
12204 else
12205 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
12206 fi
12207 fi
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12209 $as_echo "$ac_cv_prog_lex_root" >&6; }
12210 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12211
12212 if test -z "${LEXLIB+set}"; then
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12214 $as_echo_n "checking lex library... " >&6; }
12215 if ${ac_cv_lib_lex+:} false; then :
12216 $as_echo_n "(cached) " >&6
12217 else
12218
12219 ac_save_LIBS=$LIBS
12220 ac_cv_lib_lex='none needed'
12221 for ac_lib in '' -lfl -ll; do
12222 LIBS="$ac_lib $ac_save_LIBS"
12223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12224 /* end confdefs.h. */
12225 `cat $LEX_OUTPUT_ROOT.c`
12226 _ACEOF
12227 if ac_fn_c_try_link "$LINENO"; then :
12228 ac_cv_lib_lex=$ac_lib
12229 fi
12230 rm -f core conftest.err conftest.$ac_objext \
12231 conftest$ac_exeext conftest.$ac_ext
12232 test "$ac_cv_lib_lex" != 'none needed' && break
12233 done
12234 LIBS=$ac_save_LIBS
12235
12236 fi
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12238 $as_echo "$ac_cv_lib_lex" >&6; }
12239 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12240 fi
12241
12242
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12244 $as_echo_n "checking whether yytext is a pointer... " >&6; }
12245 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
12246 $as_echo_n "(cached) " >&6
12247 else
12248 # POSIX says lex can declare yytext either as a pointer or an array; the
12249 # default is implementation-dependent. Figure out which it is, since
12250 # not all implementations provide the %pointer and %array declarations.
12251 ac_cv_prog_lex_yytext_pointer=no
12252 ac_save_LIBS=$LIBS
12253 LIBS="$LEXLIB $ac_save_LIBS"
12254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12255 /* end confdefs.h. */
12256
12257 #define YYTEXT_POINTER 1
12258 `cat $LEX_OUTPUT_ROOT.c`
12259 _ACEOF
12260 if ac_fn_c_try_link "$LINENO"; then :
12261 ac_cv_prog_lex_yytext_pointer=yes
12262 fi
12263 rm -f core conftest.err conftest.$ac_objext \
12264 conftest$ac_exeext conftest.$ac_ext
12265 LIBS=$ac_save_LIBS
12266
12267 fi
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12269 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
12270 if test $ac_cv_prog_lex_yytext_pointer = yes; then
12271
12272 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
12273
12274 fi
12275 rm -f conftest.l $LEX_OUTPUT_ROOT.c
12276
12277 fi
12278 if test "$LEX" = :; then
12279 LEX=${am_missing_run}flex
12280 fi
12281
12282
12283
12284 if test "X$CC" != "X"; then
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fstack-protector-strong" >&5
12286 $as_echo_n "checking whether ${CC} accepts -fstack-protector-strong... " >&6; }
12287 if ${ssp_cv_cc+:} false; then :
12288 $as_echo_n "(cached) " >&6
12289 else
12290 ssp_old_cflags="$CFLAGS"
12291 CFLAGS="$CFLAGS -fstack-protector-strong"
12292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12293 /* end confdefs.h. */
12294
12295 int
12296 main ()
12297 {
12298
12299 ;
12300 return 0;
12301 }
12302 _ACEOF
12303 if ac_fn_c_try_compile "$LINENO"; then :
12304 ssp_cv_cc=yes
12305 else
12306 ssp_cv_cc=no
12307 fi
12308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12309 CFLAGS="$ssp_old_cflags"
12310
12311 fi
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_cc" >&5
12313 $as_echo "$ssp_cv_cc" >&6; }
12314 if test $ssp_cv_cc = yes; then
12315 CFLAGS="$CFLAGS -fstack-protector-strong"
12316
12317 $as_echo "#define ENABLE_SSP_CC 1" >>confdefs.h
12318
12319 else
12320 unset ssp_cv_cc
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fstack-protector" >&5
12322 $as_echo_n "checking whether ${CC} accepts -fstack-protector... " >&6; }
12323 if ${ssp_cv_cc+:} false; then :
12324 $as_echo_n "(cached) " >&6
12325 else
12326 ssp_old_cflags="$CFLAGS"
12327 CFLAGS="$CFLAGS -fstack-protector"
12328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12329 /* end confdefs.h. */
12330
12331 int
12332 main ()
12333 {
12334
12335 ;
12336 return 0;
12337 }
12338 _ACEOF
12339 if ac_fn_c_try_compile "$LINENO"; then :
12340 ssp_cv_cc=yes
12341 else
12342 ssp_cv_cc=no
12343 fi
12344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12345 CFLAGS="$ssp_old_cflags"
12346
12347 fi
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_cc" >&5
12349 $as_echo "$ssp_cv_cc" >&6; }
12350 if test $ssp_cv_cc = yes; then
12351 CFLAGS="$CFLAGS -fstack-protector"
12352
12353 $as_echo "#define ENABLE_SSP_CC 1" >>confdefs.h
12354
12355 fi
12356 fi
12357 fi
12358
12359
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libssp exists" >&5
12361 $as_echo_n "checking whether libssp exists... " >&6; }
12362 if ${ssp_cv_lib+:} false; then :
12363 $as_echo_n "(cached) " >&6
12364 else
12365 ssp_old_libs="$LIBS"
12366 LIBS="$LIBS -lssp"
12367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12368 /* end confdefs.h. */
12369
12370 int
12371 main ()
12372 {
12373
12374 ;
12375 return 0;
12376 }
12377 _ACEOF
12378 if ac_fn_c_try_link "$LINENO"; then :
12379 ssp_cv_lib=yes
12380 else
12381 ssp_cv_lib=no
12382 fi
12383 rm -f core conftest.err conftest.$ac_objext \
12384 conftest$ac_exeext conftest.$ac_ext
12385 LIBS="$ssp_old_libs"
12386
12387 fi
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_lib" >&5
12389 $as_echo "$ssp_cv_lib" >&6; }
12390 if test $ssp_cv_lib = yes; then
12391 LIBS="$LIBS -lssp"
12392 fi
12393
12394
12395
12396 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
12397 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
12398
12399 else
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
12401 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
12402 if ${ac_cv_search_getaddrinfo+:} false; then :
12403 $as_echo_n "(cached) " >&6
12404 else
12405 ac_func_search_save_LIBS=$LIBS
12406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12407 /* end confdefs.h. */
12408
12409 /* Override any GCC internal prototype to avoid an error.
12410 Use char because int might match the return type of a GCC
12411 builtin and then its argument prototype would still apply. */
12412 #ifdef __cplusplus
12413 extern "C"
12414 #endif
12415 char getaddrinfo ();
12416 int
12417 main ()
12418 {
12419 return getaddrinfo ();
12420 ;
12421 return 0;
12422 }
12423 _ACEOF
12424 for ac_lib in '' nsl; do
12425 if test -z "$ac_lib"; then
12426 ac_res="none required"
12427 else
12428 ac_res=-l$ac_lib
12429 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12430 fi
12431 if ac_fn_c_try_link "$LINENO"; then :
12432 ac_cv_search_getaddrinfo=$ac_res
12433 fi
12434 rm -f core conftest.err conftest.$ac_objext \
12435 conftest$ac_exeext
12436 if ${ac_cv_search_getaddrinfo+:} false; then :
12437 break
12438 fi
12439 done
12440 if ${ac_cv_search_getaddrinfo+:} false; then :
12441
12442 else
12443 ac_cv_search_getaddrinfo=no
12444 fi
12445 rm conftest.$ac_ext
12446 LIBS=$ac_func_search_save_LIBS
12447 fi
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
12449 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
12450 ac_res=$ac_cv_search_getaddrinfo
12451 if test "$ac_res" != no; then :
12452 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12453
12454 fi
12455
12456 fi
12457
12458 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
12459 if test "x$ac_cv_func_getnameinfo" = xyes; then :
12460
12461 else
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
12463 $as_echo_n "checking for library containing getnameinfo... " >&6; }
12464 if ${ac_cv_search_getnameinfo+:} false; then :
12465 $as_echo_n "(cached) " >&6
12466 else
12467 ac_func_search_save_LIBS=$LIBS
12468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12469 /* end confdefs.h. */
12470
12471 /* Override any GCC internal prototype to avoid an error.
12472 Use char because int might match the return type of a GCC
12473 builtin and then its argument prototype would still apply. */
12474 #ifdef __cplusplus
12475 extern "C"
12476 #endif
12477 char getnameinfo ();
12478 int
12479 main ()
12480 {
12481 return getnameinfo ();
12482 ;
12483 return 0;
12484 }
12485 _ACEOF
12486 for ac_lib in '' nsl; do
12487 if test -z "$ac_lib"; then
12488 ac_res="none required"
12489 else
12490 ac_res=-l$ac_lib
12491 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12492 fi
12493 if ac_fn_c_try_link "$LINENO"; then :
12494 ac_cv_search_getnameinfo=$ac_res
12495 fi
12496 rm -f core conftest.err conftest.$ac_objext \
12497 conftest$ac_exeext
12498 if ${ac_cv_search_getnameinfo+:} false; then :
12499 break
12500 fi
12501 done
12502 if ${ac_cv_search_getnameinfo+:} false; then :
12503
12504 else
12505 ac_cv_search_getnameinfo=no
12506 fi
12507 rm conftest.$ac_ext
12508 LIBS=$ac_func_search_save_LIBS
12509 fi
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
12511 $as_echo "$ac_cv_search_getnameinfo" >&6; }
12512 ac_res=$ac_cv_search_getnameinfo
12513 if test "$ac_res" != no; then :
12514 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12515
12516 fi
12517
12518 fi
12519
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12521 $as_echo_n "checking for library containing socket... " >&6; }
12522 if ${ac_cv_search_socket+:} false; then :
12523 $as_echo_n "(cached) " >&6
12524 else
12525 ac_func_search_save_LIBS=$LIBS
12526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12527 /* end confdefs.h. */
12528
12529 /* Override any GCC internal prototype to avoid an error.
12530 Use char because int might match the return type of a GCC
12531 builtin and then its argument prototype would still apply. */
12532 #ifdef __cplusplus
12533 extern "C"
12534 #endif
12535 char socket ();
12536 int
12537 main ()
12538 {
12539 return socket ();
12540 ;
12541 return 0;
12542 }
12543 _ACEOF
12544 for ac_lib in '' socket; do
12545 if test -z "$ac_lib"; then
12546 ac_res="none required"
12547 else
12548 ac_res=-l$ac_lib
12549 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12550 fi
12551 if ac_fn_c_try_link "$LINENO"; then :
12552 ac_cv_search_socket=$ac_res
12553 fi
12554 rm -f core conftest.err conftest.$ac_objext \
12555 conftest$ac_exeext
12556 if ${ac_cv_search_socket+:} false; then :
12557 break
12558 fi
12559 done
12560 if ${ac_cv_search_socket+:} false; then :
12561
12562 else
12563 ac_cv_search_socket=no
12564 fi
12565 rm conftest.$ac_ext
12566 LIBS=$ac_func_search_save_LIBS
12567 fi
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12569 $as_echo "$ac_cv_search_socket" >&6; }
12570 ac_res=$ac_cv_search_socket
12571 if test "$ac_res" != no; then :
12572 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12573
12574 else
12575 as_fn_error $? "socket library not found" "$LINENO" 5
12576 fi
12577
12578
12579
12580 # Check whether --enable-assert was given.
12581 if test "${enable_assert+set}" = set; then :
12582 enableval=$enable_assert; assert=$enableval
12583 else
12584 assert=no
12585 fi
12586
12587
12588 if test "$assert" = "no"; then :
12589
12590 $as_echo "#define NDEBUG 1" >>confdefs.h
12591
12592 fi
12593
12594
12595 # Check whether --enable-warnings was given.
12596 if test "${enable_warnings+set}" = set; then :
12597 enableval=$enable_warnings; warnings="$enableval"
12598 else
12599 warnings="no"
12600 fi
12601
12602
12603 if test "$warnings" = "yes"; then :
12604
12605
12606
12607
12608
12609 for flag in -Wall; do
12610 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12612 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12613 if eval \${$as_CACHEVAR+:} false; then :
12614 $as_echo_n "(cached) " >&6
12615 else
12616
12617 ax_check_save_flags=$CFLAGS
12618 CFLAGS="$CFLAGS $flag"
12619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12620 /* end confdefs.h. */
12621
12622 int
12623 main ()
12624 {
12625
12626 ;
12627 return 0;
12628 }
12629 _ACEOF
12630 if ac_fn_c_try_compile "$LINENO"; then :
12631 eval "$as_CACHEVAR=yes"
12632 else
12633 eval "$as_CACHEVAR=no"
12634 fi
12635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12636 CFLAGS=$ax_check_save_flags
12637 fi
12638 eval ac_res=\$$as_CACHEVAR
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12640 $as_echo "$ac_res" >&6; }
12641 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
12642
12643 if ${CFLAGS+:} false; then :
12644
12645 case " $CFLAGS " in #(
12646 *" $flag "*) :
12647 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
12648 (: CFLAGS already contains $flag) 2>&5
12649 ac_status=$?
12650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12651 test $ac_status = 0; } ;; #(
12652 *) :
12653
12654 as_fn_append CFLAGS " $flag"
12655 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
12656 (: CFLAGS="$CFLAGS") 2>&5
12657 ac_status=$?
12658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12659 test $ac_status = 0; }
12660 ;;
12661 esac
12662
12663 else
12664
12665 CFLAGS=$flag
12666 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
12667 (: CFLAGS="$CFLAGS") 2>&5
12668 ac_status=$?
12669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12670 test $ac_status = 0; }
12671
12672 fi
12673
12674 else
12675 :
12676 fi
12677
12678 done
12679
12680
12681
12682
12683
12684 for flag in -Wbad-function-cast; do
12685 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12687 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12688 if eval \${$as_CACHEVAR+:} false; then :
12689 $as_echo_n "(cached) " >&6
12690 else
12691
12692 ax_check_save_flags=$CFLAGS
12693 CFLAGS="$CFLAGS $flag"
12694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12695 /* end confdefs.h. */
12696
12697 int
12698 main ()
12699 {
12700
12701 ;
12702 return 0;
12703 }
12704 _ACEOF
12705 if ac_fn_c_try_compile "$LINENO"; then :
12706 eval "$as_CACHEVAR=yes"
12707 else
12708 eval "$as_CACHEVAR=no"
12709 fi
12710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12711 CFLAGS=$ax_check_save_flags
12712 fi
12713 eval ac_res=\$$as_CACHEVAR
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12715 $as_echo "$ac_res" >&6; }
12716 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
12717
12718 if ${CFLAGS+:} false; then :
12719
12720 case " $CFLAGS " in #(
12721 *" $flag "*) :
12722 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
12723 (: CFLAGS already contains $flag) 2>&5
12724 ac_status=$?
12725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12726 test $ac_status = 0; } ;; #(
12727 *) :
12728
12729 as_fn_append CFLAGS " $flag"
12730 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
12731 (: CFLAGS="$CFLAGS") 2>&5
12732 ac_status=$?
12733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12734 test $ac_status = 0; }
12735 ;;
12736 esac
12737
12738 else
12739
12740 CFLAGS=$flag
12741 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
12742 (: CFLAGS="$CFLAGS") 2>&5
12743 ac_status=$?
12744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12745 test $ac_status = 0; }
12746
12747 fi
12748
12749 else
12750 :
12751 fi
12752
12753 done
12754
12755
12756
12757
12758
12759 for flag in -Wcast-align; do
12760 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12762 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12763 if eval \${$as_CACHEVAR+:} false; then :
12764 $as_echo_n "(cached) " >&6
12765 else
12766
12767 ax_check_save_flags=$CFLAGS
12768 CFLAGS="$CFLAGS $flag"
12769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12770 /* end confdefs.h. */
12771
12772 int
12773 main ()
12774 {
12775
12776 ;
12777 return 0;
12778 }
12779 _ACEOF
12780 if ac_fn_c_try_compile "$LINENO"; then :
12781 eval "$as_CACHEVAR=yes"
12782 else
12783 eval "$as_CACHEVAR=no"
12784 fi
12785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12786 CFLAGS=$ax_check_save_flags
12787 fi
12788 eval ac_res=\$$as_CACHEVAR
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12790 $as_echo "$ac_res" >&6; }
12791 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
12792
12793 if ${CFLAGS+:} false; then :
12794
12795 case " $CFLAGS " in #(
12796 *" $flag "*) :
12797 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
12798 (: CFLAGS already contains $flag) 2>&5
12799 ac_status=$?
12800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12801 test $ac_status = 0; } ;; #(
12802 *) :
12803
12804 as_fn_append CFLAGS " $flag"
12805 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
12806 (: CFLAGS="$CFLAGS") 2>&5
12807 ac_status=$?
12808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12809 test $ac_status = 0; }
12810 ;;
12811 esac
12812
12813 else
12814
12815 CFLAGS=$flag
12816 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
12817 (: CFLAGS="$CFLAGS") 2>&5
12818 ac_status=$?
12819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12820 test $ac_status = 0; }
12821
12822 fi
12823
12824 else
12825 :
12826 fi
12827
12828 done
12829
12830
12831
12832
12833
12834 for flag in -Wcast-qual; do
12835 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12837 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12838 if eval \${$as_CACHEVAR+:} false; then :
12839 $as_echo_n "(cached) " >&6
12840 else
12841
12842 ax_check_save_flags=$CFLAGS
12843 CFLAGS="$CFLAGS $flag"
12844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12845 /* end confdefs.h. */
12846
12847 int
12848 main ()
12849 {
12850
12851 ;
12852 return 0;
12853 }
12854 _ACEOF
12855 if ac_fn_c_try_compile "$LINENO"; then :
12856 eval "$as_CACHEVAR=yes"
12857 else
12858 eval "$as_CACHEVAR=no"
12859 fi
12860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12861 CFLAGS=$ax_check_save_flags
12862 fi
12863 eval ac_res=\$$as_CACHEVAR
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12865 $as_echo "$ac_res" >&6; }
12866 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
12867
12868 if ${CFLAGS+:} false; then :
12869
12870 case " $CFLAGS " in #(
12871 *" $flag "*) :
12872 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
12873 (: CFLAGS already contains $flag) 2>&5
12874 ac_status=$?
12875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12876 test $ac_status = 0; } ;; #(
12877 *) :
12878
12879 as_fn_append CFLAGS " $flag"
12880 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
12881 (: CFLAGS="$CFLAGS") 2>&5
12882 ac_status=$?
12883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12884 test $ac_status = 0; }
12885 ;;
12886 esac
12887
12888 else
12889
12890 CFLAGS=$flag
12891 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
12892 (: CFLAGS="$CFLAGS") 2>&5
12893 ac_status=$?
12894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12895 test $ac_status = 0; }
12896
12897 fi
12898
12899 else
12900 :
12901 fi
12902
12903 done
12904
12905
12906
12907
12908
12909 for flag in -Wclobbered; do
12910 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12912 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12913 if eval \${$as_CACHEVAR+:} false; then :
12914 $as_echo_n "(cached) " >&6
12915 else
12916
12917 ax_check_save_flags=$CFLAGS
12918 CFLAGS="$CFLAGS $flag"
12919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12920 /* end confdefs.h. */
12921
12922 int
12923 main ()
12924 {
12925
12926 ;
12927 return 0;
12928 }
12929 _ACEOF
12930 if ac_fn_c_try_compile "$LINENO"; then :
12931 eval "$as_CACHEVAR=yes"
12932 else
12933 eval "$as_CACHEVAR=no"
12934 fi
12935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12936 CFLAGS=$ax_check_save_flags
12937 fi
12938 eval ac_res=\$$as_CACHEVAR
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12940 $as_echo "$ac_res" >&6; }
12941 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
12942
12943 if ${CFLAGS+:} false; then :
12944
12945 case " $CFLAGS " in #(
12946 *" $flag "*) :
12947 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
12948 (: CFLAGS already contains $flag) 2>&5
12949 ac_status=$?
12950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12951 test $ac_status = 0; } ;; #(
12952 *) :
12953
12954 as_fn_append CFLAGS " $flag"
12955 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
12956 (: CFLAGS="$CFLAGS") 2>&5
12957 ac_status=$?
12958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12959 test $ac_status = 0; }
12960 ;;
12961 esac
12962
12963 else
12964
12965 CFLAGS=$flag
12966 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
12967 (: CFLAGS="$CFLAGS") 2>&5
12968 ac_status=$?
12969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12970 test $ac_status = 0; }
12971
12972 fi
12973
12974 else
12975 :
12976 fi
12977
12978 done
12979
12980
12981
12982
12983
12984 for flag in -Wempty-body; do
12985 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12987 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12988 if eval \${$as_CACHEVAR+:} false; then :
12989 $as_echo_n "(cached) " >&6
12990 else
12991
12992 ax_check_save_flags=$CFLAGS
12993 CFLAGS="$CFLAGS $flag"
12994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12995 /* end confdefs.h. */
12996
12997 int
12998 main ()
12999 {
13000
13001 ;
13002 return 0;
13003 }
13004 _ACEOF
13005 if ac_fn_c_try_compile "$LINENO"; then :
13006 eval "$as_CACHEVAR=yes"
13007 else
13008 eval "$as_CACHEVAR=no"
13009 fi
13010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13011 CFLAGS=$ax_check_save_flags
13012 fi
13013 eval ac_res=\$$as_CACHEVAR
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13015 $as_echo "$ac_res" >&6; }
13016 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13017
13018 if ${CFLAGS+:} false; then :
13019
13020 case " $CFLAGS " in #(
13021 *" $flag "*) :
13022 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13023 (: CFLAGS already contains $flag) 2>&5
13024 ac_status=$?
13025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13026 test $ac_status = 0; } ;; #(
13027 *) :
13028
13029 as_fn_append CFLAGS " $flag"
13030 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13031 (: CFLAGS="$CFLAGS") 2>&5
13032 ac_status=$?
13033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13034 test $ac_status = 0; }
13035 ;;
13036 esac
13037
13038 else
13039
13040 CFLAGS=$flag
13041 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13042 (: CFLAGS="$CFLAGS") 2>&5
13043 ac_status=$?
13044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13045 test $ac_status = 0; }
13046
13047 fi
13048
13049 else
13050 :
13051 fi
13052
13053 done
13054
13055
13056
13057
13058
13059 for flag in -Wignored-qualifiers; do
13060 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13062 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13063 if eval \${$as_CACHEVAR+:} false; then :
13064 $as_echo_n "(cached) " >&6
13065 else
13066
13067 ax_check_save_flags=$CFLAGS
13068 CFLAGS="$CFLAGS $flag"
13069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13070 /* end confdefs.h. */
13071
13072 int
13073 main ()
13074 {
13075
13076 ;
13077 return 0;
13078 }
13079 _ACEOF
13080 if ac_fn_c_try_compile "$LINENO"; then :
13081 eval "$as_CACHEVAR=yes"
13082 else
13083 eval "$as_CACHEVAR=no"
13084 fi
13085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13086 CFLAGS=$ax_check_save_flags
13087 fi
13088 eval ac_res=\$$as_CACHEVAR
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13090 $as_echo "$ac_res" >&6; }
13091 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13092
13093 if ${CFLAGS+:} false; then :
13094
13095 case " $CFLAGS " in #(
13096 *" $flag "*) :
13097 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13098 (: CFLAGS already contains $flag) 2>&5
13099 ac_status=$?
13100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13101 test $ac_status = 0; } ;; #(
13102 *) :
13103
13104 as_fn_append CFLAGS " $flag"
13105 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13106 (: CFLAGS="$CFLAGS") 2>&5
13107 ac_status=$?
13108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13109 test $ac_status = 0; }
13110 ;;
13111 esac
13112
13113 else
13114
13115 CFLAGS=$flag
13116 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13117 (: CFLAGS="$CFLAGS") 2>&5
13118 ac_status=$?
13119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13120 test $ac_status = 0; }
13121
13122 fi
13123
13124 else
13125 :
13126 fi
13127
13128 done
13129
13130
13131
13132
13133
13134 for flag in -Wlogical-op; do
13135 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13137 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13138 if eval \${$as_CACHEVAR+:} false; then :
13139 $as_echo_n "(cached) " >&6
13140 else
13141
13142 ax_check_save_flags=$CFLAGS
13143 CFLAGS="$CFLAGS $flag"
13144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13145 /* end confdefs.h. */
13146
13147 int
13148 main ()
13149 {
13150
13151 ;
13152 return 0;
13153 }
13154 _ACEOF
13155 if ac_fn_c_try_compile "$LINENO"; then :
13156 eval "$as_CACHEVAR=yes"
13157 else
13158 eval "$as_CACHEVAR=no"
13159 fi
13160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13161 CFLAGS=$ax_check_save_flags
13162 fi
13163 eval ac_res=\$$as_CACHEVAR
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13165 $as_echo "$ac_res" >&6; }
13166 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13167
13168 if ${CFLAGS+:} false; then :
13169
13170 case " $CFLAGS " in #(
13171 *" $flag "*) :
13172 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13173 (: CFLAGS already contains $flag) 2>&5
13174 ac_status=$?
13175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13176 test $ac_status = 0; } ;; #(
13177 *) :
13178
13179 as_fn_append CFLAGS " $flag"
13180 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13181 (: CFLAGS="$CFLAGS") 2>&5
13182 ac_status=$?
13183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13184 test $ac_status = 0; }
13185 ;;
13186 esac
13187
13188 else
13189
13190 CFLAGS=$flag
13191 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13192 (: CFLAGS="$CFLAGS") 2>&5
13193 ac_status=$?
13194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13195 test $ac_status = 0; }
13196
13197 fi
13198
13199 else
13200 :
13201 fi
13202
13203 done
13204
13205
13206
13207
13208
13209 for flag in -Wmissing-declarations; do
13210 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13212 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13213 if eval \${$as_CACHEVAR+:} false; then :
13214 $as_echo_n "(cached) " >&6
13215 else
13216
13217 ax_check_save_flags=$CFLAGS
13218 CFLAGS="$CFLAGS $flag"
13219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13220 /* end confdefs.h. */
13221
13222 int
13223 main ()
13224 {
13225
13226 ;
13227 return 0;
13228 }
13229 _ACEOF
13230 if ac_fn_c_try_compile "$LINENO"; then :
13231 eval "$as_CACHEVAR=yes"
13232 else
13233 eval "$as_CACHEVAR=no"
13234 fi
13235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13236 CFLAGS=$ax_check_save_flags
13237 fi
13238 eval ac_res=\$$as_CACHEVAR
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13240 $as_echo "$ac_res" >&6; }
13241 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13242
13243 if ${CFLAGS+:} false; then :
13244
13245 case " $CFLAGS " in #(
13246 *" $flag "*) :
13247 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13248 (: CFLAGS already contains $flag) 2>&5
13249 ac_status=$?
13250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13251 test $ac_status = 0; } ;; #(
13252 *) :
13253
13254 as_fn_append CFLAGS " $flag"
13255 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13256 (: CFLAGS="$CFLAGS") 2>&5
13257 ac_status=$?
13258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13259 test $ac_status = 0; }
13260 ;;
13261 esac
13262
13263 else
13264
13265 CFLAGS=$flag
13266 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13267 (: CFLAGS="$CFLAGS") 2>&5
13268 ac_status=$?
13269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13270 test $ac_status = 0; }
13271
13272 fi
13273
13274 else
13275 :
13276 fi
13277
13278 done
13279
13280
13281
13282
13283
13284 for flag in -Wmissing-field-initializers; do
13285 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13287 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13288 if eval \${$as_CACHEVAR+:} false; then :
13289 $as_echo_n "(cached) " >&6
13290 else
13291
13292 ax_check_save_flags=$CFLAGS
13293 CFLAGS="$CFLAGS $flag"
13294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13295 /* end confdefs.h. */
13296
13297 int
13298 main ()
13299 {
13300
13301 ;
13302 return 0;
13303 }
13304 _ACEOF
13305 if ac_fn_c_try_compile "$LINENO"; then :
13306 eval "$as_CACHEVAR=yes"
13307 else
13308 eval "$as_CACHEVAR=no"
13309 fi
13310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13311 CFLAGS=$ax_check_save_flags
13312 fi
13313 eval ac_res=\$$as_CACHEVAR
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13315 $as_echo "$ac_res" >&6; }
13316 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13317
13318 if ${CFLAGS+:} false; then :
13319
13320 case " $CFLAGS " in #(
13321 *" $flag "*) :
13322 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13323 (: CFLAGS already contains $flag) 2>&5
13324 ac_status=$?
13325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13326 test $ac_status = 0; } ;; #(
13327 *) :
13328
13329 as_fn_append CFLAGS " $flag"
13330 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13331 (: CFLAGS="$CFLAGS") 2>&5
13332 ac_status=$?
13333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13334 test $ac_status = 0; }
13335 ;;
13336 esac
13337
13338 else
13339
13340 CFLAGS=$flag
13341 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13342 (: CFLAGS="$CFLAGS") 2>&5
13343 ac_status=$?
13344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13345 test $ac_status = 0; }
13346
13347 fi
13348
13349 else
13350 :
13351 fi
13352
13353 done
13354
13355
13356
13357
13358
13359 for flag in -Wmissing-include-dirs; do
13360 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13362 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13363 if eval \${$as_CACHEVAR+:} false; then :
13364 $as_echo_n "(cached) " >&6
13365 else
13366
13367 ax_check_save_flags=$CFLAGS
13368 CFLAGS="$CFLAGS $flag"
13369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13370 /* end confdefs.h. */
13371
13372 int
13373 main ()
13374 {
13375
13376 ;
13377 return 0;
13378 }
13379 _ACEOF
13380 if ac_fn_c_try_compile "$LINENO"; then :
13381 eval "$as_CACHEVAR=yes"
13382 else
13383 eval "$as_CACHEVAR=no"
13384 fi
13385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13386 CFLAGS=$ax_check_save_flags
13387 fi
13388 eval ac_res=\$$as_CACHEVAR
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13390 $as_echo "$ac_res" >&6; }
13391 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13392
13393 if ${CFLAGS+:} false; then :
13394
13395 case " $CFLAGS " in #(
13396 *" $flag "*) :
13397 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13398 (: CFLAGS already contains $flag) 2>&5
13399 ac_status=$?
13400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13401 test $ac_status = 0; } ;; #(
13402 *) :
13403
13404 as_fn_append CFLAGS " $flag"
13405 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13406 (: CFLAGS="$CFLAGS") 2>&5
13407 ac_status=$?
13408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13409 test $ac_status = 0; }
13410 ;;
13411 esac
13412
13413 else
13414
13415 CFLAGS=$flag
13416 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13417 (: CFLAGS="$CFLAGS") 2>&5
13418 ac_status=$?
13419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13420 test $ac_status = 0; }
13421
13422 fi
13423
13424 else
13425 :
13426 fi
13427
13428 done
13429
13430
13431
13432
13433
13434 for flag in -Wmissing-parameter-type; do
13435 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13437 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13438 if eval \${$as_CACHEVAR+:} false; then :
13439 $as_echo_n "(cached) " >&6
13440 else
13441
13442 ax_check_save_flags=$CFLAGS
13443 CFLAGS="$CFLAGS $flag"
13444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13445 /* end confdefs.h. */
13446
13447 int
13448 main ()
13449 {
13450
13451 ;
13452 return 0;
13453 }
13454 _ACEOF
13455 if ac_fn_c_try_compile "$LINENO"; then :
13456 eval "$as_CACHEVAR=yes"
13457 else
13458 eval "$as_CACHEVAR=no"
13459 fi
13460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13461 CFLAGS=$ax_check_save_flags
13462 fi
13463 eval ac_res=\$$as_CACHEVAR
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13465 $as_echo "$ac_res" >&6; }
13466 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13467
13468 if ${CFLAGS+:} false; then :
13469
13470 case " $CFLAGS " in #(
13471 *" $flag "*) :
13472 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13473 (: CFLAGS already contains $flag) 2>&5
13474 ac_status=$?
13475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13476 test $ac_status = 0; } ;; #(
13477 *) :
13478
13479 as_fn_append CFLAGS " $flag"
13480 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13481 (: CFLAGS="$CFLAGS") 2>&5
13482 ac_status=$?
13483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13484 test $ac_status = 0; }
13485 ;;
13486 esac
13487
13488 else
13489
13490 CFLAGS=$flag
13491 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13492 (: CFLAGS="$CFLAGS") 2>&5
13493 ac_status=$?
13494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13495 test $ac_status = 0; }
13496
13497 fi
13498
13499 else
13500 :
13501 fi
13502
13503 done
13504
13505
13506
13507
13508
13509 for flag in -Wmissing-prototypes; do
13510 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13512 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13513 if eval \${$as_CACHEVAR+:} false; then :
13514 $as_echo_n "(cached) " >&6
13515 else
13516
13517 ax_check_save_flags=$CFLAGS
13518 CFLAGS="$CFLAGS $flag"
13519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13520 /* end confdefs.h. */
13521
13522 int
13523 main ()
13524 {
13525
13526 ;
13527 return 0;
13528 }
13529 _ACEOF
13530 if ac_fn_c_try_compile "$LINENO"; then :
13531 eval "$as_CACHEVAR=yes"
13532 else
13533 eval "$as_CACHEVAR=no"
13534 fi
13535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13536 CFLAGS=$ax_check_save_flags
13537 fi
13538 eval ac_res=\$$as_CACHEVAR
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13540 $as_echo "$ac_res" >&6; }
13541 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13542
13543 if ${CFLAGS+:} false; then :
13544
13545 case " $CFLAGS " in #(
13546 *" $flag "*) :
13547 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13548 (: CFLAGS already contains $flag) 2>&5
13549 ac_status=$?
13550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13551 test $ac_status = 0; } ;; #(
13552 *) :
13553
13554 as_fn_append CFLAGS " $flag"
13555 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13556 (: CFLAGS="$CFLAGS") 2>&5
13557 ac_status=$?
13558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13559 test $ac_status = 0; }
13560 ;;
13561 esac
13562
13563 else
13564
13565 CFLAGS=$flag
13566 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13567 (: CFLAGS="$CFLAGS") 2>&5
13568 ac_status=$?
13569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13570 test $ac_status = 0; }
13571
13572 fi
13573
13574 else
13575 :
13576 fi
13577
13578 done
13579
13580
13581
13582
13583
13584 for flag in -Wnested-externs; do
13585 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13587 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13588 if eval \${$as_CACHEVAR+:} false; then :
13589 $as_echo_n "(cached) " >&6
13590 else
13591
13592 ax_check_save_flags=$CFLAGS
13593 CFLAGS="$CFLAGS $flag"
13594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13595 /* end confdefs.h. */
13596
13597 int
13598 main ()
13599 {
13600
13601 ;
13602 return 0;
13603 }
13604 _ACEOF
13605 if ac_fn_c_try_compile "$LINENO"; then :
13606 eval "$as_CACHEVAR=yes"
13607 else
13608 eval "$as_CACHEVAR=no"
13609 fi
13610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13611 CFLAGS=$ax_check_save_flags
13612 fi
13613 eval ac_res=\$$as_CACHEVAR
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13615 $as_echo "$ac_res" >&6; }
13616 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13617
13618 if ${CFLAGS+:} false; then :
13619
13620 case " $CFLAGS " in #(
13621 *" $flag "*) :
13622 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13623 (: CFLAGS already contains $flag) 2>&5
13624 ac_status=$?
13625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13626 test $ac_status = 0; } ;; #(
13627 *) :
13628
13629 as_fn_append CFLAGS " $flag"
13630 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13631 (: CFLAGS="$CFLAGS") 2>&5
13632 ac_status=$?
13633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13634 test $ac_status = 0; }
13635 ;;
13636 esac
13637
13638 else
13639
13640 CFLAGS=$flag
13641 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13642 (: CFLAGS="$CFLAGS") 2>&5
13643 ac_status=$?
13644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13645 test $ac_status = 0; }
13646
13647 fi
13648
13649 else
13650 :
13651 fi
13652
13653 done
13654
13655
13656
13657
13658
13659 for flag in -Wold-style-declaration; do
13660 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13662 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13663 if eval \${$as_CACHEVAR+:} false; then :
13664 $as_echo_n "(cached) " >&6
13665 else
13666
13667 ax_check_save_flags=$CFLAGS
13668 CFLAGS="$CFLAGS $flag"
13669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13670 /* end confdefs.h. */
13671
13672 int
13673 main ()
13674 {
13675
13676 ;
13677 return 0;
13678 }
13679 _ACEOF
13680 if ac_fn_c_try_compile "$LINENO"; then :
13681 eval "$as_CACHEVAR=yes"
13682 else
13683 eval "$as_CACHEVAR=no"
13684 fi
13685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13686 CFLAGS=$ax_check_save_flags
13687 fi
13688 eval ac_res=\$$as_CACHEVAR
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13690 $as_echo "$ac_res" >&6; }
13691 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13692
13693 if ${CFLAGS+:} false; then :
13694
13695 case " $CFLAGS " in #(
13696 *" $flag "*) :
13697 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13698 (: CFLAGS already contains $flag) 2>&5
13699 ac_status=$?
13700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13701 test $ac_status = 0; } ;; #(
13702 *) :
13703
13704 as_fn_append CFLAGS " $flag"
13705 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13706 (: CFLAGS="$CFLAGS") 2>&5
13707 ac_status=$?
13708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13709 test $ac_status = 0; }
13710 ;;
13711 esac
13712
13713 else
13714
13715 CFLAGS=$flag
13716 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13717 (: CFLAGS="$CFLAGS") 2>&5
13718 ac_status=$?
13719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13720 test $ac_status = 0; }
13721
13722 fi
13723
13724 else
13725 :
13726 fi
13727
13728 done
13729
13730
13731
13732
13733
13734 for flag in -Woverride-init; do
13735 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13737 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13738 if eval \${$as_CACHEVAR+:} false; then :
13739 $as_echo_n "(cached) " >&6
13740 else
13741
13742 ax_check_save_flags=$CFLAGS
13743 CFLAGS="$CFLAGS $flag"
13744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13745 /* end confdefs.h. */
13746
13747 int
13748 main ()
13749 {
13750
13751 ;
13752 return 0;
13753 }
13754 _ACEOF
13755 if ac_fn_c_try_compile "$LINENO"; then :
13756 eval "$as_CACHEVAR=yes"
13757 else
13758 eval "$as_CACHEVAR=no"
13759 fi
13760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13761 CFLAGS=$ax_check_save_flags
13762 fi
13763 eval ac_res=\$$as_CACHEVAR
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13765 $as_echo "$ac_res" >&6; }
13766 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13767
13768 if ${CFLAGS+:} false; then :
13769
13770 case " $CFLAGS " in #(
13771 *" $flag "*) :
13772 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13773 (: CFLAGS already contains $flag) 2>&5
13774 ac_status=$?
13775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13776 test $ac_status = 0; } ;; #(
13777 *) :
13778
13779 as_fn_append CFLAGS " $flag"
13780 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13781 (: CFLAGS="$CFLAGS") 2>&5
13782 ac_status=$?
13783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13784 test $ac_status = 0; }
13785 ;;
13786 esac
13787
13788 else
13789
13790 CFLAGS=$flag
13791 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13792 (: CFLAGS="$CFLAGS") 2>&5
13793 ac_status=$?
13794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13795 test $ac_status = 0; }
13796
13797 fi
13798
13799 else
13800 :
13801 fi
13802
13803 done
13804
13805
13806
13807
13808
13809 for flag in -Wpointer-arith; do
13810 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13812 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13813 if eval \${$as_CACHEVAR+:} false; then :
13814 $as_echo_n "(cached) " >&6
13815 else
13816
13817 ax_check_save_flags=$CFLAGS
13818 CFLAGS="$CFLAGS $flag"
13819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13820 /* end confdefs.h. */
13821
13822 int
13823 main ()
13824 {
13825
13826 ;
13827 return 0;
13828 }
13829 _ACEOF
13830 if ac_fn_c_try_compile "$LINENO"; then :
13831 eval "$as_CACHEVAR=yes"
13832 else
13833 eval "$as_CACHEVAR=no"
13834 fi
13835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13836 CFLAGS=$ax_check_save_flags
13837 fi
13838 eval ac_res=\$$as_CACHEVAR
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13840 $as_echo "$ac_res" >&6; }
13841 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13842
13843 if ${CFLAGS+:} false; then :
13844
13845 case " $CFLAGS " in #(
13846 *" $flag "*) :
13847 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13848 (: CFLAGS already contains $flag) 2>&5
13849 ac_status=$?
13850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13851 test $ac_status = 0; } ;; #(
13852 *) :
13853
13854 as_fn_append CFLAGS " $flag"
13855 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13856 (: CFLAGS="$CFLAGS") 2>&5
13857 ac_status=$?
13858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13859 test $ac_status = 0; }
13860 ;;
13861 esac
13862
13863 else
13864
13865 CFLAGS=$flag
13866 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13867 (: CFLAGS="$CFLAGS") 2>&5
13868 ac_status=$?
13869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13870 test $ac_status = 0; }
13871
13872 fi
13873
13874 else
13875 :
13876 fi
13877
13878 done
13879
13880
13881
13882
13883
13884 for flag in -Wredundant-decls; do
13885 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13887 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13888 if eval \${$as_CACHEVAR+:} false; then :
13889 $as_echo_n "(cached) " >&6
13890 else
13891
13892 ax_check_save_flags=$CFLAGS
13893 CFLAGS="$CFLAGS $flag"
13894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13895 /* end confdefs.h. */
13896
13897 int
13898 main ()
13899 {
13900
13901 ;
13902 return 0;
13903 }
13904 _ACEOF
13905 if ac_fn_c_try_compile "$LINENO"; then :
13906 eval "$as_CACHEVAR=yes"
13907 else
13908 eval "$as_CACHEVAR=no"
13909 fi
13910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13911 CFLAGS=$ax_check_save_flags
13912 fi
13913 eval ac_res=\$$as_CACHEVAR
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13915 $as_echo "$ac_res" >&6; }
13916 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13917
13918 if ${CFLAGS+:} false; then :
13919
13920 case " $CFLAGS " in #(
13921 *" $flag "*) :
13922 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13923 (: CFLAGS already contains $flag) 2>&5
13924 ac_status=$?
13925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13926 test $ac_status = 0; } ;; #(
13927 *) :
13928
13929 as_fn_append CFLAGS " $flag"
13930 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13931 (: CFLAGS="$CFLAGS") 2>&5
13932 ac_status=$?
13933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13934 test $ac_status = 0; }
13935 ;;
13936 esac
13937
13938 else
13939
13940 CFLAGS=$flag
13941 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13942 (: CFLAGS="$CFLAGS") 2>&5
13943 ac_status=$?
13944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13945 test $ac_status = 0; }
13946
13947 fi
13948
13949 else
13950 :
13951 fi
13952
13953 done
13954
13955
13956
13957
13958
13959 for flag in -Wshadow; do
13960 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13962 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13963 if eval \${$as_CACHEVAR+:} false; then :
13964 $as_echo_n "(cached) " >&6
13965 else
13966
13967 ax_check_save_flags=$CFLAGS
13968 CFLAGS="$CFLAGS $flag"
13969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13970 /* end confdefs.h. */
13971
13972 int
13973 main ()
13974 {
13975
13976 ;
13977 return 0;
13978 }
13979 _ACEOF
13980 if ac_fn_c_try_compile "$LINENO"; then :
13981 eval "$as_CACHEVAR=yes"
13982 else
13983 eval "$as_CACHEVAR=no"
13984 fi
13985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13986 CFLAGS=$ax_check_save_flags
13987 fi
13988 eval ac_res=\$$as_CACHEVAR
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13990 $as_echo "$ac_res" >&6; }
13991 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13992
13993 if ${CFLAGS+:} false; then :
13994
13995 case " $CFLAGS " in #(
13996 *" $flag "*) :
13997 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13998 (: CFLAGS already contains $flag) 2>&5
13999 ac_status=$?
14000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14001 test $ac_status = 0; } ;; #(
14002 *) :
14003
14004 as_fn_append CFLAGS " $flag"
14005 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14006 (: CFLAGS="$CFLAGS") 2>&5
14007 ac_status=$?
14008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14009 test $ac_status = 0; }
14010 ;;
14011 esac
14012
14013 else
14014
14015 CFLAGS=$flag
14016 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14017 (: CFLAGS="$CFLAGS") 2>&5
14018 ac_status=$?
14019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14020 test $ac_status = 0; }
14021
14022 fi
14023
14024 else
14025 :
14026 fi
14027
14028 done
14029
14030
14031
14032
14033
14034 for flag in -Wsign-compare; do
14035 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14037 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14038 if eval \${$as_CACHEVAR+:} false; then :
14039 $as_echo_n "(cached) " >&6
14040 else
14041
14042 ax_check_save_flags=$CFLAGS
14043 CFLAGS="$CFLAGS $flag"
14044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14045 /* end confdefs.h. */
14046
14047 int
14048 main ()
14049 {
14050
14051 ;
14052 return 0;
14053 }
14054 _ACEOF
14055 if ac_fn_c_try_compile "$LINENO"; then :
14056 eval "$as_CACHEVAR=yes"
14057 else
14058 eval "$as_CACHEVAR=no"
14059 fi
14060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14061 CFLAGS=$ax_check_save_flags
14062 fi
14063 eval ac_res=\$$as_CACHEVAR
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14065 $as_echo "$ac_res" >&6; }
14066 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14067
14068 if ${CFLAGS+:} false; then :
14069
14070 case " $CFLAGS " in #(
14071 *" $flag "*) :
14072 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14073 (: CFLAGS already contains $flag) 2>&5
14074 ac_status=$?
14075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14076 test $ac_status = 0; } ;; #(
14077 *) :
14078
14079 as_fn_append CFLAGS " $flag"
14080 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14081 (: CFLAGS="$CFLAGS") 2>&5
14082 ac_status=$?
14083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14084 test $ac_status = 0; }
14085 ;;
14086 esac
14087
14088 else
14089
14090 CFLAGS=$flag
14091 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14092 (: CFLAGS="$CFLAGS") 2>&5
14093 ac_status=$?
14094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14095 test $ac_status = 0; }
14096
14097 fi
14098
14099 else
14100 :
14101 fi
14102
14103 done
14104
14105
14106
14107
14108
14109 for flag in -Wtype-limits; do
14110 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14112 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14113 if eval \${$as_CACHEVAR+:} false; then :
14114 $as_echo_n "(cached) " >&6
14115 else
14116
14117 ax_check_save_flags=$CFLAGS
14118 CFLAGS="$CFLAGS $flag"
14119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14120 /* end confdefs.h. */
14121
14122 int
14123 main ()
14124 {
14125
14126 ;
14127 return 0;
14128 }
14129 _ACEOF
14130 if ac_fn_c_try_compile "$LINENO"; then :
14131 eval "$as_CACHEVAR=yes"
14132 else
14133 eval "$as_CACHEVAR=no"
14134 fi
14135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14136 CFLAGS=$ax_check_save_flags
14137 fi
14138 eval ac_res=\$$as_CACHEVAR
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14140 $as_echo "$ac_res" >&6; }
14141 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14142
14143 if ${CFLAGS+:} false; then :
14144
14145 case " $CFLAGS " in #(
14146 *" $flag "*) :
14147 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14148 (: CFLAGS already contains $flag) 2>&5
14149 ac_status=$?
14150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14151 test $ac_status = 0; } ;; #(
14152 *) :
14153
14154 as_fn_append CFLAGS " $flag"
14155 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14156 (: CFLAGS="$CFLAGS") 2>&5
14157 ac_status=$?
14158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14159 test $ac_status = 0; }
14160 ;;
14161 esac
14162
14163 else
14164
14165 CFLAGS=$flag
14166 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14167 (: CFLAGS="$CFLAGS") 2>&5
14168 ac_status=$?
14169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14170 test $ac_status = 0; }
14171
14172 fi
14173
14174 else
14175 :
14176 fi
14177
14178 done
14179
14180
14181
14182
14183
14184 for flag in -Wundef; do
14185 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14187 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14188 if eval \${$as_CACHEVAR+:} false; then :
14189 $as_echo_n "(cached) " >&6
14190 else
14191
14192 ax_check_save_flags=$CFLAGS
14193 CFLAGS="$CFLAGS $flag"
14194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14195 /* end confdefs.h. */
14196
14197 int
14198 main ()
14199 {
14200
14201 ;
14202 return 0;
14203 }
14204 _ACEOF
14205 if ac_fn_c_try_compile "$LINENO"; then :
14206 eval "$as_CACHEVAR=yes"
14207 else
14208 eval "$as_CACHEVAR=no"
14209 fi
14210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14211 CFLAGS=$ax_check_save_flags
14212 fi
14213 eval ac_res=\$$as_CACHEVAR
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14215 $as_echo "$ac_res" >&6; }
14216 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14217
14218 if ${CFLAGS+:} false; then :
14219
14220 case " $CFLAGS " in #(
14221 *" $flag "*) :
14222 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14223 (: CFLAGS already contains $flag) 2>&5
14224 ac_status=$?
14225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14226 test $ac_status = 0; } ;; #(
14227 *) :
14228
14229 as_fn_append CFLAGS " $flag"
14230 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14231 (: CFLAGS="$CFLAGS") 2>&5
14232 ac_status=$?
14233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14234 test $ac_status = 0; }
14235 ;;
14236 esac
14237
14238 else
14239
14240 CFLAGS=$flag
14241 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14242 (: CFLAGS="$CFLAGS") 2>&5
14243 ac_status=$?
14244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14245 test $ac_status = 0; }
14246
14247 fi
14248
14249 else
14250 :
14251 fi
14252
14253 done
14254
14255
14256
14257
14258
14259 for flag in -Wuninitialized; do
14260 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14262 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14263 if eval \${$as_CACHEVAR+:} false; then :
14264 $as_echo_n "(cached) " >&6
14265 else
14266
14267 ax_check_save_flags=$CFLAGS
14268 CFLAGS="$CFLAGS $flag"
14269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14270 /* end confdefs.h. */
14271
14272 int
14273 main ()
14274 {
14275
14276 ;
14277 return 0;
14278 }
14279 _ACEOF
14280 if ac_fn_c_try_compile "$LINENO"; then :
14281 eval "$as_CACHEVAR=yes"
14282 else
14283 eval "$as_CACHEVAR=no"
14284 fi
14285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14286 CFLAGS=$ax_check_save_flags
14287 fi
14288 eval ac_res=\$$as_CACHEVAR
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14290 $as_echo "$ac_res" >&6; }
14291 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14292
14293 if ${CFLAGS+:} false; then :
14294
14295 case " $CFLAGS " in #(
14296 *" $flag "*) :
14297 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14298 (: CFLAGS already contains $flag) 2>&5
14299 ac_status=$?
14300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14301 test $ac_status = 0; } ;; #(
14302 *) :
14303
14304 as_fn_append CFLAGS " $flag"
14305 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14306 (: CFLAGS="$CFLAGS") 2>&5
14307 ac_status=$?
14308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14309 test $ac_status = 0; }
14310 ;;
14311 esac
14312
14313 else
14314
14315 CFLAGS=$flag
14316 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14317 (: CFLAGS="$CFLAGS") 2>&5
14318 ac_status=$?
14319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14320 test $ac_status = 0; }
14321
14322 fi
14323
14324 else
14325 :
14326 fi
14327
14328 done
14329
14330
14331
14332
14333
14334 for flag in -Wwrite-strings; do
14335 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14337 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14338 if eval \${$as_CACHEVAR+:} false; then :
14339 $as_echo_n "(cached) " >&6
14340 else
14341
14342 ax_check_save_flags=$CFLAGS
14343 CFLAGS="$CFLAGS $flag"
14344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14345 /* end confdefs.h. */
14346
14347 int
14348 main ()
14349 {
14350
14351 ;
14352 return 0;
14353 }
14354 _ACEOF
14355 if ac_fn_c_try_compile "$LINENO"; then :
14356 eval "$as_CACHEVAR=yes"
14357 else
14358 eval "$as_CACHEVAR=no"
14359 fi
14360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14361 CFLAGS=$ax_check_save_flags
14362 fi
14363 eval ac_res=\$$as_CACHEVAR
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14365 $as_echo "$ac_res" >&6; }
14366 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14367
14368 if ${CFLAGS+:} false; then :
14369
14370 case " $CFLAGS " in #(
14371 *" $flag "*) :
14372 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14373 (: CFLAGS already contains $flag) 2>&5
14374 ac_status=$?
14375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14376 test $ac_status = 0; } ;; #(
14377 *) :
14378
14379 as_fn_append CFLAGS " $flag"
14380 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14381 (: CFLAGS="$CFLAGS") 2>&5
14382 ac_status=$?
14383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14384 test $ac_status = 0; }
14385 ;;
14386 esac
14387
14388 else
14389
14390 CFLAGS=$flag
14391 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14392 (: CFLAGS="$CFLAGS") 2>&5
14393 ac_status=$?
14394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14395 test $ac_status = 0; }
14396
14397 fi
14398
14399 else
14400 :
14401 fi
14402
14403 done
14404
14405
14406 fi
14407
14408
14409 for ac_func in strlcpy strlcat
14410 do :
14411 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14412 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14413 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14414 cat >>confdefs.h <<_ACEOF
14415 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14416 _ACEOF
14417
14418 fi
14419 done
14420
14421
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14423 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14424 if ${ac_cv_c_bigendian+:} false; then :
14425 $as_echo_n "(cached) " >&6
14426 else
14427 ac_cv_c_bigendian=unknown
14428 # See if we're dealing with a universal compiler.
14429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14430 /* end confdefs.h. */
14431 #ifndef __APPLE_CC__
14432 not a universal capable compiler
14433 #endif
14434 typedef int dummy;
14435
14436 _ACEOF
14437 if ac_fn_c_try_compile "$LINENO"; then :
14438
14439 # Check for potential -arch flags. It is not universal unless
14440 # there are at least two -arch flags with different values.
14441 ac_arch=
14442 ac_prev=
14443 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14444 if test -n "$ac_prev"; then
14445 case $ac_word in
14446 i?86 | x86_64 | ppc | ppc64)
14447 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14448 ac_arch=$ac_word
14449 else
14450 ac_cv_c_bigendian=universal
14451 break
14452 fi
14453 ;;
14454 esac
14455 ac_prev=
14456 elif test "x$ac_word" = "x-arch"; then
14457 ac_prev=arch
14458 fi
14459 done
14460 fi
14461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14462 if test $ac_cv_c_bigendian = unknown; then
14463 # See if sys/param.h defines the BYTE_ORDER macro.
14464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14465 /* end confdefs.h. */
14466 #include <sys/types.h>
14467 #include <sys/param.h>
14468
14469 int
14470 main ()
14471 {
14472 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14473 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14474 && LITTLE_ENDIAN)
14475 bogus endian macros
14476 #endif
14477
14478 ;
14479 return 0;
14480 }
14481 _ACEOF
14482 if ac_fn_c_try_compile "$LINENO"; then :
14483 # It does; now see whether it defined to BIG_ENDIAN or not.
14484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14485 /* end confdefs.h. */
14486 #include <sys/types.h>
14487 #include <sys/param.h>
14488
14489 int
14490 main ()
14491 {
14492 #if BYTE_ORDER != BIG_ENDIAN
14493 not big endian
14494 #endif
14495
14496 ;
14497 return 0;
14498 }
14499 _ACEOF
14500 if ac_fn_c_try_compile "$LINENO"; then :
14501 ac_cv_c_bigendian=yes
14502 else
14503 ac_cv_c_bigendian=no
14504 fi
14505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14506 fi
14507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14508 fi
14509 if test $ac_cv_c_bigendian = unknown; then
14510 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14512 /* end confdefs.h. */
14513 #include <limits.h>
14514
14515 int
14516 main ()
14517 {
14518 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14519 bogus endian macros
14520 #endif
14521
14522 ;
14523 return 0;
14524 }
14525 _ACEOF
14526 if ac_fn_c_try_compile "$LINENO"; then :
14527 # It does; now see whether it defined to _BIG_ENDIAN or not.
14528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14529 /* end confdefs.h. */
14530 #include <limits.h>
14531
14532 int
14533 main ()
14534 {
14535 #ifndef _BIG_ENDIAN
14536 not big endian
14537 #endif
14538
14539 ;
14540 return 0;
14541 }
14542 _ACEOF
14543 if ac_fn_c_try_compile "$LINENO"; then :
14544 ac_cv_c_bigendian=yes
14545 else
14546 ac_cv_c_bigendian=no
14547 fi
14548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14549 fi
14550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14551 fi
14552 if test $ac_cv_c_bigendian = unknown; then
14553 # Compile a test program.
14554 if test "$cross_compiling" = yes; then :
14555 # Try to guess by grepping values from an object file.
14556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14557 /* end confdefs.h. */
14558 short int ascii_mm[] =
14559 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14560 short int ascii_ii[] =
14561 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14562 int use_ascii (int i) {
14563 return ascii_mm[i] + ascii_ii[i];
14564 }
14565 short int ebcdic_ii[] =
14566 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14567 short int ebcdic_mm[] =
14568 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14569 int use_ebcdic (int i) {
14570 return ebcdic_mm[i] + ebcdic_ii[i];
14571 }
14572 extern int foo;
14573
14574 int
14575 main ()
14576 {
14577 return use_ascii (foo) == use_ebcdic (foo);
14578 ;
14579 return 0;
14580 }
14581 _ACEOF
14582 if ac_fn_c_try_compile "$LINENO"; then :
14583 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14584 ac_cv_c_bigendian=yes
14585 fi
14586 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14587 if test "$ac_cv_c_bigendian" = unknown; then
14588 ac_cv_c_bigendian=no
14589 else
14590 # finding both strings is unlikely to happen, but who knows?
14591 ac_cv_c_bigendian=unknown
14592 fi
14593 fi
14594 fi
14595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14596 else
14597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14598 /* end confdefs.h. */
14599 $ac_includes_default
14600 int
14601 main ()
14602 {
14603
14604 /* Are we little or big endian? From Harbison&Steele. */
14605 union
14606 {
14607 long int l;
14608 char c[sizeof (long int)];
14609 } u;
14610 u.l = 1;
14611 return u.c[sizeof (long int) - 1] == 1;
14612
14613 ;
14614 return 0;
14615 }
14616 _ACEOF
14617 if ac_fn_c_try_run "$LINENO"; then :
14618 ac_cv_c_bigendian=no
14619 else
14620 ac_cv_c_bigendian=yes
14621 fi
14622 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14623 conftest.$ac_objext conftest.beam conftest.$ac_ext
14624 fi
14625
14626 fi
14627 fi
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14629 $as_echo "$ac_cv_c_bigendian" >&6; }
14630 case $ac_cv_c_bigendian in #(
14631 yes)
14632 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14633 ;; #(
14634 no)
14635 ;; #(
14636 universal)
14637
14638 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14639
14640 ;; #(
14641 *)
14642 as_fn_error $? "unknown endianness
14643 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14644 esac
14645
14646
14647 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/libopm/Makefile src/libopm/src/Makefile"
14648
14649 cat >confcache <<\_ACEOF
14650 # This file is a shell script that caches the results of configure
14651 # tests run on this system so they can be shared between configure
14652 # scripts and configure runs, see configure's option --config-cache.
14653 # It is not useful on other systems. If it contains results you don't
14654 # want to keep, you may remove or edit it.
14655 #
14656 # config.status only pays attention to the cache file if you give it
14657 # the --recheck option to rerun configure.
14658 #
14659 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14660 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14661 # following values.
14662
14663 _ACEOF
14664
14665 # The following way of writing the cache mishandles newlines in values,
14666 # but we know of no workaround that is simple, portable, and efficient.
14667 # So, we kill variables containing newlines.
14668 # Ultrix sh set writes to stderr and can't be redirected directly,
14669 # and sets the high bit in the cache file unless we assign to the vars.
14670 (
14671 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14672 eval ac_val=\$$ac_var
14673 case $ac_val in #(
14674 *${as_nl}*)
14675 case $ac_var in #(
14676 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14677 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14678 esac
14679 case $ac_var in #(
14680 _ | IFS | as_nl) ;; #(
14681 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14682 *) { eval $ac_var=; unset $ac_var;} ;;
14683 esac ;;
14684 esac
14685 done
14686
14687 (set) 2>&1 |
14688 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14689 *${as_nl}ac_space=\ *)
14690 # `set' does not quote correctly, so add quotes: double-quote
14691 # substitution turns \\\\ into \\, and sed turns \\ into \.
14692 sed -n \
14693 "s/'/'\\\\''/g;
14694 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14695 ;; #(
14696 *)
14697 # `set' quotes correctly as required by POSIX, so do not add quotes.
14698 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14699 ;;
14700 esac |
14701 sort
14702 ) |
14703 sed '
14704 /^ac_cv_env_/b end
14705 t clear
14706 :clear
14707 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14708 t end
14709 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14710 :end' >>confcache
14711 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14712 if test -w "$cache_file"; then
14713 if test "x$cache_file" != "x/dev/null"; then
14714 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14715 $as_echo "$as_me: updating cache $cache_file" >&6;}
14716 if test ! -f "$cache_file" || test -h "$cache_file"; then
14717 cat confcache >"$cache_file"
14718 else
14719 case $cache_file in #(
14720 */* | ?:*)
14721 mv -f confcache "$cache_file"$$ &&
14722 mv -f "$cache_file"$$ "$cache_file" ;; #(
14723 *)
14724 mv -f confcache "$cache_file" ;;
14725 esac
14726 fi
14727 fi
14728 else
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14730 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14731 fi
14732 fi
14733 rm -f confcache
14734
14735 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14736 # Let make expand exec_prefix.
14737 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14738
14739 DEFS=-DHAVE_CONFIG_H
14740
14741 ac_libobjs=
14742 ac_ltlibobjs=
14743 U=
14744 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14745 # 1. Remove the extension, and $U if already installed.
14746 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14747 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14748 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14749 # will be set to the directory where LIBOBJS objects are built.
14750 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14751 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14752 done
14753 LIBOBJS=$ac_libobjs
14754
14755 LTLIBOBJS=$ac_ltlibobjs
14756
14757
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14759 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14760 if test -n "$am_sleep_pid"; then
14761 # Hide warnings about reused PIDs.
14762 wait $am_sleep_pid 2>/dev/null
14763 fi
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14765 $as_echo "done" >&6; }
14766 if test -n "$EXEEXT"; then
14767 am__EXEEXT_TRUE=
14768 am__EXEEXT_FALSE='#'
14769 else
14770 am__EXEEXT_TRUE='#'
14771 am__EXEEXT_FALSE=
14772 fi
14773
14774 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14775 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14776 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14777 fi
14778 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14779 as_fn_error $? "conditional \"AMDEP\" was never defined.
14780 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14781 fi
14782 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14783 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14784 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14785 fi
14786
14787
14788 : "${CONFIG_STATUS=./config.status}"
14789 ac_write_fail=0
14790 ac_clean_files_save=$ac_clean_files
14791 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14793 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14794 as_write_fail=0
14795 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14796 #! $SHELL
14797 # Generated by $as_me.
14798 # Run this file to recreate the current configuration.
14799 # Compiler output produced by configure, useful for debugging
14800 # configure, is in config.log if it exists.
14801
14802 debug=false
14803 ac_cs_recheck=false
14804 ac_cs_silent=false
14805
14806 SHELL=\${CONFIG_SHELL-$SHELL}
14807 export SHELL
14808 _ASEOF
14809 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14810 ## -------------------- ##
14811 ## M4sh Initialization. ##
14812 ## -------------------- ##
14813
14814 # Be more Bourne compatible
14815 DUALCASE=1; export DUALCASE # for MKS sh
14816 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14817 emulate sh
14818 NULLCMD=:
14819 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14820 # is contrary to our usage. Disable this feature.
14821 alias -g '${1+"$@"}'='"$@"'
14822 setopt NO_GLOB_SUBST
14823 else
14824 case `(set -o) 2>/dev/null` in #(
14825 *posix*) :
14826 set -o posix ;; #(
14827 *) :
14828 ;;
14829 esac
14830 fi
14831
14832
14833 as_nl='
14834 '
14835 export as_nl
14836 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14837 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14838 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14839 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14840 # Prefer a ksh shell builtin over an external printf program on Solaris,
14841 # but without wasting forks for bash or zsh.
14842 if test -z "$BASH_VERSION$ZSH_VERSION" \
14843 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14844 as_echo='print -r --'
14845 as_echo_n='print -rn --'
14846 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14847 as_echo='printf %s\n'
14848 as_echo_n='printf %s'
14849 else
14850 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14851 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14852 as_echo_n='/usr/ucb/echo -n'
14853 else
14854 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14855 as_echo_n_body='eval
14856 arg=$1;
14857 case $arg in #(
14858 *"$as_nl"*)
14859 expr "X$arg" : "X\\(.*\\)$as_nl";
14860 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14861 esac;
14862 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14863 '
14864 export as_echo_n_body
14865 as_echo_n='sh -c $as_echo_n_body as_echo'
14866 fi
14867 export as_echo_body
14868 as_echo='sh -c $as_echo_body as_echo'
14869 fi
14870
14871 # The user is always right.
14872 if test "${PATH_SEPARATOR+set}" != set; then
14873 PATH_SEPARATOR=:
14874 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14875 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14876 PATH_SEPARATOR=';'
14877 }
14878 fi
14879
14880
14881 # IFS
14882 # We need space, tab and new line, in precisely that order. Quoting is
14883 # there to prevent editors from complaining about space-tab.
14884 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14885 # splitting by setting IFS to empty value.)
14886 IFS=" "" $as_nl"
14887
14888 # Find who we are. Look in the path if we contain no directory separator.
14889 as_myself=
14890 case $0 in #((
14891 *[\\/]* ) as_myself=$0 ;;
14892 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14893 for as_dir in $PATH
14894 do
14895 IFS=$as_save_IFS
14896 test -z "$as_dir" && as_dir=.
14897 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14898 done
14899 IFS=$as_save_IFS
14900
14901 ;;
14902 esac
14903 # We did not find ourselves, most probably we were run as `sh COMMAND'
14904 # in which case we are not to be found in the path.
14905 if test "x$as_myself" = x; then
14906 as_myself=$0
14907 fi
14908 if test ! -f "$as_myself"; then
14909 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14910 exit 1
14911 fi
14912
14913 # Unset variables that we do not need and which cause bugs (e.g. in
14914 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14915 # suppresses any "Segmentation fault" message there. '((' could
14916 # trigger a bug in pdksh 5.2.14.
14917 for as_var in BASH_ENV ENV MAIL MAILPATH
14918 do eval test x\${$as_var+set} = xset \
14919 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14920 done
14921 PS1='$ '
14922 PS2='> '
14923 PS4='+ '
14924
14925 # NLS nuisances.
14926 LC_ALL=C
14927 export LC_ALL
14928 LANGUAGE=C
14929 export LANGUAGE
14930
14931 # CDPATH.
14932 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14933
14934
14935 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14936 # ----------------------------------------
14937 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14938 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14939 # script with STATUS, using 1 if that was 0.
14940 as_fn_error ()
14941 {
14942 as_status=$1; test $as_status -eq 0 && as_status=1
14943 if test "$4"; then
14944 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14945 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14946 fi
14947 $as_echo "$as_me: error: $2" >&2
14948 as_fn_exit $as_status
14949 } # as_fn_error
14950
14951
14952 # as_fn_set_status STATUS
14953 # -----------------------
14954 # Set $? to STATUS, without forking.
14955 as_fn_set_status ()
14956 {
14957 return $1
14958 } # as_fn_set_status
14959
14960 # as_fn_exit STATUS
14961 # -----------------
14962 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14963 as_fn_exit ()
14964 {
14965 set +e
14966 as_fn_set_status $1
14967 exit $1
14968 } # as_fn_exit
14969
14970 # as_fn_unset VAR
14971 # ---------------
14972 # Portably unset VAR.
14973 as_fn_unset ()
14974 {
14975 { eval $1=; unset $1;}
14976 }
14977 as_unset=as_fn_unset
14978 # as_fn_append VAR VALUE
14979 # ----------------------
14980 # Append the text in VALUE to the end of the definition contained in VAR. Take
14981 # advantage of any shell optimizations that allow amortized linear growth over
14982 # repeated appends, instead of the typical quadratic growth present in naive
14983 # implementations.
14984 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14985 eval 'as_fn_append ()
14986 {
14987 eval $1+=\$2
14988 }'
14989 else
14990 as_fn_append ()
14991 {
14992 eval $1=\$$1\$2
14993 }
14994 fi # as_fn_append
14995
14996 # as_fn_arith ARG...
14997 # ------------------
14998 # Perform arithmetic evaluation on the ARGs, and store the result in the
14999 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15000 # must be portable across $(()) and expr.
15001 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15002 eval 'as_fn_arith ()
15003 {
15004 as_val=$(( $* ))
15005 }'
15006 else
15007 as_fn_arith ()
15008 {
15009 as_val=`expr "$@" || test $? -eq 1`
15010 }
15011 fi # as_fn_arith
15012
15013
15014 if expr a : '\(a\)' >/dev/null 2>&1 &&
15015 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15016 as_expr=expr
15017 else
15018 as_expr=false
15019 fi
15020
15021 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15022 as_basename=basename
15023 else
15024 as_basename=false
15025 fi
15026
15027 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15028 as_dirname=dirname
15029 else
15030 as_dirname=false
15031 fi
15032
15033 as_me=`$as_basename -- "$0" ||
15034 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15035 X"$0" : 'X\(//\)$' \| \
15036 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15037 $as_echo X/"$0" |
15038 sed '/^.*\/\([^/][^/]*\)\/*$/{
15039 s//\1/
15040 q
15041 }
15042 /^X\/\(\/\/\)$/{
15043 s//\1/
15044 q
15045 }
15046 /^X\/\(\/\).*/{
15047 s//\1/
15048 q
15049 }
15050 s/.*/./; q'`
15051
15052 # Avoid depending upon Character Ranges.
15053 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15054 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15055 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15056 as_cr_digits='0123456789'
15057 as_cr_alnum=$as_cr_Letters$as_cr_digits
15058
15059 ECHO_C= ECHO_N= ECHO_T=
15060 case `echo -n x` in #(((((
15061 -n*)
15062 case `echo 'xy\c'` in
15063 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15064 xy) ECHO_C='\c';;
15065 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15066 ECHO_T=' ';;
15067 esac;;
15068 *)
15069 ECHO_N='-n';;
15070 esac
15071
15072 rm -f conf$$ conf$$.exe conf$$.file
15073 if test -d conf$$.dir; then
15074 rm -f conf$$.dir/conf$$.file
15075 else
15076 rm -f conf$$.dir
15077 mkdir conf$$.dir 2>/dev/null
15078 fi
15079 if (echo >conf$$.file) 2>/dev/null; then
15080 if ln -s conf$$.file conf$$ 2>/dev/null; then
15081 as_ln_s='ln -s'
15082 # ... but there are two gotchas:
15083 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15084 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15085 # In both cases, we have to default to `cp -pR'.
15086 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15087 as_ln_s='cp -pR'
15088 elif ln conf$$.file conf$$ 2>/dev/null; then
15089 as_ln_s=ln
15090 else
15091 as_ln_s='cp -pR'
15092 fi
15093 else
15094 as_ln_s='cp -pR'
15095 fi
15096 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15097 rmdir conf$$.dir 2>/dev/null
15098
15099
15100 # as_fn_mkdir_p
15101 # -------------
15102 # Create "$as_dir" as a directory, including parents if necessary.
15103 as_fn_mkdir_p ()
15104 {
15105
15106 case $as_dir in #(
15107 -*) as_dir=./$as_dir;;
15108 esac
15109 test -d "$as_dir" || eval $as_mkdir_p || {
15110 as_dirs=
15111 while :; do
15112 case $as_dir in #(
15113 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15114 *) as_qdir=$as_dir;;
15115 esac
15116 as_dirs="'$as_qdir' $as_dirs"
15117 as_dir=`$as_dirname -- "$as_dir" ||
15118 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15119 X"$as_dir" : 'X\(//\)[^/]' \| \
15120 X"$as_dir" : 'X\(//\)$' \| \
15121 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15122 $as_echo X"$as_dir" |
15123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15124 s//\1/
15125 q
15126 }
15127 /^X\(\/\/\)[^/].*/{
15128 s//\1/
15129 q
15130 }
15131 /^X\(\/\/\)$/{
15132 s//\1/
15133 q
15134 }
15135 /^X\(\/\).*/{
15136 s//\1/
15137 q
15138 }
15139 s/.*/./; q'`
15140 test -d "$as_dir" && break
15141 done
15142 test -z "$as_dirs" || eval "mkdir $as_dirs"
15143 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15144
15145
15146 } # as_fn_mkdir_p
15147 if mkdir -p . 2>/dev/null; then
15148 as_mkdir_p='mkdir -p "$as_dir"'
15149 else
15150 test -d ./-p && rmdir ./-p
15151 as_mkdir_p=false
15152 fi
15153
15154
15155 # as_fn_executable_p FILE
15156 # -----------------------
15157 # Test if FILE is an executable regular file.
15158 as_fn_executable_p ()
15159 {
15160 test -f "$1" && test -x "$1"
15161 } # as_fn_executable_p
15162 as_test_x='test -x'
15163 as_executable_p=as_fn_executable_p
15164
15165 # Sed expression to map a string onto a valid CPP name.
15166 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15167
15168 # Sed expression to map a string onto a valid variable name.
15169 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15170
15171
15172 exec 6>&1
15173 ## ----------------------------------- ##
15174 ## Main body of $CONFIG_STATUS script. ##
15175 ## ----------------------------------- ##
15176 _ASEOF
15177 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15178
15179 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15180 # Save the log message, to keep $0 and so on meaningful, and to
15181 # report actual input values of CONFIG_FILES etc. instead of their
15182 # values after options handling.
15183 ac_log="
15184 This file was extended by hopm $as_me TRUNK, which was
15185 generated by GNU Autoconf 2.69. Invocation command line was
15186
15187 CONFIG_FILES = $CONFIG_FILES
15188 CONFIG_HEADERS = $CONFIG_HEADERS
15189 CONFIG_LINKS = $CONFIG_LINKS
15190 CONFIG_COMMANDS = $CONFIG_COMMANDS
15191 $ $0 $@
15192
15193 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15194 "
15195
15196 _ACEOF
15197
15198 case $ac_config_files in *"
15199 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15200 esac
15201
15202 case $ac_config_headers in *"
15203 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15204 esac
15205
15206
15207 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15208 # Files that config.status was made for.
15209 config_files="$ac_config_files"
15210 config_headers="$ac_config_headers"
15211 config_commands="$ac_config_commands"
15212
15213 _ACEOF
15214
15215 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15216 ac_cs_usage="\
15217 \`$as_me' instantiates files and other configuration actions
15218 from templates according to the current configuration. Unless the files
15219 and actions are specified as TAGs, all are instantiated by default.
15220
15221 Usage: $0 [OPTION]... [TAG]...
15222
15223 -h, --help print this help, then exit
15224 -V, --version print version number and configuration settings, then exit
15225 --config print configuration, then exit
15226 -q, --quiet, --silent
15227 do not print progress messages
15228 -d, --debug don't remove temporary files
15229 --recheck update $as_me by reconfiguring in the same conditions
15230 --file=FILE[:TEMPLATE]
15231 instantiate the configuration file FILE
15232 --header=FILE[:TEMPLATE]
15233 instantiate the configuration header FILE
15234
15235 Configuration files:
15236 $config_files
15237
15238 Configuration headers:
15239 $config_headers
15240
15241 Configuration commands:
15242 $config_commands
15243
15244 Report bugs to <bugs@ircd-hybrid.org>."
15245
15246 _ACEOF
15247 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15248 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15249 ac_cs_version="\\
15250 hopm config.status TRUNK
15251 configured by $0, generated by GNU Autoconf 2.69,
15252 with options \\"\$ac_cs_config\\"
15253
15254 Copyright (C) 2012 Free Software Foundation, Inc.
15255 This config.status script is free software; the Free Software Foundation
15256 gives unlimited permission to copy, distribute and modify it."
15257
15258 ac_pwd='$ac_pwd'
15259 srcdir='$srcdir'
15260 INSTALL='$INSTALL'
15261 MKDIR_P='$MKDIR_P'
15262 AWK='$AWK'
15263 test -n "\$AWK" || AWK=awk
15264 _ACEOF
15265
15266 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15267 # The default lists apply if the user does not specify any file.
15268 ac_need_defaults=:
15269 while test $# != 0
15270 do
15271 case $1 in
15272 --*=?*)
15273 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15274 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15275 ac_shift=:
15276 ;;
15277 --*=)
15278 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15279 ac_optarg=
15280 ac_shift=:
15281 ;;
15282 *)
15283 ac_option=$1
15284 ac_optarg=$2
15285 ac_shift=shift
15286 ;;
15287 esac
15288
15289 case $ac_option in
15290 # Handling of the options.
15291 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15292 ac_cs_recheck=: ;;
15293 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15294 $as_echo "$ac_cs_version"; exit ;;
15295 --config | --confi | --conf | --con | --co | --c )
15296 $as_echo "$ac_cs_config"; exit ;;
15297 --debug | --debu | --deb | --de | --d | -d )
15298 debug=: ;;
15299 --file | --fil | --fi | --f )
15300 $ac_shift
15301 case $ac_optarg in
15302 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15303 '') as_fn_error $? "missing file argument" ;;
15304 esac
15305 as_fn_append CONFIG_FILES " '$ac_optarg'"
15306 ac_need_defaults=false;;
15307 --header | --heade | --head | --hea )
15308 $ac_shift
15309 case $ac_optarg in
15310 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15311 esac
15312 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15313 ac_need_defaults=false;;
15314 --he | --h)
15315 # Conflict between --help and --header
15316 as_fn_error $? "ambiguous option: \`$1'
15317 Try \`$0 --help' for more information.";;
15318 --help | --hel | -h )
15319 $as_echo "$ac_cs_usage"; exit ;;
15320 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15321 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15322 ac_cs_silent=: ;;
15323
15324 # This is an error.
15325 -*) as_fn_error $? "unrecognized option: \`$1'
15326 Try \`$0 --help' for more information." ;;
15327
15328 *) as_fn_append ac_config_targets " $1"
15329 ac_need_defaults=false ;;
15330
15331 esac
15332 shift
15333 done
15334
15335 ac_configure_extra_args=
15336
15337 if $ac_cs_silent; then
15338 exec 6>/dev/null
15339 ac_configure_extra_args="$ac_configure_extra_args --silent"
15340 fi
15341
15342 _ACEOF
15343 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15344 if \$ac_cs_recheck; then
15345 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15346 shift
15347 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15348 CONFIG_SHELL='$SHELL'
15349 export CONFIG_SHELL
15350 exec "\$@"
15351 fi
15352
15353 _ACEOF
15354 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15355 exec 5>>config.log
15356 {
15357 echo
15358 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15359 ## Running $as_me. ##
15360 _ASBOX
15361 $as_echo "$ac_log"
15362 } >&5
15363
15364 _ACEOF
15365 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15366 #
15367 # INIT-COMMANDS
15368 #
15369 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15370
15371
15372 # The HP-UX ksh and POSIX shell print the target directory to stdout
15373 # if CDPATH is set.
15374 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15375
15376 sed_quote_subst='$sed_quote_subst'
15377 double_quote_subst='$double_quote_subst'
15378 delay_variable_subst='$delay_variable_subst'
15379 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15380 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15381 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15382 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15383 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15384 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15385 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
15386 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15387 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15388 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15389 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15390 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15391 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15392 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15393 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15394 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15395 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15396 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15397 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15398 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15399 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15400 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15401 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15402 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15403 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15404 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15405 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15406 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15407 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15408 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15409 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15410 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15411 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15412 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15413 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15414 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15415 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15416 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15417 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15418 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15419 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15420 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15421 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15422 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15423 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15424 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15425 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15426 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15427 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15428 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15429 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15430 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15431 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15432 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15433 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15434 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15435 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
15436 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15437 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"`'
15438 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
15439 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15440 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15441 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
15442 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15443 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15444 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15445 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15446 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15447 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15448 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15449 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15450 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15451 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15452 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15453 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15454 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15455 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15456 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15457 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15458 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15459 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15460 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15461 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15462 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15463 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15464 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15465 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15466 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15467 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15468 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15469 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15470 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15471 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15472 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15473 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15474 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15475 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15476 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15477 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15478 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15479 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15480 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15481 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15482 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15483 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15484 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15485 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15486 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15487 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15488 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15489 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15490 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15491 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15492 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15493 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15494 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15495 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15496 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15497 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15498 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15499 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15500 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15501 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15502 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15503 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15504 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15505 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15506 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
15507 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
15508 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15509 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15510 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15511 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15512 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15513 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15514
15515 LTCC='$LTCC'
15516 LTCFLAGS='$LTCFLAGS'
15517 compiler='$compiler_DEFAULT'
15518
15519 # A function that is used when there is no print builtin or printf.
15520 func_fallback_echo ()
15521 {
15522 eval 'cat <<_LTECHO_EOF
15523 \$1
15524 _LTECHO_EOF'
15525 }
15526
15527 # Quote evaled strings.
15528 for var in SHELL \
15529 ECHO \
15530 PATH_SEPARATOR \
15531 SED \
15532 GREP \
15533 EGREP \
15534 FGREP \
15535 LD \
15536 NM \
15537 LN_S \
15538 lt_SP2NL \
15539 lt_NL2SP \
15540 reload_flag \
15541 OBJDUMP \
15542 deplibs_check_method \
15543 file_magic_cmd \
15544 file_magic_glob \
15545 want_nocaseglob \
15546 DLLTOOL \
15547 sharedlib_from_linklib_cmd \
15548 AR \
15549 AR_FLAGS \
15550 archiver_list_spec \
15551 STRIP \
15552 RANLIB \
15553 CC \
15554 CFLAGS \
15555 compiler \
15556 lt_cv_sys_global_symbol_pipe \
15557 lt_cv_sys_global_symbol_to_cdecl \
15558 lt_cv_sys_global_symbol_to_import \
15559 lt_cv_sys_global_symbol_to_c_name_address \
15560 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15561 lt_cv_nm_interface \
15562 nm_file_list_spec \
15563 lt_cv_truncate_bin \
15564 lt_prog_compiler_no_builtin_flag \
15565 lt_prog_compiler_pic \
15566 lt_prog_compiler_wl \
15567 lt_prog_compiler_static \
15568 lt_cv_prog_compiler_c_o \
15569 need_locks \
15570 MANIFEST_TOOL \
15571 DSYMUTIL \
15572 NMEDIT \
15573 LIPO \
15574 OTOOL \
15575 OTOOL64 \
15576 shrext_cmds \
15577 export_dynamic_flag_spec \
15578 whole_archive_flag_spec \
15579 compiler_needs_object \
15580 with_gnu_ld \
15581 allow_undefined_flag \
15582 no_undefined_flag \
15583 hardcode_libdir_flag_spec \
15584 hardcode_libdir_separator \
15585 exclude_expsyms \
15586 include_expsyms \
15587 file_list_spec \
15588 variables_saved_for_relink \
15589 libname_spec \
15590 library_names_spec \
15591 soname_spec \
15592 install_override_mode \
15593 finish_eval \
15594 old_striplib \
15595 striplib; do
15596 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15597 *[\\\\\\\`\\"\\\$]*)
15598 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15599 ;;
15600 *)
15601 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15602 ;;
15603 esac
15604 done
15605
15606 # Double-quote double-evaled strings.
15607 for var in reload_cmds \
15608 old_postinstall_cmds \
15609 old_postuninstall_cmds \
15610 old_archive_cmds \
15611 extract_expsyms_cmds \
15612 old_archive_from_new_cmds \
15613 old_archive_from_expsyms_cmds \
15614 archive_cmds \
15615 archive_expsym_cmds \
15616 module_cmds \
15617 module_expsym_cmds \
15618 export_symbols_cmds \
15619 prelink_cmds \
15620 postlink_cmds \
15621 postinstall_cmds \
15622 postuninstall_cmds \
15623 finish_cmds \
15624 sys_lib_search_path_spec \
15625 configure_time_dlsearch_path \
15626 configure_time_lt_sys_library_path; do
15627 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15628 *[\\\\\\\`\\"\\\$]*)
15629 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15630 ;;
15631 *)
15632 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15633 ;;
15634 esac
15635 done
15636
15637 ac_aux_dir='$ac_aux_dir'
15638
15639 # See if we are running on zsh, and set the options that allow our
15640 # commands through without removal of \ escapes INIT.
15641 if test -n "\${ZSH_VERSION+set}"; then
15642 setopt NO_GLOB_SUBST
15643 fi
15644
15645
15646 PACKAGE='$PACKAGE'
15647 VERSION='$VERSION'
15648 RM='$RM'
15649 ofile='$ofile'
15650
15651
15652
15653
15654 _ACEOF
15655
15656 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15657
15658 # Handling of arguments.
15659 for ac_config_target in $ac_config_targets
15660 do
15661 case $ac_config_target in
15662 "src/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS src/setup.h" ;;
15663 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15664 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15665 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15666 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15667 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15668 "src/libopm/Makefile") CONFIG_FILES="$CONFIG_FILES src/libopm/Makefile" ;;
15669 "src/libopm/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/libopm/src/Makefile" ;;
15670
15671 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15672 esac
15673 done
15674
15675
15676 # If the user did not use the arguments to specify the items to instantiate,
15677 # then the envvar interface is used. Set only those that are not.
15678 # We use the long form for the default assignment because of an extremely
15679 # bizarre bug on SunOS 4.1.3.
15680 if $ac_need_defaults; then
15681 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15682 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15683 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15684 fi
15685
15686 # Have a temporary directory for convenience. Make it in the build tree
15687 # simply because there is no reason against having it here, and in addition,
15688 # creating and moving files from /tmp can sometimes cause problems.
15689 # Hook for its removal unless debugging.
15690 # Note that there is a small window in which the directory will not be cleaned:
15691 # after its creation but before its name has been assigned to `$tmp'.
15692 $debug ||
15693 {
15694 tmp= ac_tmp=
15695 trap 'exit_status=$?
15696 : "${ac_tmp:=$tmp}"
15697 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15698 ' 0
15699 trap 'as_fn_exit 1' 1 2 13 15
15700 }
15701 # Create a (secure) tmp directory for tmp files.
15702
15703 {
15704 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15705 test -d "$tmp"
15706 } ||
15707 {
15708 tmp=./conf$$-$RANDOM
15709 (umask 077 && mkdir "$tmp")
15710 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15711 ac_tmp=$tmp
15712
15713 # Set up the scripts for CONFIG_FILES section.
15714 # No need to generate them if there are no CONFIG_FILES.
15715 # This happens for instance with `./config.status config.h'.
15716 if test -n "$CONFIG_FILES"; then
15717
15718
15719 ac_cr=`echo X | tr X '\015'`
15720 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15721 # But we know of no other shell where ac_cr would be empty at this
15722 # point, so we can use a bashism as a fallback.
15723 if test "x$ac_cr" = x; then
15724 eval ac_cr=\$\'\\r\'
15725 fi
15726 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15727 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15728 ac_cs_awk_cr='\\r'
15729 else
15730 ac_cs_awk_cr=$ac_cr
15731 fi
15732
15733 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15734 _ACEOF
15735
15736
15737 {
15738 echo "cat >conf$$subs.awk <<_ACEOF" &&
15739 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15740 echo "_ACEOF"
15741 } >conf$$subs.sh ||
15742 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15743 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15744 ac_delim='%!_!# '
15745 for ac_last_try in false false false false false :; do
15746 . ./conf$$subs.sh ||
15747 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15748
15749 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15750 if test $ac_delim_n = $ac_delim_num; then
15751 break
15752 elif $ac_last_try; then
15753 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15754 else
15755 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15756 fi
15757 done
15758 rm -f conf$$subs.sh
15759
15760 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15761 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15762 _ACEOF
15763 sed -n '
15764 h
15765 s/^/S["/; s/!.*/"]=/
15766 p
15767 g
15768 s/^[^!]*!//
15769 :repl
15770 t repl
15771 s/'"$ac_delim"'$//
15772 t delim
15773 :nl
15774 h
15775 s/\(.\{148\}\)..*/\1/
15776 t more1
15777 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15778 p
15779 n
15780 b repl
15781 :more1
15782 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15783 p
15784 g
15785 s/.\{148\}//
15786 t nl
15787 :delim
15788 h
15789 s/\(.\{148\}\)..*/\1/
15790 t more2
15791 s/["\\]/\\&/g; s/^/"/; s/$/"/
15792 p
15793 b
15794 :more2
15795 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15796 p
15797 g
15798 s/.\{148\}//
15799 t delim
15800 ' <conf$$subs.awk | sed '
15801 /^[^""]/{
15802 N
15803 s/\n//
15804 }
15805 ' >>$CONFIG_STATUS || ac_write_fail=1
15806 rm -f conf$$subs.awk
15807 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15808 _ACAWK
15809 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15810 for (key in S) S_is_set[key] = 1
15811 FS = ""
15812
15813 }
15814 {
15815 line = $ 0
15816 nfields = split(line, field, "@")
15817 substed = 0
15818 len = length(field[1])
15819 for (i = 2; i < nfields; i++) {
15820 key = field[i]
15821 keylen = length(key)
15822 if (S_is_set[key]) {
15823 value = S[key]
15824 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15825 len += length(value) + length(field[++i])
15826 substed = 1
15827 } else
15828 len += 1 + keylen
15829 }
15830
15831 print line
15832 }
15833
15834 _ACAWK
15835 _ACEOF
15836 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15837 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15838 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15839 else
15840 cat
15841 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15842 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15843 _ACEOF
15844
15845 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15846 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15847 # trailing colons and then remove the whole line if VPATH becomes empty
15848 # (actually we leave an empty line to preserve line numbers).
15849 if test "x$srcdir" = x.; then
15850 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15851 h
15852 s///
15853 s/^/:/
15854 s/[ ]*$/:/
15855 s/:\$(srcdir):/:/g
15856 s/:\${srcdir}:/:/g
15857 s/:@srcdir@:/:/g
15858 s/^:*//
15859 s/:*$//
15860 x
15861 s/\(=[ ]*\).*/\1/
15862 G
15863 s/\n//
15864 s/^[^=]*=[ ]*$//
15865 }'
15866 fi
15867
15868 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15869 fi # test -n "$CONFIG_FILES"
15870
15871 # Set up the scripts for CONFIG_HEADERS section.
15872 # No need to generate them if there are no CONFIG_HEADERS.
15873 # This happens for instance with `./config.status Makefile'.
15874 if test -n "$CONFIG_HEADERS"; then
15875 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15876 BEGIN {
15877 _ACEOF
15878
15879 # Transform confdefs.h into an awk script `defines.awk', embedded as
15880 # here-document in config.status, that substitutes the proper values into
15881 # config.h.in to produce config.h.
15882
15883 # Create a delimiter string that does not exist in confdefs.h, to ease
15884 # handling of long lines.
15885 ac_delim='%!_!# '
15886 for ac_last_try in false false :; do
15887 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15888 if test -z "$ac_tt"; then
15889 break
15890 elif $ac_last_try; then
15891 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15892 else
15893 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15894 fi
15895 done
15896
15897 # For the awk script, D is an array of macro values keyed by name,
15898 # likewise P contains macro parameters if any. Preserve backslash
15899 # newline sequences.
15900
15901 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15902 sed -n '
15903 s/.\{148\}/&'"$ac_delim"'/g
15904 t rset
15905 :rset
15906 s/^[ ]*#[ ]*define[ ][ ]*/ /
15907 t def
15908 d
15909 :def
15910 s/\\$//
15911 t bsnl
15912 s/["\\]/\\&/g
15913 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15914 D["\1"]=" \3"/p
15915 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15916 d
15917 :bsnl
15918 s/["\\]/\\&/g
15919 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15920 D["\1"]=" \3\\\\\\n"\\/p
15921 t cont
15922 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15923 t cont
15924 d
15925 :cont
15926 n
15927 s/.\{148\}/&'"$ac_delim"'/g
15928 t clear
15929 :clear
15930 s/\\$//
15931 t bsnlc
15932 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15933 d
15934 :bsnlc
15935 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15936 b cont
15937 ' <confdefs.h | sed '
15938 s/'"$ac_delim"'/"\\\
15939 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15940
15941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15942 for (key in D) D_is_set[key] = 1
15943 FS = ""
15944 }
15945 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15946 line = \$ 0
15947 split(line, arg, " ")
15948 if (arg[1] == "#") {
15949 defundef = arg[2]
15950 mac1 = arg[3]
15951 } else {
15952 defundef = substr(arg[1], 2)
15953 mac1 = arg[2]
15954 }
15955 split(mac1, mac2, "(") #)
15956 macro = mac2[1]
15957 prefix = substr(line, 1, index(line, defundef) - 1)
15958 if (D_is_set[macro]) {
15959 # Preserve the white space surrounding the "#".
15960 print prefix "define", macro P[macro] D[macro]
15961 next
15962 } else {
15963 # Replace #undef with comments. This is necessary, for example,
15964 # in the case of _POSIX_SOURCE, which is predefined and required
15965 # on some systems where configure will not decide to define it.
15966 if (defundef == "undef") {
15967 print "/*", prefix defundef, macro, "*/"
15968 next
15969 }
15970 }
15971 }
15972 { print }
15973 _ACAWK
15974 _ACEOF
15975 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15976 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15977 fi # test -n "$CONFIG_HEADERS"
15978
15979
15980 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15981 shift
15982 for ac_tag
15983 do
15984 case $ac_tag in
15985 :[FHLC]) ac_mode=$ac_tag; continue;;
15986 esac
15987 case $ac_mode$ac_tag in
15988 :[FHL]*:*);;
15989 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15990 :[FH]-) ac_tag=-:-;;
15991 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15992 esac
15993 ac_save_IFS=$IFS
15994 IFS=:
15995 set x $ac_tag
15996 IFS=$ac_save_IFS
15997 shift
15998 ac_file=$1
15999 shift
16000
16001 case $ac_mode in
16002 :L) ac_source=$1;;
16003 :[FH])
16004 ac_file_inputs=
16005 for ac_f
16006 do
16007 case $ac_f in
16008 -) ac_f="$ac_tmp/stdin";;
16009 *) # Look for the file first in the build tree, then in the source tree
16010 # (if the path is not absolute). The absolute path cannot be DOS-style,
16011 # because $ac_f cannot contain `:'.
16012 test -f "$ac_f" ||
16013 case $ac_f in
16014 [\\/$]*) false;;
16015 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16016 esac ||
16017 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16018 esac
16019 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16020 as_fn_append ac_file_inputs " '$ac_f'"
16021 done
16022
16023 # Let's still pretend it is `configure' which instantiates (i.e., don't
16024 # use $as_me), people would be surprised to read:
16025 # /* config.h. Generated by config.status. */
16026 configure_input='Generated from '`
16027 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16028 `' by configure.'
16029 if test x"$ac_file" != x-; then
16030 configure_input="$ac_file. $configure_input"
16031 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16032 $as_echo "$as_me: creating $ac_file" >&6;}
16033 fi
16034 # Neutralize special characters interpreted by sed in replacement strings.
16035 case $configure_input in #(
16036 *\&* | *\|* | *\\* )
16037 ac_sed_conf_input=`$as_echo "$configure_input" |
16038 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16039 *) ac_sed_conf_input=$configure_input;;
16040 esac
16041
16042 case $ac_tag in
16043 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16044 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16045 esac
16046 ;;
16047 esac
16048
16049 ac_dir=`$as_dirname -- "$ac_file" ||
16050 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16051 X"$ac_file" : 'X\(//\)[^/]' \| \
16052 X"$ac_file" : 'X\(//\)$' \| \
16053 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16054 $as_echo X"$ac_file" |
16055 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16056 s//\1/
16057 q
16058 }
16059 /^X\(\/\/\)[^/].*/{
16060 s//\1/
16061 q
16062 }
16063 /^X\(\/\/\)$/{
16064 s//\1/
16065 q
16066 }
16067 /^X\(\/\).*/{
16068 s//\1/
16069 q
16070 }
16071 s/.*/./; q'`
16072 as_dir="$ac_dir"; as_fn_mkdir_p
16073 ac_builddir=.
16074
16075 case "$ac_dir" in
16076 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16077 *)
16078 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16079 # A ".." for each directory in $ac_dir_suffix.
16080 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16081 case $ac_top_builddir_sub in
16082 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16083 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16084 esac ;;
16085 esac
16086 ac_abs_top_builddir=$ac_pwd
16087 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16088 # for backward compatibility:
16089 ac_top_builddir=$ac_top_build_prefix
16090
16091 case $srcdir in
16092 .) # We are building in place.
16093 ac_srcdir=.
16094 ac_top_srcdir=$ac_top_builddir_sub
16095 ac_abs_top_srcdir=$ac_pwd ;;
16096 [\\/]* | ?:[\\/]* ) # Absolute name.
16097 ac_srcdir=$srcdir$ac_dir_suffix;
16098 ac_top_srcdir=$srcdir
16099 ac_abs_top_srcdir=$srcdir ;;
16100 *) # Relative name.
16101 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16102 ac_top_srcdir=$ac_top_build_prefix$srcdir
16103 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16104 esac
16105 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16106
16107
16108 case $ac_mode in
16109 :F)
16110 #
16111 # CONFIG_FILE
16112 #
16113
16114 case $INSTALL in
16115 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16116 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16117 esac
16118 ac_MKDIR_P=$MKDIR_P
16119 case $MKDIR_P in
16120 [\\/$]* | ?:[\\/]* ) ;;
16121 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16122 esac
16123 _ACEOF
16124
16125 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16126 # If the template does not know about datarootdir, expand it.
16127 # FIXME: This hack should be removed a few years after 2.60.
16128 ac_datarootdir_hack=; ac_datarootdir_seen=
16129 ac_sed_dataroot='
16130 /datarootdir/ {
16131 p
16132 q
16133 }
16134 /@datadir@/p
16135 /@docdir@/p
16136 /@infodir@/p
16137 /@localedir@/p
16138 /@mandir@/p'
16139 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16140 *datarootdir*) ac_datarootdir_seen=yes;;
16141 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16143 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16144 _ACEOF
16145 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16146 ac_datarootdir_hack='
16147 s&@datadir@&$datadir&g
16148 s&@docdir@&$docdir&g
16149 s&@infodir@&$infodir&g
16150 s&@localedir@&$localedir&g
16151 s&@mandir@&$mandir&g
16152 s&\\\${datarootdir}&$datarootdir&g' ;;
16153 esac
16154 _ACEOF
16155
16156 # Neutralize VPATH when `$srcdir' = `.'.
16157 # Shell code in configure.ac might set extrasub.
16158 # FIXME: do we really want to maintain this feature?
16159 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16160 ac_sed_extra="$ac_vpsub
16161 $extrasub
16162 _ACEOF
16163 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16164 :t
16165 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16166 s|@configure_input@|$ac_sed_conf_input|;t t
16167 s&@top_builddir@&$ac_top_builddir_sub&;t t
16168 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16169 s&@srcdir@&$ac_srcdir&;t t
16170 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16171 s&@top_srcdir@&$ac_top_srcdir&;t t
16172 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16173 s&@builddir@&$ac_builddir&;t t
16174 s&@abs_builddir@&$ac_abs_builddir&;t t
16175 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16176 s&@INSTALL@&$ac_INSTALL&;t t
16177 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16178 $ac_datarootdir_hack
16179 "
16180 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16181 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16182
16183 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16184 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16185 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16186 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16188 which seems to be undefined. Please make sure it is defined" >&5
16189 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16190 which seems to be undefined. Please make sure it is defined" >&2;}
16191
16192 rm -f "$ac_tmp/stdin"
16193 case $ac_file in
16194 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16195 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16196 esac \
16197 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16198 ;;
16199 :H)
16200 #
16201 # CONFIG_HEADER
16202 #
16203 if test x"$ac_file" != x-; then
16204 {
16205 $as_echo "/* $configure_input */" \
16206 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16207 } >"$ac_tmp/config.h" \
16208 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16209 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16210 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16211 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16212 else
16213 rm -f "$ac_file"
16214 mv "$ac_tmp/config.h" "$ac_file" \
16215 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16216 fi
16217 else
16218 $as_echo "/* $configure_input */" \
16219 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16220 || as_fn_error $? "could not create -" "$LINENO" 5
16221 fi
16222 # Compute "$ac_file"'s index in $config_headers.
16223 _am_arg="$ac_file"
16224 _am_stamp_count=1
16225 for _am_header in $config_headers :; do
16226 case $_am_header in
16227 $_am_arg | $_am_arg:* )
16228 break ;;
16229 * )
16230 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16231 esac
16232 done
16233 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16234 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16235 X"$_am_arg" : 'X\(//\)[^/]' \| \
16236 X"$_am_arg" : 'X\(//\)$' \| \
16237 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16238 $as_echo X"$_am_arg" |
16239 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16240 s//\1/
16241 q
16242 }
16243 /^X\(\/\/\)[^/].*/{
16244 s//\1/
16245 q
16246 }
16247 /^X\(\/\/\)$/{
16248 s//\1/
16249 q
16250 }
16251 /^X\(\/\).*/{
16252 s//\1/
16253 q
16254 }
16255 s/.*/./; q'`/stamp-h$_am_stamp_count
16256 ;;
16257
16258 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16259 $as_echo "$as_me: executing $ac_file commands" >&6;}
16260 ;;
16261 esac
16262
16263
16264 case $ac_file$ac_mode in
16265 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16266 # Older Autoconf quotes --file arguments for eval, but not when files
16267 # are listed without --file. Let's play safe and only enable the eval
16268 # if we detect the quoting.
16269 case $CONFIG_FILES in
16270 *\'*) eval set x "$CONFIG_FILES" ;;
16271 *) set x $CONFIG_FILES ;;
16272 esac
16273 shift
16274 for mf
16275 do
16276 # Strip MF so we end up with the name of the file.
16277 mf=`echo "$mf" | sed -e 's/:.*$//'`
16278 # Check whether this is an Automake generated Makefile or not.
16279 # We used to match only the files named 'Makefile.in', but
16280 # some people rename them; so instead we look at the file content.
16281 # Grep'ing the first line is not enough: some people post-process
16282 # each Makefile.in and add a new line on top of each file to say so.
16283 # Grep'ing the whole file is not good either: AIX grep has a line
16284 # limit of 2048, but all sed's we know have understand at least 4000.
16285 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16286 dirpart=`$as_dirname -- "$mf" ||
16287 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16288 X"$mf" : 'X\(//\)[^/]' \| \
16289 X"$mf" : 'X\(//\)$' \| \
16290 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16291 $as_echo X"$mf" |
16292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16293 s//\1/
16294 q
16295 }
16296 /^X\(\/\/\)[^/].*/{
16297 s//\1/
16298 q
16299 }
16300 /^X\(\/\/\)$/{
16301 s//\1/
16302 q
16303 }
16304 /^X\(\/\).*/{
16305 s//\1/
16306 q
16307 }
16308 s/.*/./; q'`
16309 else
16310 continue
16311 fi
16312 # Extract the definition of DEPDIR, am__include, and am__quote
16313 # from the Makefile without running 'make'.
16314 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16315 test -z "$DEPDIR" && continue
16316 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16317 test -z "$am__include" && continue
16318 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16319 # Find all dependency output files, they are included files with
16320 # $(DEPDIR) in their names. We invoke sed twice because it is the
16321 # simplest approach to changing $(DEPDIR) to its actual value in the
16322 # expansion.
16323 for file in `sed -n "
16324 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16325 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16326 # Make sure the directory exists.
16327 test -f "$dirpart/$file" && continue
16328 fdir=`$as_dirname -- "$file" ||
16329 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16330 X"$file" : 'X\(//\)[^/]' \| \
16331 X"$file" : 'X\(//\)$' \| \
16332 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16333 $as_echo X"$file" |
16334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16335 s//\1/
16336 q
16337 }
16338 /^X\(\/\/\)[^/].*/{
16339 s//\1/
16340 q
16341 }
16342 /^X\(\/\/\)$/{
16343 s//\1/
16344 q
16345 }
16346 /^X\(\/\).*/{
16347 s//\1/
16348 q
16349 }
16350 s/.*/./; q'`
16351 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16352 # echo "creating $dirpart/$file"
16353 echo '# dummy' > "$dirpart/$file"
16354 done
16355 done
16356 }
16357 ;;
16358 "libtool":C)
16359
16360 # See if we are running on zsh, and set the options that allow our
16361 # commands through without removal of \ escapes.
16362 if test -n "${ZSH_VERSION+set}"; then
16363 setopt NO_GLOB_SUBST
16364 fi
16365
16366 cfgfile=${ofile}T
16367 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16368 $RM "$cfgfile"
16369
16370 cat <<_LT_EOF >> "$cfgfile"
16371 #! $SHELL
16372 # Generated automatically by $as_me ($PACKAGE) $VERSION
16373 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16374 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16375
16376 # Provide generalized library-building support services.
16377 # Written by Gordon Matzigkeit, 1996
16378
16379 # Copyright (C) 2014 Free Software Foundation, Inc.
16380 # This is free software; see the source for copying conditions. There is NO
16381 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16382
16383 # GNU Libtool is free software; you can redistribute it and/or modify
16384 # it under the terms of the GNU General Public License as published by
16385 # the Free Software Foundation; either version 2 of of the License, or
16386 # (at your option) any later version.
16387 #
16388 # As a special exception to the GNU General Public License, if you
16389 # distribute this file as part of a program or library that is built
16390 # using GNU Libtool, you may include this file under the same
16391 # distribution terms that you use for the rest of that program.
16392 #
16393 # GNU Libtool is distributed in the hope that it will be useful, but
16394 # WITHOUT ANY WARRANTY; without even the implied warranty of
16395 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16396 # GNU General Public License for more details.
16397 #
16398 # You should have received a copy of the GNU General Public License
16399 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16400
16401
16402 # The names of the tagged configurations supported by this script.
16403 available_tags=''
16404
16405 # Configured defaults for sys_lib_dlsearch_path munging.
16406 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
16407
16408 # ### BEGIN LIBTOOL CONFIG
16409
16410 # Which release of libtool.m4 was used?
16411 macro_version=$macro_version
16412 macro_revision=$macro_revision
16413
16414 # Whether or not to build shared libraries.
16415 build_libtool_libs=$enable_shared
16416
16417 # Whether or not to build static libraries.
16418 build_old_libs=$enable_static
16419
16420 # What type of objects to build.
16421 pic_mode=$pic_mode
16422
16423 # Whether or not to optimize for fast installation.
16424 fast_install=$enable_fast_install
16425
16426 # Shared archive member basename,for filename based shared library versioning on AIX.
16427 shared_archive_member_spec=$shared_archive_member_spec
16428
16429 # Shell to use when invoking shell scripts.
16430 SHELL=$lt_SHELL
16431
16432 # An echo program that protects backslashes.
16433 ECHO=$lt_ECHO
16434
16435 # The PATH separator for the build system.
16436 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16437
16438 # The host system.
16439 host_alias=$host_alias
16440 host=$host
16441 host_os=$host_os
16442
16443 # The build system.
16444 build_alias=$build_alias
16445 build=$build
16446 build_os=$build_os
16447
16448 # A sed program that does not truncate output.
16449 SED=$lt_SED
16450
16451 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16452 Xsed="\$SED -e 1s/^X//"
16453
16454 # A grep program that handles long lines.
16455 GREP=$lt_GREP
16456
16457 # An ERE matcher.
16458 EGREP=$lt_EGREP
16459
16460 # A literal string matcher.
16461 FGREP=$lt_FGREP
16462
16463 # A BSD- or MS-compatible name lister.
16464 NM=$lt_NM
16465
16466 # Whether we need soft or hard links.
16467 LN_S=$lt_LN_S
16468
16469 # What is the maximum length of a command?
16470 max_cmd_len=$max_cmd_len
16471
16472 # Object file suffix (normally "o").
16473 objext=$ac_objext
16474
16475 # Executable file suffix (normally "").
16476 exeext=$exeext
16477
16478 # whether the shell understands "unset".
16479 lt_unset=$lt_unset
16480
16481 # turn spaces into newlines.
16482 SP2NL=$lt_lt_SP2NL
16483
16484 # turn newlines into spaces.
16485 NL2SP=$lt_lt_NL2SP
16486
16487 # convert \$build file names to \$host format.
16488 to_host_file_cmd=$lt_cv_to_host_file_cmd
16489
16490 # convert \$build files to toolchain format.
16491 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16492
16493 # An object symbol dumper.
16494 OBJDUMP=$lt_OBJDUMP
16495
16496 # Method to check whether dependent libraries are shared objects.
16497 deplibs_check_method=$lt_deplibs_check_method
16498
16499 # Command to use when deplibs_check_method = "file_magic".
16500 file_magic_cmd=$lt_file_magic_cmd
16501
16502 # How to find potential files when deplibs_check_method = "file_magic".
16503 file_magic_glob=$lt_file_magic_glob
16504
16505 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16506 want_nocaseglob=$lt_want_nocaseglob
16507
16508 # DLL creation program.
16509 DLLTOOL=$lt_DLLTOOL
16510
16511 # Command to associate shared and link libraries.
16512 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16513
16514 # The archiver.
16515 AR=$lt_AR
16516
16517 # Flags to create an archive.
16518 AR_FLAGS=$lt_AR_FLAGS
16519
16520 # How to feed a file listing to the archiver.
16521 archiver_list_spec=$lt_archiver_list_spec
16522
16523 # A symbol stripping program.
16524 STRIP=$lt_STRIP
16525
16526 # Commands used to install an old-style archive.
16527 RANLIB=$lt_RANLIB
16528 old_postinstall_cmds=$lt_old_postinstall_cmds
16529 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16530
16531 # Whether to use a lock for old archive extraction.
16532 lock_old_archive_extraction=$lock_old_archive_extraction
16533
16534 # A C compiler.
16535 LTCC=$lt_CC
16536
16537 # LTCC compiler flags.
16538 LTCFLAGS=$lt_CFLAGS
16539
16540 # Take the output of nm and produce a listing of raw symbols and C names.
16541 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16542
16543 # Transform the output of nm in a proper C declaration.
16544 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16545
16546 # Transform the output of nm into a list of symbols to manually relocate.
16547 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16548
16549 # Transform the output of nm in a C name address pair.
16550 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16551
16552 # Transform the output of nm in a C name address pair when lib prefix is needed.
16553 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16554
16555 # The name lister interface.
16556 nm_interface=$lt_lt_cv_nm_interface
16557
16558 # Specify filename containing input files for \$NM.
16559 nm_file_list_spec=$lt_nm_file_list_spec
16560
16561 # The root where to search for dependent libraries,and where our libraries should be installed.
16562 lt_sysroot=$lt_sysroot
16563
16564 # Command to truncate a binary pipe.
16565 lt_truncate_bin=$lt_lt_cv_truncate_bin
16566
16567 # The name of the directory that contains temporary libtool files.
16568 objdir=$objdir
16569
16570 # Used to examine libraries when file_magic_cmd begins with "file".
16571 MAGIC_CMD=$MAGIC_CMD
16572
16573 # Must we lock files when doing compilation?
16574 need_locks=$lt_need_locks
16575
16576 # Manifest tool.
16577 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16578
16579 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16580 DSYMUTIL=$lt_DSYMUTIL
16581
16582 # Tool to change global to local symbols on Mac OS X.
16583 NMEDIT=$lt_NMEDIT
16584
16585 # Tool to manipulate fat objects and archives on Mac OS X.
16586 LIPO=$lt_LIPO
16587
16588 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16589 OTOOL=$lt_OTOOL
16590
16591 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16592 OTOOL64=$lt_OTOOL64
16593
16594 # Old archive suffix (normally "a").
16595 libext=$libext
16596
16597 # Shared library suffix (normally ".so").
16598 shrext_cmds=$lt_shrext_cmds
16599
16600 # The commands to extract the exported symbol list from a shared archive.
16601 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16602
16603 # Variables whose values should be saved in libtool wrapper scripts and
16604 # restored at link time.
16605 variables_saved_for_relink=$lt_variables_saved_for_relink
16606
16607 # Do we need the "lib" prefix for modules?
16608 need_lib_prefix=$need_lib_prefix
16609
16610 # Do we need a version for libraries?
16611 need_version=$need_version
16612
16613 # Library versioning type.
16614 version_type=$version_type
16615
16616 # Shared library runtime path variable.
16617 runpath_var=$runpath_var
16618
16619 # Shared library path variable.
16620 shlibpath_var=$shlibpath_var
16621
16622 # Is shlibpath searched before the hard-coded library search path?
16623 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16624
16625 # Format of library name prefix.
16626 libname_spec=$lt_libname_spec
16627
16628 # List of archive names. First name is the real one, the rest are links.
16629 # The last name is the one that the linker finds with -lNAME
16630 library_names_spec=$lt_library_names_spec
16631
16632 # The coded name of the library, if different from the real name.
16633 soname_spec=$lt_soname_spec
16634
16635 # Permission mode override for installation of shared libraries.
16636 install_override_mode=$lt_install_override_mode
16637
16638 # Command to use after installation of a shared archive.
16639 postinstall_cmds=$lt_postinstall_cmds
16640
16641 # Command to use after uninstallation of a shared archive.
16642 postuninstall_cmds=$lt_postuninstall_cmds
16643
16644 # Commands used to finish a libtool library installation in a directory.
16645 finish_cmds=$lt_finish_cmds
16646
16647 # As "finish_cmds", except a single script fragment to be evaled but
16648 # not shown.
16649 finish_eval=$lt_finish_eval
16650
16651 # Whether we should hardcode library paths into libraries.
16652 hardcode_into_libs=$hardcode_into_libs
16653
16654 # Compile-time system search path for libraries.
16655 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16656
16657 # Detected run-time system search path for libraries.
16658 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16659
16660 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16661 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16662
16663 # Whether dlopen is supported.
16664 dlopen_support=$enable_dlopen
16665
16666 # Whether dlopen of programs is supported.
16667 dlopen_self=$enable_dlopen_self
16668
16669 # Whether dlopen of statically linked programs is supported.
16670 dlopen_self_static=$enable_dlopen_self_static
16671
16672 # Commands to strip libraries.
16673 old_striplib=$lt_old_striplib
16674 striplib=$lt_striplib
16675
16676
16677 # The linker used to build libraries.
16678 LD=$lt_LD
16679
16680 # How to create reloadable object files.
16681 reload_flag=$lt_reload_flag
16682 reload_cmds=$lt_reload_cmds
16683
16684 # Commands used to build an old-style archive.
16685 old_archive_cmds=$lt_old_archive_cmds
16686
16687 # A language specific compiler.
16688 CC=$lt_compiler
16689
16690 # Is the compiler the GNU compiler?
16691 with_gcc=$GCC
16692
16693 # Compiler flag to turn off builtin functions.
16694 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16695
16696 # Additional compiler flags for building library objects.
16697 pic_flag=$lt_lt_prog_compiler_pic
16698
16699 # How to pass a linker flag through the compiler.
16700 wl=$lt_lt_prog_compiler_wl
16701
16702 # Compiler flag to prevent dynamic linking.
16703 link_static_flag=$lt_lt_prog_compiler_static
16704
16705 # Does compiler simultaneously support -c and -o options?
16706 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16707
16708 # Whether or not to add -lc for building shared libraries.
16709 build_libtool_need_lc=$archive_cmds_need_lc
16710
16711 # Whether or not to disallow shared libs when runtime libs are static.
16712 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16713
16714 # Compiler flag to allow reflexive dlopens.
16715 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16716
16717 # Compiler flag to generate shared objects directly from archives.
16718 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16719
16720 # Whether the compiler copes with passing no objects directly.
16721 compiler_needs_object=$lt_compiler_needs_object
16722
16723 # Create an old-style archive from a shared archive.
16724 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16725
16726 # Create a temporary old-style archive to link instead of a shared archive.
16727 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16728
16729 # Commands used to build a shared archive.
16730 archive_cmds=$lt_archive_cmds
16731 archive_expsym_cmds=$lt_archive_expsym_cmds
16732
16733 # Commands used to build a loadable module if different from building
16734 # a shared archive.
16735 module_cmds=$lt_module_cmds
16736 module_expsym_cmds=$lt_module_expsym_cmds
16737
16738 # Whether we are building with GNU ld or not.
16739 with_gnu_ld=$lt_with_gnu_ld
16740
16741 # Flag that allows shared libraries with undefined symbols to be built.
16742 allow_undefined_flag=$lt_allow_undefined_flag
16743
16744 # Flag that enforces no undefined symbols.
16745 no_undefined_flag=$lt_no_undefined_flag
16746
16747 # Flag to hardcode \$libdir into a binary during linking.
16748 # This must work even if \$libdir does not exist
16749 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16750
16751 # Whether we need a single "-rpath" flag with a separated argument.
16752 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16753
16754 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16755 # DIR into the resulting binary.
16756 hardcode_direct=$hardcode_direct
16757
16758 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16759 # DIR into the resulting binary and the resulting library dependency is
16760 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
16761 # library is relocated.
16762 hardcode_direct_absolute=$hardcode_direct_absolute
16763
16764 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16765 # into the resulting binary.
16766 hardcode_minus_L=$hardcode_minus_L
16767
16768 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16769 # into the resulting binary.
16770 hardcode_shlibpath_var=$hardcode_shlibpath_var
16771
16772 # Set to "yes" if building a shared library automatically hardcodes DIR
16773 # into the library and all subsequent libraries and executables linked
16774 # against it.
16775 hardcode_automatic=$hardcode_automatic
16776
16777 # Set to yes if linker adds runtime paths of dependent libraries
16778 # to runtime path list.
16779 inherit_rpath=$inherit_rpath
16780
16781 # Whether libtool must link a program against all its dependency libraries.
16782 link_all_deplibs=$link_all_deplibs
16783
16784 # Set to "yes" if exported symbols are required.
16785 always_export_symbols=$always_export_symbols
16786
16787 # The commands to list exported symbols.
16788 export_symbols_cmds=$lt_export_symbols_cmds
16789
16790 # Symbols that should not be listed in the preloaded symbols.
16791 exclude_expsyms=$lt_exclude_expsyms
16792
16793 # Symbols that must always be exported.
16794 include_expsyms=$lt_include_expsyms
16795
16796 # Commands necessary for linking programs (against libraries) with templates.
16797 prelink_cmds=$lt_prelink_cmds
16798
16799 # Commands necessary for finishing linking programs.
16800 postlink_cmds=$lt_postlink_cmds
16801
16802 # Specify filename containing input files.
16803 file_list_spec=$lt_file_list_spec
16804
16805 # How to hardcode a shared library path into an executable.
16806 hardcode_action=$hardcode_action
16807
16808 # ### END LIBTOOL CONFIG
16809
16810 _LT_EOF
16811
16812 cat <<'_LT_EOF' >> "$cfgfile"
16813
16814 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16815
16816 # func_munge_path_list VARIABLE PATH
16817 # -----------------------------------
16818 # VARIABLE is name of variable containing _space_ separated list of
16819 # directories to be munged by the contents of PATH, which is string
16820 # having a format:
16821 # "DIR[:DIR]:"
16822 # string "DIR[ DIR]" will be prepended to VARIABLE
16823 # ":DIR[:DIR]"
16824 # string "DIR[ DIR]" will be appended to VARIABLE
16825 # "DIRP[:DIRP]::[DIRA:]DIRA"
16826 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16827 # "DIRA[ DIRA]" will be appended to VARIABLE
16828 # "DIR[:DIR]"
16829 # VARIABLE will be replaced by "DIR[ DIR]"
16830 func_munge_path_list ()
16831 {
16832 case x$2 in
16833 x)
16834 ;;
16835 *:)
16836 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16837 ;;
16838 x:*)
16839 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16840 ;;
16841 *::*)
16842 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16843 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16844 ;;
16845 *)
16846 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16847 ;;
16848 esac
16849 }
16850
16851
16852 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
16853 func_cc_basename ()
16854 {
16855 for cc_temp in $*""; do
16856 case $cc_temp in
16857 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16858 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16859 \-*) ;;
16860 *) break;;
16861 esac
16862 done
16863 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16864 }
16865
16866
16867 # ### END FUNCTIONS SHARED WITH CONFIGURE
16868
16869 _LT_EOF
16870
16871 case $host_os in
16872 aix3*)
16873 cat <<\_LT_EOF >> "$cfgfile"
16874 # AIX sometimes has problems with the GCC collect2 program. For some
16875 # reason, if we set the COLLECT_NAMES environment variable, the problems
16876 # vanish in a puff of smoke.
16877 if test set != "${COLLECT_NAMES+set}"; then
16878 COLLECT_NAMES=
16879 export COLLECT_NAMES
16880 fi
16881 _LT_EOF
16882 ;;
16883 esac
16884
16885
16886 ltmain=$ac_aux_dir/ltmain.sh
16887
16888
16889 # We use sed instead of cat because bash on DJGPP gets confused if
16890 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16891 # text mode, it properly converts lines to CR/LF. This bash problem
16892 # is reportedly fixed, but why not run on old versions too?
16893 sed '$q' "$ltmain" >> "$cfgfile" \
16894 || (rm -f "$cfgfile"; exit 1)
16895
16896 mv -f "$cfgfile" "$ofile" ||
16897 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16898 chmod +x "$ofile"
16899
16900 ;;
16901
16902 esac
16903 done # for ac_tag
16904
16905
16906 as_fn_exit 0
16907 _ACEOF
16908 ac_clean_files=$ac_clean_files_save
16909
16910 test $ac_write_fail = 0 ||
16911 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16912
16913
16914 # configure is writing to config.log, and then calls config.status.
16915 # config.status does its own redirection, appending to config.log.
16916 # Unfortunately, on DOS this fails, as config.log is still kept open
16917 # by configure, so config.status won't be able to write to it; its
16918 # output is simply discarded. So we exec the FD to /dev/null,
16919 # effectively closing config.log, so it can be properly (re)opened and
16920 # appended to by config.status. When coming back to configure, we
16921 # need to make the FD available again.
16922 if test "$no_create" != yes; then
16923 ac_cs_success=:
16924 ac_config_status_args=
16925 test "$silent" = yes &&
16926 ac_config_status_args="$ac_config_status_args --quiet"
16927 exec 5>/dev/null
16928 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16929 exec 5>>config.log
16930 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16931 # would make configure fail if this is the last instruction.
16932 $ac_cs_success || as_fn_exit 1
16933 fi
16934 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16936 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16937 fi
16938
16939
16940
16941 echo "###############################################################################"
16942 echo "Configuration complete. Type make (or gmake on some *BSD machines) to compile."
16943 echo
16944 echo "HOPM will be installed in ${prefix}. To change this, run:"
16945 echo " ./configure --prefix=DIRECTORY"
16946 echo "###############################################################################"

Properties

Name Value
svn:eol-style native
svn:executable
svn:keywords Id