Subversion Repositories public

Rev

Rev 221 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
88 andreas 1
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
216 andreas 3
# Generated by GNU Autoconf 2.63.
88 andreas 4
#
5
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
216 andreas 6
# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
88 andreas 7
# This configure script is free software; the Free Software Foundation
8
# gives unlimited permission to copy, distribute and modify it.
9
## --------------------- ##
10
## M4sh Initialization.  ##
11
## --------------------- ##
12
 
13
# Be more Bourne compatible
14
DUALCASE=1; export DUALCASE # for MKS sh
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16
  emulate sh
17
  NULLCMD=:
216 andreas 18
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
88 andreas 19
  # is contrary to our usage.  Disable this feature.
20
  alias -g '${1+"$@"}'='"$@"'
21
  setopt NO_GLOB_SUBST
22
else
23
  case `(set -o) 2>/dev/null` in
24
  *posix*) set -o posix ;;
25
esac
26
 
27
fi
28
 
29
 
30
 
31
 
32
# PATH needs CR
33
# Avoid depending upon Character Ranges.
34
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37
as_cr_digits='0123456789'
38
as_cr_alnum=$as_cr_Letters$as_cr_digits
39
 
216 andreas 40
as_nl='
41
'
42
export as_nl
43
# Printing a long string crashes Solaris 7 /usr/bin/printf.
44
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48
  as_echo='printf %s\n'
49
  as_echo_n='printf %s'
50
else
51
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53
    as_echo_n='/usr/ucb/echo -n'
88 andreas 54
  else
216 andreas 55
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56
    as_echo_n_body='eval
57
      arg=$1;
58
      case $arg in
59
      *"$as_nl"*)
60
	expr "X$arg" : "X\\(.*\\)$as_nl";
61
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62
      esac;
63
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64
    '
65
    export as_echo_n_body
66
    as_echo_n='sh -c $as_echo_n_body as_echo'
88 andreas 67
  fi
216 andreas 68
  export as_echo_body
69
  as_echo='sh -c $as_echo_body as_echo'
88 andreas 70
fi
71
 
216 andreas 72
# The user is always right.
73
if test "${PATH_SEPARATOR+set}" != set; then
74
  PATH_SEPARATOR=:
75
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77
      PATH_SEPARATOR=';'
78
  }
79
fi
80
 
88 andreas 81
# Support unset when possible.
82
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83
  as_unset=unset
84
else
85
  as_unset=false
86
fi
87
 
88
 
89
# IFS
90
# We need space, tab and new line, in precisely that order.  Quoting is
91
# there to prevent editors from complaining about space-tab.
92
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
93
# splitting by setting IFS to empty value.)
94
IFS=" ""	$as_nl"
95
 
96
# Find who we are.  Look in the path if we contain no directory separator.
97
case $0 in
98
  *[\\/]* ) as_myself=$0 ;;
99
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100
for as_dir in $PATH
101
do
102
  IFS=$as_save_IFS
103
  test -z "$as_dir" && as_dir=.
104
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105
done
106
IFS=$as_save_IFS
107
 
108
     ;;
109
esac
110
# We did not find ourselves, most probably we were run as `sh COMMAND'
111
# in which case we are not to be found in the path.
112
if test "x$as_myself" = x; then
113
  as_myself=$0
114
fi
115
if test ! -f "$as_myself"; then
216 andreas 116
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
88 andreas 117
  { (exit 1); exit 1; }
118
fi
119
 
120
# Work around bugs in pre-3.0 UWIN ksh.
121
for as_var in ENV MAIL MAILPATH
122
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123
done
124
PS1='$ '
125
PS2='> '
126
PS4='+ '
127
 
128
# NLS nuisances.
216 andreas 129
LC_ALL=C
130
export LC_ALL
131
LANGUAGE=C
132
export LANGUAGE
88 andreas 133
 
134
# Required to use basename.
135
if expr a : '\(a\)' >/dev/null 2>&1 &&
136
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
137
  as_expr=expr
138
else
139
  as_expr=false
140
fi
141
 
142
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143
  as_basename=basename
144
else
145
  as_basename=false
146
fi
147
 
148
 
149
# Name of the executable.
150
as_me=`$as_basename -- "$0" ||
151
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152
	 X"$0" : 'X\(//\)$' \| \
153
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
216 andreas 154
$as_echo X/"$0" |
88 andreas 155
    sed '/^.*\/\([^/][^/]*\)\/*$/{
156
	    s//\1/
157
	    q
158
	  }
159
	  /^X\/\(\/\/\)$/{
160
	    s//\1/
161
	    q
162
	  }
163
	  /^X\/\(\/\).*/{
164
	    s//\1/
165
	    q
166
	  }
167
	  s/.*/./; q'`
168
 
169
# CDPATH.
170
$as_unset CDPATH
171
 
172
 
173
if test "x$CONFIG_SHELL" = x; then
174
  if (eval ":") 2>/dev/null; then
175
  as_have_required=yes
176
else
177
  as_have_required=no
178
fi
179
 
216 andreas 180
  if test $as_have_required = yes &&	 (eval ":
88 andreas 181
(as_func_return () {
182
  (exit \$1)
183
}
184
as_func_success () {
185
  as_func_return 0
186
}
187
as_func_failure () {
188
  as_func_return 1
189
}
190
as_func_ret_success () {
191
  return 0
192
}
193
as_func_ret_failure () {
194
  return 1
195
}
196
 
197
exitcode=0
198
if as_func_success; then
199
  :
200
else
201
  exitcode=1
202
  echo as_func_success failed.
203
fi
204
 
205
if as_func_failure; then
206
  exitcode=1
207
  echo as_func_failure succeeded.
208
fi
209
 
210
if as_func_ret_success; then
211
  :
212
else
213
  exitcode=1
214
  echo as_func_ret_success failed.
215
fi
216
 
217
if as_func_ret_failure; then
218
  exitcode=1
219
  echo as_func_ret_failure succeeded.
220
fi
221
 
222
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223
  :
224
else
225
  exitcode=1
226
  echo positional parameters were not saved.
227
fi
228
 
229
test \$exitcode = 0) || { (exit 1); exit 1; }
230
 
231
(
232
  as_lineno_1=\$LINENO
233
  as_lineno_2=\$LINENO
234
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236
") 2> /dev/null; then
237
  :
238
else
239
  as_candidate_shells=
240
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242
do
243
  IFS=$as_save_IFS
244
  test -z "$as_dir" && as_dir=.
245
  case $as_dir in
246
	 /*)
247
	   for as_base in sh bash ksh sh5; do
248
	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249
	   done;;
250
       esac
251
done
252
IFS=$as_save_IFS
253
 
254
 
255
      for as_shell in $as_candidate_shells $SHELL; do
256
	 # Try only shells that exist, to save several forks.
257
	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258
		{ ("$as_shell") 2> /dev/null <<\_ASEOF
259
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260
  emulate sh
261
  NULLCMD=:
216 andreas 262
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
88 andreas 263
  # is contrary to our usage.  Disable this feature.
264
  alias -g '${1+"$@"}'='"$@"'
265
  setopt NO_GLOB_SUBST
266
else
267
  case `(set -o) 2>/dev/null` in
268
  *posix*) set -o posix ;;
269
esac
270
 
271
fi
272
 
273
 
274
:
275
_ASEOF
276
}; then
277
  CONFIG_SHELL=$as_shell
278
	       as_have_required=yes
279
	       if { "$as_shell" 2> /dev/null <<\_ASEOF
280
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281
  emulate sh
282
  NULLCMD=:
216 andreas 283
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
88 andreas 284
  # is contrary to our usage.  Disable this feature.
285
  alias -g '${1+"$@"}'='"$@"'
286
  setopt NO_GLOB_SUBST
287
else
288
  case `(set -o) 2>/dev/null` in
289
  *posix*) set -o posix ;;
290
esac
291
 
292
fi
293
 
294
 
295
:
296
(as_func_return () {
297
  (exit $1)
298
}
299
as_func_success () {
300
  as_func_return 0
301
}
302
as_func_failure () {
303
  as_func_return 1
304
}
305
as_func_ret_success () {
306
  return 0
307
}
308
as_func_ret_failure () {
309
  return 1
310
}
311
 
312
exitcode=0
313
if as_func_success; then
314
  :
315
else
316
  exitcode=1
317
  echo as_func_success failed.
318
fi
319
 
320
if as_func_failure; then
321
  exitcode=1
322
  echo as_func_failure succeeded.
323
fi
324
 
325
if as_func_ret_success; then
326
  :
327
else
328
  exitcode=1
329
  echo as_func_ret_success failed.
330
fi
331
 
332
if as_func_ret_failure; then
333
  exitcode=1
334
  echo as_func_ret_failure succeeded.
335
fi
336
 
337
if ( set x; as_func_ret_success y && test x = "$1" ); then
338
  :
339
else
340
  exitcode=1
341
  echo positional parameters were not saved.
342
fi
343
 
344
test $exitcode = 0) || { (exit 1); exit 1; }
345
 
346
(
347
  as_lineno_1=$LINENO
348
  as_lineno_2=$LINENO
349
  test "x$as_lineno_1" != "x$as_lineno_2" &&
350
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
 
352
_ASEOF
353
}; then
354
  break
355
fi
356
 
357
fi
358
 
359
      done
360
 
361
      if test "x$CONFIG_SHELL" != x; then
362
  for as_var in BASH_ENV ENV
216 andreas 363
	do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364
	done
365
	export CONFIG_SHELL
366
	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
88 andreas 367
fi
368
 
369
 
370
    if test $as_have_required = no; then
371
  echo This script requires a shell more modern than all the
372
      echo shells that I found on your system.  Please install a
373
      echo modern shell, or manually run the script under such a
374
      echo shell if you do have one.
375
      { (exit 1); exit 1; }
376
fi
377
 
378
 
379
fi
380
 
381
fi
382
 
383
 
384
 
385
(eval "as_func_return () {
386
  (exit \$1)
387
}
388
as_func_success () {
389
  as_func_return 0
390
}
391
as_func_failure () {
392
  as_func_return 1
393
}
394
as_func_ret_success () {
395
  return 0
396
}
397
as_func_ret_failure () {
398
  return 1
399
}
400
 
401
exitcode=0
402
if as_func_success; then
403
  :
404
else
405
  exitcode=1
406
  echo as_func_success failed.
407
fi
408
 
409
if as_func_failure; then
410
  exitcode=1
411
  echo as_func_failure succeeded.
412
fi
413
 
414
if as_func_ret_success; then
415
  :
416
else
417
  exitcode=1
418
  echo as_func_ret_success failed.
419
fi
420
 
421
if as_func_ret_failure; then
422
  exitcode=1
423
  echo as_func_ret_failure succeeded.
424
fi
425
 
426
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427
  :
428
else
429
  exitcode=1
430
  echo positional parameters were not saved.
431
fi
432
 
433
test \$exitcode = 0") || {
434
  echo No shell found that supports shell functions.
216 andreas 435
  echo Please tell bug-autoconf@gnu.org about your system,
436
  echo including any error possibly output before this message.
437
  echo This can help us improve future autoconf versions.
438
  echo Configuration will now proceed without shell functions.
88 andreas 439
}
440
 
441
 
442
 
443
  as_lineno_1=$LINENO
444
  as_lineno_2=$LINENO
445
  test "x$as_lineno_1" != "x$as_lineno_2" &&
446
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
 
448
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449
  # uniformly replaced by the line number.  The first 'sed' inserts a
450
  # line-number line after each line using $LINENO; the second 'sed'
451
  # does the real work.  The second script uses 'N' to pair each
452
  # line-number line with the line containing $LINENO, and appends
453
  # trailing '-' during substitution so that $LINENO is not a special
454
  # case at line end.
455
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
457
  # E. McMahon (1931-1989) for sed's syntax.  :-)
458
  sed -n '
459
    p
460
    /[$]LINENO/=
461
  ' <$as_myself |
462
    sed '
463
      s/[$]LINENO.*/&-/
464
      t lineno
465
      b
466
      :lineno
467
      N
468
      :loop
469
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470
      t loop
471
      s/-\n.*//
472
    ' >$as_me.lineno &&
473
  chmod +x "$as_me.lineno" ||
216 andreas 474
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
88 andreas 475
   { (exit 1); exit 1; }; }
476
 
477
  # Don't try to exec as it changes $[0], causing all sort of problems
478
  # (the dirname of $[0] is not the place where we might find the
479
  # original and so on.  Autoconf is especially sensitive to this).
480
  . "./$as_me.lineno"
481
  # Exit status is that of the last command.
482
  exit
483
}
484
 
485
 
486
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487
  as_dirname=dirname
488
else
489
  as_dirname=false
490
fi
491
 
492
ECHO_C= ECHO_N= ECHO_T=
493
case `echo -n x` in
494
-n*)
495
  case `echo 'x\c'` in
496
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
497
  *)   ECHO_C='\c';;
498
  esac;;
499
*)
500
  ECHO_N='-n';;
501
esac
502
if expr a : '\(a\)' >/dev/null 2>&1 &&
503
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
504
  as_expr=expr
505
else
506
  as_expr=false
507
fi
508
 
509
rm -f conf$$ conf$$.exe conf$$.file
510
if test -d conf$$.dir; then
511
  rm -f conf$$.dir/conf$$.file
512
else
513
  rm -f conf$$.dir
216 andreas 514
  mkdir conf$$.dir 2>/dev/null
88 andreas 515
fi
216 andreas 516
if (echo >conf$$.file) 2>/dev/null; then
517
  if ln -s conf$$.file conf$$ 2>/dev/null; then
518
    as_ln_s='ln -s'
519
    # ... but there are two gotchas:
520
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522
    # In both cases, we have to default to `cp -p'.
523
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524
      as_ln_s='cp -p'
525
  elif ln conf$$.file conf$$ 2>/dev/null; then
526
    as_ln_s=ln
527
  else
88 andreas 528
    as_ln_s='cp -p'
216 andreas 529
  fi
88 andreas 530
else
531
  as_ln_s='cp -p'
532
fi
533
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534
rmdir conf$$.dir 2>/dev/null
535
 
536
if mkdir -p . 2>/dev/null; then
537
  as_mkdir_p=:
538
else
539
  test -d ./-p && rmdir ./-p
540
  as_mkdir_p=false
541
fi
542
 
543
if test -x / >/dev/null 2>&1; then
544
  as_test_x='test -x'
545
else
546
  if ls -dL / >/dev/null 2>&1; then
547
    as_ls_L_option=L
548
  else
549
    as_ls_L_option=
550
  fi
551
  as_test_x='
552
    eval sh -c '\''
553
      if test -d "$1"; then
216 andreas 554
	test -d "$1/.";
88 andreas 555
      else
556
	case $1 in
216 andreas 557
	-*)set "./$1";;
88 andreas 558
	esac;
559
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560
	???[sx]*):;;*)false;;esac;fi
561
    '\'' sh
562
  '
563
fi
564
as_executable_p=$as_test_x
565
 
566
# Sed expression to map a string onto a valid CPP name.
567
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
 
569
# Sed expression to map a string onto a valid variable name.
570
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
 
572
 
573
 
574
 
575
# Check that we are running under the correct shell.
576
SHELL=${CONFIG_SHELL-/bin/sh}
577
 
578
case X$ECHO in
579
X*--fallback-echo)
580
  # Remove one level of quotation (which was required for Make).
581
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
582
  ;;
583
esac
584
 
585
echo=${ECHO-echo}
586
if test "X$1" = X--no-reexec; then
587
  # Discard the --no-reexec flag, and continue.
588
  shift
589
elif test "X$1" = X--fallback-echo; then
590
  # Avoid inline document here, it may be left over
591
  :
592
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
593
  # Yippee, $echo works!
594
  :
595
else
596
  # Restart under the correct shell.
597
  exec $SHELL "$0" --no-reexec ${1+"$@"}
598
fi
599
 
600
if test "X$1" = X--fallback-echo; then
601
  # used as fallback echo
602
  shift
603
  cat <<EOF
604
$*
605
EOF
606
  exit 0
607
fi
608
 
609
# The HP-UX ksh and POSIX shell print the target directory to stdout
610
# if CDPATH is set.
611
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
612
 
613
if test -z "$ECHO"; then
614
if test "X${echo_test_string+set}" != Xset; then
615
# find a string as large as possible, as long as the shell can cope with it
616
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
619
       echo_test_string="`eval $cmd`" &&
620
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
621
    then
622
      break
623
    fi
624
  done
625
fi
626
 
627
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
628
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
629
   test "X$echo_testing_string" = "X$echo_test_string"; then
630
  :
631
else
632
  # The Solaris, AIX, and Digital Unix default echo programs unquote
633
  # backslashes.  This makes it impossible to quote backslashes using
634
  #   echo "$something" | sed 's/\\/\\\\/g'
635
  #
636
  # So, first we look for a working echo in the user's PATH.
637
 
638
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
639
  for dir in $PATH /usr/ucb; do
640
    IFS="$lt_save_ifs"
641
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
642
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
643
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
644
       test "X$echo_testing_string" = "X$echo_test_string"; then
645
      echo="$dir/echo"
646
      break
647
    fi
648
  done
649
  IFS="$lt_save_ifs"
650
 
651
  if test "X$echo" = Xecho; then
652
    # We didn't find a better echo, so look for alternatives.
653
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
654
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
655
       test "X$echo_testing_string" = "X$echo_test_string"; then
656
      # This shell has a builtin print -r that does the trick.
657
      echo='print -r'
658
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
659
	 test "X$CONFIG_SHELL" != X/bin/ksh; then
660
      # If we have ksh, try running configure again with it.
661
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
662
      export ORIGINAL_CONFIG_SHELL
663
      CONFIG_SHELL=/bin/ksh
664
      export CONFIG_SHELL
665
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
666
    else
667
      # Try using printf.
668
      echo='printf %s\n'
669
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
670
	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
671
	 test "X$echo_testing_string" = "X$echo_test_string"; then
672
	# Cool, printf works
673
	:
674
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
675
	   test "X$echo_testing_string" = 'X\t' &&
676
	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
677
	   test "X$echo_testing_string" = "X$echo_test_string"; then
678
	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
679
	export CONFIG_SHELL
680
	SHELL="$CONFIG_SHELL"
681
	export SHELL
682
	echo="$CONFIG_SHELL $0 --fallback-echo"
683
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
684
	   test "X$echo_testing_string" = 'X\t' &&
685
	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
686
	   test "X$echo_testing_string" = "X$echo_test_string"; then
687
	echo="$CONFIG_SHELL $0 --fallback-echo"
688
      else
689
	# maybe with a smaller string...
690
	prev=:
691
 
692
	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
693
	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
694
	  then
695
	    break
696
	  fi
697
	  prev="$cmd"
698
	done
699
 
700
	if test "$prev" != 'sed 50q "$0"'; then
701
	  echo_test_string=`eval $prev`
702
	  export echo_test_string
703
	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
704
	else
705
	  # Oops.  We lost completely, so just stick with echo.
706
	  echo=echo
707
	fi
708
      fi
709
    fi
710
  fi
711
fi
712
fi
713
 
714
# Copy echo and quote the copy suitably for passing to libtool from
715
# the Makefile, instead of quoting the original, which is used later.
716
ECHO=$echo
717
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
718
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
719
fi
720
 
721
 
722
 
723
 
724
tagnames=${tagnames+${tagnames},}CXX
725
 
726
tagnames=${tagnames+${tagnames},}F77
727
 
728
exec 7<&0 </dev/null 6>&1
729
 
730
# Name of the host.
731
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
732
# so uname gets run too.
733
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
734
 
735
#
736
# Initializations.
737
#
738
ac_default_prefix=/usr/local
739
ac_clean_files=
740
ac_config_libobj_dir=.
741
LIBOBJS=
742
cross_compiling=no
743
subdirs=
744
MFLAGS=
745
MAKEFLAGS=
746
SHELL=${CONFIG_SHELL-/bin/sh}
747
 
748
# Identity of this package.
749
PACKAGE_NAME=
750
PACKAGE_TARNAME=
751
PACKAGE_VERSION=
752
PACKAGE_STRING=
753
PACKAGE_BUGREPORT=
754
 
755
ac_unique_file="acinclude.m4"
756
ac_default_prefix=${KDEDIR:-the kde prefix}
757
# Factoring default headers for most tests.
758
ac_includes_default="\
759
#include <stdio.h>
760
#ifdef HAVE_SYS_TYPES_H
761
# include <sys/types.h>
762
#endif
763
#ifdef HAVE_SYS_STAT_H
764
# include <sys/stat.h>
765
#endif
766
#ifdef STDC_HEADERS
767
# include <stdlib.h>
768
# include <stddef.h>
769
#else
770
# ifdef HAVE_STDLIB_H
771
#  include <stdlib.h>
772
# endif
773
#endif
774
#ifdef HAVE_STRING_H
775
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
776
#  include <memory.h>
777
# endif
778
# include <string.h>
779
#endif
780
#ifdef HAVE_STRINGS_H
781
# include <strings.h>
782
#endif
783
#ifdef HAVE_INTTYPES_H
784
# include <inttypes.h>
785
#endif
786
#ifdef HAVE_STDINT_H
787
# include <stdint.h>
788
#endif
789
#ifdef HAVE_UNISTD_H
790
# include <unistd.h>
791
#endif"
792
 
216 andreas 793
ac_subst_vars='LTLIBOBJS
794
LIBOBJS
795
TOPSUBDIRS
796
LIB_KFM
797
LIB_KFILE
798
LIB_KSYCOCA
799
LIB_KUNITTEST
800
LIB_KDNSSD
801
LIB_KNEWSTUFF
802
LIB_KIMPROXY
803
LIB_KDEPIM
804
LIB_KUTILS
805
LIB_KDEPRINT
806
LIB_KPARTS
807
LIB_KSPELL
808
LIB_KHTML
809
LIB_KABC
810
LIB_KAB
811
LIB_SMB
812
LIB_KJS
813
LIB_KIO
814
LIB_KDEUI
815
LIB_KDECORE
816
LIB_KDED
817
kde_widgetdir
818
kde_styledir
819
kdeinitdir
820
kde_moduledir
821
kde_servicetypesdir
822
kde_servicesdir
823
kde_templatesdir
824
xdg_directorydir
825
xdg_menudir
826
xdg_appsdir
827
kde_bindir
828
kde_wallpaperdir
829
kde_mimedir
830
kde_kcfgdir
831
kde_confdir
832
kde_locale
833
kde_datadir
834
kde_sounddir
835
kde_icondir
836
kde_appsdir
837
kde_htmldir
838
XMLLINT
839
KDE_XSL_STYLESHEET
840
MEINPROC
841
ARTSCCONFIG
842
MCOPIDL
843
DCOP_DEPENDENCIES
844
DCOPIDL2CPP
845
DCOPIDL
846
DCOPIDLNG
847
KCFG_DEPENDENCIES
848
KCONFIG_COMPILER
849
MAKEKDEWIDGETS
850
include_ARTS_FALSE
851
include_ARTS_TRUE
852
AUTODIRS
853
all_libraries
854
all_includes
855
KDE_INCLUDES
856
KDE_LDFLAGS
857
kde_includes
858
kde_libraries
859
X_RPATH
860
KDE_RPATH
861
KDE_EXTRA_RPATH
862
kde_qtver
863
LIB_QPE
864
LIB_QT
865
UIC_TR
866
UIC
867
MOC
868
PERL
869
QT_LDFLAGS
870
QT_INCLUDES
871
qt_includes
872
qt_libraries
873
LIBJPEG
874
LIBPNG
875
LIBZ
876
USER_LDFLAGS
877
USER_INCLUDES
878
KDE_MT_LIBS
879
KDE_MT_LDFLAGS
880
USE_THREADS
881
LIBPTHREAD
882
LIB_XEXT
883
QTE_NORTTI
884
x_libraries
885
x_includes
886
X_LDFLAGS
887
X_INCLUDES
888
LIBSM
889
LIB_XRENDER
890
LIB_X11
891
X_PRE_LIBS
892
XMKMF
893
include_x11_FALSE
894
include_x11_TRUE
895
KDE_USE_PIE
896
KDE_USE_FPIE
897
LIBDL
898
LIBUCB
899
X_EXTRA_LIBS
900
LIBSOCKET
901
FRAMEWORK_COREAUDIO
902
LIB_POLL
903
LIBRESOLV
904
LIBCRYPT
905
LIBCOMPAT
906
LIBUTIL
907
XGETTEXT
908
GMSGFMT
909
MSGFMT
910
KDE_CHECK_PLUGIN
911
KDE_PLUGIN
912
LIBTOOL
913
ac_ct_F77
914
FFLAGS
915
F77
916
RANLIB
917
AR
918
ECHO
919
LN_S
920
EGREP
921
GREP
922
KDE_USE_NMCHECK_FALSE
923
KDE_USE_NMCHECK_TRUE
924
KDE_NO_UNDEFINED
925
KDE_USE_CLOSURE_FALSE
926
KDE_USE_CLOSURE_TRUE
927
KDE_USE_FINAL_FALSE
928
KDE_USE_FINAL_TRUE
929
LDFLAGS_NEW_DTAGS
930
LDFLAGS_AS_NEEDED
931
ENABLE_PERMISSIVE_FLAG
932
NOOPT_CFLAGS
933
NOOPT_CXXFLAGS
934
CXXCPP
935
USE_RTTI
936
USE_EXCEPTIONS
937
unsermake_enable_pch_FALSE
938
unsermake_enable_pch_TRUE
939
HAVE_GCC_VISIBILITY
940
WOVERLOADED_VIRTUAL
941
am__fastdepCXX_FALSE
942
am__fastdepCXX_TRUE
943
CXXDEPMODE
944
ac_ct_CXX
945
CXXFLAGS
946
CXX
947
CPP
948
am__fastdepCC_FALSE
949
am__fastdepCC_TRUE
950
CCDEPMODE
951
AMDEPBACKSLASH
952
AMDEP_FALSE
953
AMDEP_TRUE
954
am__quote
955
am__include
956
DEPDIR
957
OBJEXT
958
EXEEXT
959
ac_ct_CC
960
CPPFLAGS
961
LDFLAGS
962
CFLAGS
963
CC
964
CONF_FILES
965
kde_libs_htmldir
966
kde_libs_prefix
967
KDECONFIG
968
am__untar
969
am__tar
970
AMTAR
971
am__leading_dot
972
SET_MAKE
973
AWK
974
mkdir_p
975
INSTALL_STRIP_PROGRAM
976
STRIP
977
install_sh
978
MAKEINFO
979
AUTOHEADER
980
AUTOMAKE
981
AUTOCONF
982
ACLOCAL
983
VERSION
984
PACKAGE
985
CYGPATH_W
986
INSTALL_DATA
987
INSTALL_SCRIPT
988
INSTALL_PROGRAM
989
target_os
990
target_vendor
991
target_cpu
992
target
993
host_os
994
host_vendor
995
host_cpu
996
host
997
build_os
998
build_vendor
999
build_cpu
1000
build
1001
target_alias
1002
host_alias
1003
build_alias
1004
LIBS
1005
ECHO_T
1006
ECHO_N
1007
ECHO_C
1008
DEFS
1009
mandir
1010
localedir
1011
libdir
1012
psdir
1013
pdfdir
1014
dvidir
1015
htmldir
1016
infodir
1017
docdir
1018
oldincludedir
1019
includedir
1020
localstatedir
1021
sharedstatedir
1022
sysconfdir
1023
datadir
1024
datarootdir
1025
libexecdir
1026
sbindir
1027
bindir
1028
program_transform_name
1029
prefix
1030
exec_prefix
1031
PACKAGE_BUGREPORT
1032
PACKAGE_STRING
1033
PACKAGE_VERSION
1034
PACKAGE_TARNAME
1035
PACKAGE_NAME
88 andreas 1036
PATH_SEPARATOR
216 andreas 1037
SHELL'
88 andreas 1038
ac_subst_files=''
216 andreas 1039
ac_user_opts='
1040
enable_option_checking
1041
enable_fast_perl
1042
enable_debug
1043
enable_dummyoption
1044
enable_strict
1045
enable_warnings
1046
enable_profile
1047
enable_dependency_tracking
1048
enable_pch
1049
enable_coverage
1050
enable_new_ldflags
1051
enable_final
1052
enable_closure
1053
enable_nmcheck
1054
enable_shared
1055
enable_static
1056
enable_libsuffix
1057
enable_fast_install
1058
with_gnu_ld
1059
enable_libtool_lock
1060
with_pic
1061
with_tags
1062
enable_pie
1063
enable_embedded
1064
enable_qtopia
1065
enable_mac
1066
enable_mt
1067
enable_threading
1068
with_extra_includes
1069
with_extra_libs
1070
with_qt_dir
1071
with_qt_includes
1072
with_qt_libraries
1073
enable_rpath
1074
enable_path_check
1075
with_arts
1076
'
88 andreas 1077
      ac_precious_vars='build_alias
1078
host_alias
1079
target_alias
1080
CC
1081
CFLAGS
1082
LDFLAGS
1083
LIBS
1084
CPPFLAGS
1085
CPP
1086
CXX
1087
CXXFLAGS
1088
CCC
1089
CXXCPP
1090
F77
1091
FFLAGS
1092
XMKMF'
1093
 
1094
 
1095
# Initialize some variables set by options.
1096
ac_init_help=
1097
ac_init_version=false
216 andreas 1098
ac_unrecognized_opts=
1099
ac_unrecognized_sep=
88 andreas 1100
# The variables have the same names as the options, with
1101
# dashes changed to underlines.
1102
cache_file=/dev/null
1103
exec_prefix=NONE
1104
no_create=
1105
no_recursion=
1106
prefix=NONE
1107
program_prefix=NONE
1108
program_suffix=NONE
1109
program_transform_name=s,x,x,
1110
silent=
1111
site=
1112
srcdir=
1113
verbose=
1114
x_includes=NONE
1115
x_libraries=NONE
1116
 
1117
# Installation directory options.
1118
# These are left unexpanded so users can "make install exec_prefix=/foo"
1119
# and all the variables that are supposed to be based on exec_prefix
1120
# by default will actually change.
1121
# Use braces instead of parens because sh, perl, etc. also accept them.
1122
# (The list follows the same order as the GNU Coding Standards.)
1123
bindir='${exec_prefix}/bin'
1124
sbindir='${exec_prefix}/sbin'
1125
libexecdir='${exec_prefix}/libexec'
1126
datarootdir='${prefix}/share'
1127
datadir='${datarootdir}'
1128
sysconfdir='${prefix}/etc'
1129
sharedstatedir='${prefix}/com'
1130
localstatedir='${prefix}/var'
1131
includedir='${prefix}/include'
1132
oldincludedir='/usr/include'
1133
docdir='${datarootdir}/doc/${PACKAGE}'
1134
infodir='${datarootdir}/info'
1135
htmldir='${docdir}'
1136
dvidir='${docdir}'
1137
pdfdir='${docdir}'
1138
psdir='${docdir}'
1139
libdir='${exec_prefix}/lib'
1140
localedir='${datarootdir}/locale'
1141
mandir='${datarootdir}/man'
1142
 
1143
ac_prev=
1144
ac_dashdash=
1145
for ac_option
1146
do
1147
  # If the previous option needs an argument, assign it.
1148
  if test -n "$ac_prev"; then
1149
    eval $ac_prev=\$ac_option
1150
    ac_prev=
1151
    continue
1152
  fi
1153
 
1154
  case $ac_option in
1155
  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1156
  *)	ac_optarg=yes ;;
1157
  esac
1158
 
1159
  # Accept the important Cygnus configure options, so we can diagnose typos.
1160
 
1161
  case $ac_dashdash$ac_option in
1162
  --)
1163
    ac_dashdash=yes ;;
1164
 
1165
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1166
    ac_prev=bindir ;;
1167
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1168
    bindir=$ac_optarg ;;
1169
 
1170
  -build | --build | --buil | --bui | --bu)
1171
    ac_prev=build_alias ;;
1172
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1173
    build_alias=$ac_optarg ;;
1174
 
1175
  -cache-file | --cache-file | --cache-fil | --cache-fi \
1176
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1177
    ac_prev=cache_file ;;
1178
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1179
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1180
    cache_file=$ac_optarg ;;
1181
 
1182
  --config-cache | -C)
1183
    cache_file=config.cache ;;
1184
 
1185
  -datadir | --datadir | --datadi | --datad)
1186
    ac_prev=datadir ;;
1187
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1188
    datadir=$ac_optarg ;;
1189
 
1190
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1191
  | --dataroo | --dataro | --datar)
1192
    ac_prev=datarootdir ;;
1193
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1194
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1195
    datarootdir=$ac_optarg ;;
1196
 
1197
  -disable-* | --disable-*)
216 andreas 1198
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
88 andreas 1199
    # Reject names that are not valid shell variable names.
216 andreas 1200
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1201
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
88 andreas 1202
   { (exit 1); exit 1; }; }
216 andreas 1203
    ac_useropt_orig=$ac_useropt
1204
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1205
    case $ac_user_opts in
1206
      *"
1207
"enable_$ac_useropt"
1208
"*) ;;
1209
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1210
	 ac_unrecognized_sep=', ';;
1211
    esac
1212
    eval enable_$ac_useropt=no ;;
88 andreas 1213
 
1214
  -docdir | --docdir | --docdi | --doc | --do)
1215
    ac_prev=docdir ;;
1216
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1217
    docdir=$ac_optarg ;;
1218
 
1219
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1220
    ac_prev=dvidir ;;
1221
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1222
    dvidir=$ac_optarg ;;
1223
 
1224
  -enable-* | --enable-*)
216 andreas 1225
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
88 andreas 1226
    # Reject names that are not valid shell variable names.
216 andreas 1227
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1228
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
88 andreas 1229
   { (exit 1); exit 1; }; }
216 andreas 1230
    ac_useropt_orig=$ac_useropt
1231
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1232
    case $ac_user_opts in
1233
      *"
1234
"enable_$ac_useropt"
1235
"*) ;;
1236
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1237
	 ac_unrecognized_sep=', ';;
1238
    esac
1239
    eval enable_$ac_useropt=\$ac_optarg ;;
88 andreas 1240
 
1241
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1242
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1243
  | --exec | --exe | --ex)
1244
    ac_prev=exec_prefix ;;
1245
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1246
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1247
  | --exec=* | --exe=* | --ex=*)
1248
    exec_prefix=$ac_optarg ;;
1249
 
1250
  -gas | --gas | --ga | --g)
1251
    # Obsolete; use --with-gas.
1252
    with_gas=yes ;;
1253
 
1254
  -help | --help | --hel | --he | -h)
1255
    ac_init_help=long ;;
1256
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1257
    ac_init_help=recursive ;;
1258
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1259
    ac_init_help=short ;;
1260
 
1261
  -host | --host | --hos | --ho)
1262
    ac_prev=host_alias ;;
1263
  -host=* | --host=* | --hos=* | --ho=*)
1264
    host_alias=$ac_optarg ;;
1265
 
1266
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1267
    ac_prev=htmldir ;;
1268
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1269
  | --ht=*)
1270
    htmldir=$ac_optarg ;;
1271
 
1272
  -includedir | --includedir | --includedi | --included | --include \
1273
  | --includ | --inclu | --incl | --inc)
1274
    ac_prev=includedir ;;
1275
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1276
  | --includ=* | --inclu=* | --incl=* | --inc=*)
1277
    includedir=$ac_optarg ;;
1278
 
1279
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1280
    ac_prev=infodir ;;
1281
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1282
    infodir=$ac_optarg ;;
1283
 
1284
  -libdir | --libdir | --libdi | --libd)
1285
    ac_prev=libdir ;;
1286
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1287
    libdir=$ac_optarg ;;
1288
 
1289
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1290
  | --libexe | --libex | --libe)
1291
    ac_prev=libexecdir ;;
1292
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1293
  | --libexe=* | --libex=* | --libe=*)
1294
    libexecdir=$ac_optarg ;;
1295
 
1296
  -localedir | --localedir | --localedi | --localed | --locale)
1297
    ac_prev=localedir ;;
1298
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1299
    localedir=$ac_optarg ;;
1300
 
1301
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1302
  | --localstate | --localstat | --localsta | --localst | --locals)
1303
    ac_prev=localstatedir ;;
1304
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1305
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1306
    localstatedir=$ac_optarg ;;
1307
 
1308
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1309
    ac_prev=mandir ;;
1310
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1311
    mandir=$ac_optarg ;;
1312
 
1313
  -nfp | --nfp | --nf)
1314
    # Obsolete; use --without-fp.
1315
    with_fp=no ;;
1316
 
1317
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1318
  | --no-cr | --no-c | -n)
1319
    no_create=yes ;;
1320
 
1321
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1322
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1323
    no_recursion=yes ;;
1324
 
1325
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1326
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1327
  | --oldin | --oldi | --old | --ol | --o)
1328
    ac_prev=oldincludedir ;;
1329
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1330
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1331
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1332
    oldincludedir=$ac_optarg ;;
1333
 
1334
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1335
    ac_prev=prefix ;;
1336
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1337
    prefix=$ac_optarg ;;
1338
 
1339
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1340
  | --program-pre | --program-pr | --program-p)
1341
    ac_prev=program_prefix ;;
1342
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1343
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1344
    program_prefix=$ac_optarg ;;
1345
 
1346
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1347
  | --program-suf | --program-su | --program-s)
1348
    ac_prev=program_suffix ;;
1349
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1350
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1351
    program_suffix=$ac_optarg ;;
1352
 
1353
  -program-transform-name | --program-transform-name \
1354
  | --program-transform-nam | --program-transform-na \
1355
  | --program-transform-n | --program-transform- \
1356
  | --program-transform | --program-transfor \
1357
  | --program-transfo | --program-transf \
1358
  | --program-trans | --program-tran \
1359
  | --progr-tra | --program-tr | --program-t)
1360
    ac_prev=program_transform_name ;;
1361
  -program-transform-name=* | --program-transform-name=* \
1362
  | --program-transform-nam=* | --program-transform-na=* \
1363
  | --program-transform-n=* | --program-transform-=* \
1364
  | --program-transform=* | --program-transfor=* \
1365
  | --program-transfo=* | --program-transf=* \
1366
  | --program-trans=* | --program-tran=* \
1367
  | --progr-tra=* | --program-tr=* | --program-t=*)
1368
    program_transform_name=$ac_optarg ;;
1369
 
1370
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1371
    ac_prev=pdfdir ;;
1372
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1373
    pdfdir=$ac_optarg ;;
1374
 
1375
  -psdir | --psdir | --psdi | --psd | --ps)
1376
    ac_prev=psdir ;;
1377
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1378
    psdir=$ac_optarg ;;
1379
 
1380
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1381
  | -silent | --silent | --silen | --sile | --sil)
1382
    silent=yes ;;
1383
 
1384
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1385
    ac_prev=sbindir ;;
1386
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1387
  | --sbi=* | --sb=*)
1388
    sbindir=$ac_optarg ;;
1389
 
1390
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1391
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1392
  | --sharedst | --shareds | --shared | --share | --shar \
1393
  | --sha | --sh)
1394
    ac_prev=sharedstatedir ;;
1395
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1396
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1397
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1398
  | --sha=* | --sh=*)
1399
    sharedstatedir=$ac_optarg ;;
1400
 
1401
  -site | --site | --sit)
1402
    ac_prev=site ;;
1403
  -site=* | --site=* | --sit=*)
1404
    site=$ac_optarg ;;
1405
 
1406
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1407
    ac_prev=srcdir ;;
1408
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1409
    srcdir=$ac_optarg ;;
1410
 
1411
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1412
  | --syscon | --sysco | --sysc | --sys | --sy)
1413
    ac_prev=sysconfdir ;;
1414
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1415
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1416
    sysconfdir=$ac_optarg ;;
1417
 
1418
  -target | --target | --targe | --targ | --tar | --ta | --t)
1419
    ac_prev=target_alias ;;
1420
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1421
    target_alias=$ac_optarg ;;
1422
 
1423
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1424
    verbose=yes ;;
1425
 
1426
  -version | --version | --versio | --versi | --vers | -V)
1427
    ac_init_version=: ;;
1428
 
1429
  -with-* | --with-*)
216 andreas 1430
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
88 andreas 1431
    # Reject names that are not valid shell variable names.
216 andreas 1432
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1433
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
88 andreas 1434
   { (exit 1); exit 1; }; }
216 andreas 1435
    ac_useropt_orig=$ac_useropt
1436
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1437
    case $ac_user_opts in
1438
      *"
1439
"with_$ac_useropt"
1440
"*) ;;
1441
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1442
	 ac_unrecognized_sep=', ';;
1443
    esac
1444
    eval with_$ac_useropt=\$ac_optarg ;;
88 andreas 1445
 
1446
  -without-* | --without-*)
216 andreas 1447
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
88 andreas 1448
    # Reject names that are not valid shell variable names.
216 andreas 1449
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1450
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
88 andreas 1451
   { (exit 1); exit 1; }; }
216 andreas 1452
    ac_useropt_orig=$ac_useropt
1453
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1454
    case $ac_user_opts in
1455
      *"
1456
"with_$ac_useropt"
1457
"*) ;;
1458
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1459
	 ac_unrecognized_sep=', ';;
1460
    esac
1461
    eval with_$ac_useropt=no ;;
88 andreas 1462
 
1463
  --x)
1464
    # Obsolete; use --with-x.
1465
    with_x=yes ;;
1466
 
1467
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1468
  | --x-incl | --x-inc | --x-in | --x-i)
1469
    ac_prev=x_includes ;;
1470
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1471
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1472
    x_includes=$ac_optarg ;;
1473
 
1474
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1475
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1476
    ac_prev=x_libraries ;;
1477
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1478
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1479
    x_libraries=$ac_optarg ;;
1480
 
216 andreas 1481
  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
88 andreas 1482
Try \`$0 --help' for more information." >&2
1483
   { (exit 1); exit 1; }; }
1484
    ;;
1485
 
1486
  *=*)
1487
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1488
    # Reject names that are not valid shell variable names.
1489
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
216 andreas 1490
      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
88 andreas 1491
   { (exit 1); exit 1; }; }
1492
    eval $ac_envvar=\$ac_optarg
1493
    export $ac_envvar ;;
1494
 
1495
  *)
1496
    # FIXME: should be removed in autoconf 3.0.
216 andreas 1497
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
88 andreas 1498
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
216 andreas 1499
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
88 andreas 1500
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1501
    ;;
1502
 
1503
  esac
1504
done
1505
 
1506
if test -n "$ac_prev"; then
1507
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
216 andreas 1508
  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
88 andreas 1509
   { (exit 1); exit 1; }; }
1510
fi
1511
 
216 andreas 1512
if test -n "$ac_unrecognized_opts"; then
1513
  case $enable_option_checking in
1514
    no) ;;
1515
    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1516
   { (exit 1); exit 1; }; } ;;
1517
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1518
  esac
1519
fi
1520
 
1521
# Check all directory arguments for consistency.
88 andreas 1522
for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1523
		datadir sysconfdir sharedstatedir localstatedir includedir \
1524
		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1525
		libdir localedir mandir
1526
do
1527
  eval ac_val=\$$ac_var
216 andreas 1528
  # Remove trailing slashes.
88 andreas 1529
  case $ac_val in
216 andreas 1530
    */ )
1531
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1532
      eval $ac_var=\$ac_val;;
1533
  esac
1534
  # Be sure to have absolute directory names.
1535
  case $ac_val in
88 andreas 1536
    [\\/$]* | ?:[\\/]* )  continue;;
1537
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1538
  esac
216 andreas 1539
  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
88 andreas 1540
   { (exit 1); exit 1; }; }
1541
done
1542
 
1543
# There might be people who depend on the old broken behavior: `$host'
1544
# used to hold the argument of --host etc.
1545
# FIXME: To remove some day.
1546
build=$build_alias
1547
host=$host_alias
1548
target=$target_alias
1549
 
1550
# FIXME: To remove some day.
1551
if test "x$host_alias" != x; then
1552
  if test "x$build_alias" = x; then
1553
    cross_compiling=maybe
216 andreas 1554
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
88 andreas 1555
    If a cross compiler is detected then cross compile mode will be used." >&2
1556
  elif test "x$build_alias" != "x$host_alias"; then
1557
    cross_compiling=yes
1558
  fi
1559
fi
1560
 
1561
ac_tool_prefix=
1562
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1563
 
1564
test "$silent" = yes && exec 6>/dev/null
1565
 
1566
 
1567
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1568
ac_ls_di=`ls -di .` &&
1569
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
216 andreas 1570
  { $as_echo "$as_me: error: working directory cannot be determined" >&2
88 andreas 1571
   { (exit 1); exit 1; }; }
1572
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
216 andreas 1573
  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
88 andreas 1574
   { (exit 1); exit 1; }; }
1575
 
1576
 
1577
# Find the source files, if location was not specified.
1578
if test -z "$srcdir"; then
1579
  ac_srcdir_defaulted=yes
1580
  # Try the directory containing this script, then the parent directory.
216 andreas 1581
  ac_confdir=`$as_dirname -- "$as_myself" ||
1582
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1583
	 X"$as_myself" : 'X\(//\)[^/]' \| \
1584
	 X"$as_myself" : 'X\(//\)$' \| \
1585
	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1586
$as_echo X"$as_myself" |
88 andreas 1587
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1588
	    s//\1/
1589
	    q
1590
	  }
1591
	  /^X\(\/\/\)[^/].*/{
1592
	    s//\1/
1593
	    q
1594
	  }
1595
	  /^X\(\/\/\)$/{
1596
	    s//\1/
1597
	    q
1598
	  }
1599
	  /^X\(\/\).*/{
1600
	    s//\1/
1601
	    q
1602
	  }
1603
	  s/.*/./; q'`
1604
  srcdir=$ac_confdir
1605
  if test ! -r "$srcdir/$ac_unique_file"; then
1606
    srcdir=..
1607
  fi
1608
else
1609
  ac_srcdir_defaulted=no
1610
fi
1611
if test ! -r "$srcdir/$ac_unique_file"; then
1612
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
216 andreas 1613
  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
88 andreas 1614
   { (exit 1); exit 1; }; }
1615
fi
1616
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1617
ac_abs_confdir=`(
216 andreas 1618
	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
88 andreas 1619
   { (exit 1); exit 1; }; }
1620
	pwd)`
1621
# When building in place, set srcdir=.
1622
if test "$ac_abs_confdir" = "$ac_pwd"; then
1623
  srcdir=.
1624
fi
1625
# Remove unnecessary trailing slashes from srcdir.
1626
# Double slashes in file names in object file debugging info
1627
# mess up M-x gdb in Emacs.
1628
case $srcdir in
1629
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1630
esac
1631
for ac_var in $ac_precious_vars; do
1632
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1633
  eval ac_env_${ac_var}_value=\$${ac_var}
1634
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1635
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1636
done
1637
 
1638
#
1639
# Report the --help message.
1640
#
1641
if test "$ac_init_help" = "long"; then
1642
  # Omit some internal or obsolete options to make the list less imposing.
1643
  # This message is too long to be a string in the A/UX 3.1 sh.
1644
  cat <<_ACEOF
1645
\`configure' configures this package to adapt to many kinds of systems.
1646
 
1647
Usage: $0 [OPTION]... [VAR=VALUE]...
1648
 
1649
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1650
VAR=VALUE.  See below for descriptions of some of the useful variables.
1651
 
1652
Defaults for the options are specified in brackets.
1653
 
1654
Configuration:
1655
  -h, --help              display this help and exit
1656
      --help=short        display options specific to this package
1657
      --help=recursive    display the short help of all the included packages
1658
  -V, --version           display version information and exit
1659
  -q, --quiet, --silent   do not print \`checking...' messages
1660
      --cache-file=FILE   cache test results in FILE [disabled]
1661
  -C, --config-cache      alias for \`--cache-file=config.cache'
1662
  -n, --no-create         do not create output files
1663
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1664
 
1665
Installation directories:
1666
  --prefix=PREFIX         install architecture-independent files in PREFIX
216 andreas 1667
                          [$ac_default_prefix]
88 andreas 1668
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
216 andreas 1669
                          [PREFIX]
88 andreas 1670
 
1671
By default, \`make install' will install all the files in
1672
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1673
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1674
for instance \`--prefix=\$HOME'.
1675
 
1676
For better control, use the options below.
1677
 
1678
Fine tuning of the installation directories:
216 andreas 1679
  --bindir=DIR            user executables [EPREFIX/bin]
1680
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1681
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1682
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1683
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1684
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1685
  --libdir=DIR            object code libraries [EPREFIX/lib]
1686
  --includedir=DIR        C header files [PREFIX/include]
1687
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1688
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1689
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1690
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1691
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1692
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1693
  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1694
  --htmldir=DIR           html documentation [DOCDIR]
1695
  --dvidir=DIR            dvi documentation [DOCDIR]
1696
  --pdfdir=DIR            pdf documentation [DOCDIR]
1697
  --psdir=DIR             ps documentation [DOCDIR]
88 andreas 1698
_ACEOF
1699
 
1700
  cat <<\_ACEOF
1701
 
1702
Program names:
1703
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1704
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1705
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1706
 
1707
System types:
1708
  --build=BUILD     configure for building on BUILD [guessed]
1709
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1710
  --target=TARGET   configure for building compilers for TARGET [HOST]
1711
_ACEOF
1712
fi
1713
 
1714
if test -n "$ac_init_help"; then
1715
 
1716
  cat <<\_ACEOF
1717
 
1718
Optional Features:
216 andreas 1719
  --disable-option-checking  ignore unrecognized --enable/--with options
88 andreas 1720
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1721
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1722
  --disable-fast-perl     disable fast Makefile generation (needs perl)
1723
  --enable-debug=ARG      enables debug symbols (yes|no|full) default=no
1724
  --disable-debug         disables debug output and debug symbols default=no
1725
  --enable-strict         compiles with strict compiler options (may not
1726
                          work!)
1727
  --disable-warnings      disables compilation with -Wall and similar
1728
  --enable-profile        creates profiling infos default=no
1729
  --disable-dependency-tracking  speeds up one-time build
1730
  --enable-dependency-tracking   do not reject slow dependency extractors
1731
  --enable-pch            enables precompiled header support (currently only
1732
                          KCC or gcc >=3.4+unsermake) default=no
1733
  --enable-coverage       use gcc coverage testing
1734
  --enable-new-ldflags    enable the new linker flags
1735
  --enable-final          build size optimized apps (experimental - needs lots
1736
                          of memory)
1737
  --enable-closure        delay template instantiation
1738
  --enable-nmcheck        enable automatic namespace cleanness check
1739
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1740
  --enable-static[=PKGS]  build static libraries [default=no]
1741
  --enable-libsuffix      /lib directory suffix (64,32,none,auto=default)
1742
  --enable-fast-install[=PKGS]
1743
                          optimize for fast installation [default=yes]
1744
  --disable-libtool-lock  avoid locking (might break parallel builds)
1745
  --enable-pie            platform supports PIE linking default=detect
1746
  --enable-embedded       link to Qt-embedded, don't use X
1747
  --enable-qtopia         link to Qt-embedded, link to the Qtopia Environment
1748
  --enable-mac            link to Qt/Mac (don't use X)
1749
  --disable-mt            link to non-threaded Qt (deprecated)
1750
  --disable-threading     disables threading even if libpthread found
1751
  --disable-rpath         do not use the rpath feature of ld
1752
  --disable-path-check    don't try to find out, where to install
1753
 
1754
Optional Packages:
1755
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1756
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1757
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1758
  --with-pic              try to use only PIC/non-PIC objects [default=use
1759
                          both]
1760
  --with-tags[=TAGS]      include additional configurations [automatic]
1761
  --with-extra-includes=DIR
1762
                          adds non standard include paths
1763
  --with-extra-libs=DIR   adds non standard library paths
1764
  --with-qt-dir=DIR       where the root of Qt is installed
1765
  --with-qt-includes=DIR  where the Qt includes are.
1766
  --with-qt-libraries=DIR where the Qt library is installed.
1767
  --without-arts          build without aRts default=no
1768
 
1769
Some influential environment variables:
1770
  CC          C compiler command
1771
  CFLAGS      C compiler flags
1772
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1773
              nonstandard directory <lib dir>
1774
  LIBS        libraries to pass to the linker, e.g. -l<library>
1775
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1776
              you have headers in a nonstandard directory <include dir>
1777
  CPP         C preprocessor
1778
  CXX         C++ compiler command
1779
  CXXFLAGS    C++ compiler flags
1780
  CXXCPP      C++ preprocessor
1781
  F77         Fortran 77 compiler command
1782
  FFLAGS      Fortran 77 compiler flags
1783
  XMKMF       Path to xmkmf, Makefile generator for X Window System
1784
 
1785
Use these variables to override the choices made by `configure' or to help
1786
it to find libraries and programs with nonstandard names/locations.
1787
 
1788
_ACEOF
1789
ac_status=$?
1790
fi
1791
 
1792
if test "$ac_init_help" = "recursive"; then
1793
  # If there are subdirs, report their specific --help.
1794
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
216 andreas 1795
    test -d "$ac_dir" ||
1796
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1797
      continue
88 andreas 1798
    ac_builddir=.
1799
 
1800
case "$ac_dir" in
1801
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1802
*)
216 andreas 1803
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
88 andreas 1804
  # A ".." for each directory in $ac_dir_suffix.
216 andreas 1805
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
88 andreas 1806
  case $ac_top_builddir_sub in
1807
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1808
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1809
  esac ;;
1810
esac
1811
ac_abs_top_builddir=$ac_pwd
1812
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1813
# for backward compatibility:
1814
ac_top_builddir=$ac_top_build_prefix
1815
 
1816
case $srcdir in
1817
  .)  # We are building in place.
1818
    ac_srcdir=.
1819
    ac_top_srcdir=$ac_top_builddir_sub
1820
    ac_abs_top_srcdir=$ac_pwd ;;
1821
  [\\/]* | ?:[\\/]* )  # Absolute name.
1822
    ac_srcdir=$srcdir$ac_dir_suffix;
1823
    ac_top_srcdir=$srcdir
1824
    ac_abs_top_srcdir=$srcdir ;;
1825
  *) # Relative name.
1826
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1827
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1828
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1829
esac
1830
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1831
 
1832
    cd "$ac_dir" || { ac_status=$?; continue; }
1833
    # Check for guested configure.
1834
    if test -f "$ac_srcdir/configure.gnu"; then
1835
      echo &&
1836
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1837
    elif test -f "$ac_srcdir/configure"; then
1838
      echo &&
1839
      $SHELL "$ac_srcdir/configure" --help=recursive
1840
    else
216 andreas 1841
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
88 andreas 1842
    fi || ac_status=$?
1843
    cd "$ac_pwd" || { ac_status=$?; break; }
1844
  done
1845
fi
1846
 
1847
test -n "$ac_init_help" && exit $ac_status
1848
if $ac_init_version; then
1849
  cat <<\_ACEOF
1850
configure
216 andreas 1851
generated by GNU Autoconf 2.63
88 andreas 1852
 
1853
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
216 andreas 1854
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
88 andreas 1855
This configure script is free software; the Free Software Foundation
1856
gives unlimited permission to copy, distribute and modify it.
1857
_ACEOF
1858
  exit
1859
fi
1860
cat >config.log <<_ACEOF
1861
This file contains any messages produced by compilers while
1862
running configure, to aid debugging if configure makes a mistake.
1863
 
1864
It was created by $as_me, which was
216 andreas 1865
generated by GNU Autoconf 2.63.  Invocation command line was
88 andreas 1866
 
1867
  $ $0 $@
1868
 
1869
_ACEOF
1870
exec 5>>config.log
1871
{
1872
cat <<_ASUNAME
1873
## --------- ##
1874
## Platform. ##
1875
## --------- ##
1876
 
1877
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1878
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1879
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1880
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1881
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1882
 
1883
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1884
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1885
 
1886
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1887
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1888
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1889
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1890
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1891
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1892
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1893
 
1894
_ASUNAME
1895
 
1896
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1897
for as_dir in $PATH
1898
do
1899
  IFS=$as_save_IFS
1900
  test -z "$as_dir" && as_dir=.
216 andreas 1901
  $as_echo "PATH: $as_dir"
88 andreas 1902
done
1903
IFS=$as_save_IFS
1904
 
1905
} >&5
1906
 
1907
cat >&5 <<_ACEOF
1908
 
1909
 
1910
## ----------- ##
1911
## Core tests. ##
1912
## ----------- ##
1913
 
1914
_ACEOF
1915
 
1916
 
1917
# Keep a trace of the command line.
1918
# Strip out --no-create and --no-recursion so they do not pile up.
1919
# Strip out --silent because we don't want to record it for future runs.
1920
# Also quote any args containing shell meta-characters.
1921
# Make two passes to allow for proper duplicate-argument suppression.
1922
ac_configure_args=
1923
ac_configure_args0=
1924
ac_configure_args1=
1925
ac_must_keep_next=false
1926
for ac_pass in 1 2
1927
do
1928
  for ac_arg
1929
  do
1930
    case $ac_arg in
1931
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1932
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1933
    | -silent | --silent | --silen | --sile | --sil)
1934
      continue ;;
1935
    *\'*)
216 andreas 1936
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
88 andreas 1937
    esac
1938
    case $ac_pass in
1939
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1940
    2)
1941
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1942
      if test $ac_must_keep_next = true; then
1943
	ac_must_keep_next=false # Got value, back to normal.
1944
      else
1945
	case $ac_arg in
1946
	  *=* | --config-cache | -C | -disable-* | --disable-* \
1947
	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1948
	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1949
	  | -with-* | --with-* | -without-* | --without-* | --x)
1950
	    case "$ac_configure_args0 " in
1951
	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1952
	    esac
1953
	    ;;
1954
	  -* ) ac_must_keep_next=true ;;
1955
	esac
1956
      fi
1957
      ac_configure_args="$ac_configure_args '$ac_arg'"
1958
      ;;
1959
    esac
1960
  done
1961
done
1962
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1963
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1964
 
1965
# When interrupted or exit'd, cleanup temporary files, and complete
1966
# config.log.  We remove comments because anyway the quotes in there
1967
# would cause problems or look ugly.
1968
# WARNING: Use '\'' to represent an apostrophe within the trap.
1969
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1970
trap 'exit_status=$?
1971
  # Save into config.log some information that might help in debugging.
1972
  {
1973
    echo
1974
 
1975
    cat <<\_ASBOX
1976
## ---------------- ##
1977
## Cache variables. ##
1978
## ---------------- ##
1979
_ASBOX
1980
    echo
1981
    # The following way of writing the cache mishandles newlines in values,
1982
(
1983
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1984
    eval ac_val=\$$ac_var
1985
    case $ac_val in #(
1986
    *${as_nl}*)
1987
      case $ac_var in #(
216 andreas 1988
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1989
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
88 andreas 1990
      esac
1991
      case $ac_var in #(
1992
      _ | IFS | as_nl) ;; #(
216 andreas 1993
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
88 andreas 1994
      *) $as_unset $ac_var ;;
1995
      esac ;;
1996
    esac
1997
  done
1998
  (set) 2>&1 |
1999
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2000
    *${as_nl}ac_space=\ *)
2001
      sed -n \
2002
	"s/'\''/'\''\\\\'\'''\''/g;
2003
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2004
      ;; #(
2005
    *)
2006
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2007
      ;;
2008
    esac |
2009
    sort
2010
)
2011
    echo
2012
 
2013
    cat <<\_ASBOX
2014
## ----------------- ##
2015
## Output variables. ##
2016
## ----------------- ##
2017
_ASBOX
2018
    echo
2019
    for ac_var in $ac_subst_vars
2020
    do
2021
      eval ac_val=\$$ac_var
2022
      case $ac_val in
216 andreas 2023
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
88 andreas 2024
      esac
216 andreas 2025
      $as_echo "$ac_var='\''$ac_val'\''"
88 andreas 2026
    done | sort
2027
    echo
2028
 
2029
    if test -n "$ac_subst_files"; then
2030
      cat <<\_ASBOX
2031
## ------------------- ##
2032
## File substitutions. ##
2033
## ------------------- ##
2034
_ASBOX
2035
      echo
2036
      for ac_var in $ac_subst_files
2037
      do
2038
	eval ac_val=\$$ac_var
2039
	case $ac_val in
216 andreas 2040
	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
88 andreas 2041
	esac
216 andreas 2042
	$as_echo "$ac_var='\''$ac_val'\''"
88 andreas 2043
      done | sort
2044
      echo
2045
    fi
2046
 
2047
    if test -s confdefs.h; then
2048
      cat <<\_ASBOX
2049
## ----------- ##
2050
## confdefs.h. ##
2051
## ----------- ##
2052
_ASBOX
2053
      echo
2054
      cat confdefs.h
2055
      echo
2056
    fi
2057
    test "$ac_signal" != 0 &&
216 andreas 2058
      $as_echo "$as_me: caught signal $ac_signal"
2059
    $as_echo "$as_me: exit $exit_status"
88 andreas 2060
  } >&5
2061
  rm -f core *.core core.conftest.* &&
2062
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2063
    exit $exit_status
2064
' 0
2065
for ac_signal in 1 2 13 15; do
2066
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2067
done
2068
ac_signal=0
2069
 
2070
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2071
rm -f -r conftest* confdefs.h
2072
 
2073
# Predefined preprocessor variables.
2074
 
2075
cat >>confdefs.h <<_ACEOF
2076
#define PACKAGE_NAME "$PACKAGE_NAME"
2077
_ACEOF
2078
 
2079
 
2080
cat >>confdefs.h <<_ACEOF
2081
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2082
_ACEOF
2083
 
2084
 
2085
cat >>confdefs.h <<_ACEOF
2086
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2087
_ACEOF
2088
 
2089
 
2090
cat >>confdefs.h <<_ACEOF
2091
#define PACKAGE_STRING "$PACKAGE_STRING"
2092
_ACEOF
2093
 
2094
 
2095
cat >>confdefs.h <<_ACEOF
2096
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2097
_ACEOF
2098
 
2099
 
2100
# Let the site file select an alternate cache file if it wants to.
216 andreas 2101
# Prefer an explicitly selected file to automatically selected ones.
2102
ac_site_file1=NONE
2103
ac_site_file2=NONE
88 andreas 2104
if test -n "$CONFIG_SITE"; then
216 andreas 2105
  ac_site_file1=$CONFIG_SITE
88 andreas 2106
elif test "x$prefix" != xNONE; then
216 andreas 2107
  ac_site_file1=$prefix/share/config.site
2108
  ac_site_file2=$prefix/etc/config.site
88 andreas 2109
else
216 andreas 2110
  ac_site_file1=$ac_default_prefix/share/config.site
2111
  ac_site_file2=$ac_default_prefix/etc/config.site
88 andreas 2112
fi
216 andreas 2113
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
88 andreas 2114
do
216 andreas 2115
  test "x$ac_site_file" = xNONE && continue
88 andreas 2116
  if test -r "$ac_site_file"; then
216 andreas 2117
    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2118
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
88 andreas 2119
    sed 's/^/| /' "$ac_site_file" >&5
2120
    . "$ac_site_file"
2121
  fi
2122
done
2123
 
2124
if test -r "$cache_file"; then
2125
  # Some versions of bash will fail to source /dev/null (special
2126
  # files actually), so we avoid doing that.
2127
  if test -f "$cache_file"; then
216 andreas 2128
    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2129
$as_echo "$as_me: loading cache $cache_file" >&6;}
88 andreas 2130
    case $cache_file in
2131
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2132
      *)                      . "./$cache_file";;
2133
    esac
2134
  fi
2135
else
216 andreas 2136
  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2137
$as_echo "$as_me: creating cache $cache_file" >&6;}
88 andreas 2138
  >$cache_file
2139
fi
2140
 
2141
# Check that the precious variables saved in the cache have kept the same
2142
# value.
2143
ac_cache_corrupted=false
2144
for ac_var in $ac_precious_vars; do
2145
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2146
  eval ac_new_set=\$ac_env_${ac_var}_set
2147
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2148
  eval ac_new_val=\$ac_env_${ac_var}_value
2149
  case $ac_old_set,$ac_new_set in
2150
    set,)
216 andreas 2151
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2152
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
88 andreas 2153
      ac_cache_corrupted=: ;;
2154
    ,set)
216 andreas 2155
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2156
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
88 andreas 2157
      ac_cache_corrupted=: ;;
2158
    ,);;
2159
    *)
2160
      if test "x$ac_old_val" != "x$ac_new_val"; then
216 andreas 2161
	# differences in whitespace do not lead to failure.
2162
	ac_old_val_w=`echo x $ac_old_val`
2163
	ac_new_val_w=`echo x $ac_new_val`
2164
	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2165
	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2166
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2167
	  ac_cache_corrupted=:
2168
	else
2169
	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2170
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2171
	  eval $ac_var=\$ac_old_val
2172
	fi
2173
	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2174
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2175
	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2176
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
88 andreas 2177
      fi;;
2178
  esac
2179
  # Pass precious variables to config.status.
2180
  if test "$ac_new_set" = set; then
2181
    case $ac_new_val in
216 andreas 2182
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
88 andreas 2183
    *) ac_arg=$ac_var=$ac_new_val ;;
2184
    esac
2185
    case " $ac_configure_args " in
2186
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2187
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2188
    esac
2189
  fi
2190
done
2191
if $ac_cache_corrupted; then
216 andreas 2192
  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2193
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2194
  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2195
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2196
  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2197
$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
88 andreas 2198
   { (exit 1); exit 1; }; }
2199
fi
2200
 
2201
 
2202
 
2203
 
2204
 
2205
 
2206
 
2207
 
2208
 
2209
 
2210
 
2211
 
2212
 
2213
 
2214
 
2215
 
2216
 
2217
ac_ext=c
2218
ac_cpp='$CPP $CPPFLAGS'
2219
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2220
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2221
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2222
 
2223
 
2224
ac_aux_dir=
2225
for ac_dir in admin "$srcdir"/admin; do
2226
  if test -f "$ac_dir/install-sh"; then
2227
    ac_aux_dir=$ac_dir
2228
    ac_install_sh="$ac_aux_dir/install-sh -c"
2229
    break
2230
  elif test -f "$ac_dir/install.sh"; then
2231
    ac_aux_dir=$ac_dir
2232
    ac_install_sh="$ac_aux_dir/install.sh -c"
2233
    break
2234
  elif test -f "$ac_dir/shtool"; then
2235
    ac_aux_dir=$ac_dir
2236
    ac_install_sh="$ac_aux_dir/shtool install -c"
2237
    break
2238
  fi
2239
done
2240
if test -z "$ac_aux_dir"; then
216 andreas 2241
  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in admin \"$srcdir\"/admin" >&5
2242
$as_echo "$as_me: error: cannot find install-sh or install.sh in admin \"$srcdir\"/admin" >&2;}
88 andreas 2243
   { (exit 1); exit 1; }; }
2244
fi
2245
 
2246
# These three variables are undocumented and unsupported,
2247
# and are intended to be withdrawn in a future Autoconf release.
2248
# They can cause serious problems if a builder's source tree is in a directory
2249
# whose full name contains unusual characters.
2250
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2251
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2252
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2253
 
2254
 
2255
 
2256
unset CDPATH
2257
 
2258
# Make sure we can run config.sub.
2259
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
216 andreas 2260
  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2261
$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
88 andreas 2262
   { (exit 1); exit 1; }; }
2263
 
216 andreas 2264
{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2265
$as_echo_n "checking build system type... " >&6; }
88 andreas 2266
if test "${ac_cv_build+set}" = set; then
216 andreas 2267
  $as_echo_n "(cached) " >&6
88 andreas 2268
else
2269
  ac_build_alias=$build_alias
2270
test "x$ac_build_alias" = x &&
2271
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2272
test "x$ac_build_alias" = x &&
216 andreas 2273
  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2274
$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
88 andreas 2275
   { (exit 1); exit 1; }; }
2276
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
216 andreas 2277
  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2278
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
88 andreas 2279
   { (exit 1); exit 1; }; }
2280
 
2281
fi
216 andreas 2282
{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2283
$as_echo "$ac_cv_build" >&6; }
88 andreas 2284
case $ac_cv_build in
2285
*-*-*) ;;
216 andreas 2286
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2287
$as_echo "$as_me: error: invalid value of canonical build" >&2;}
88 andreas 2288
   { (exit 1); exit 1; }; };;
2289
esac
2290
build=$ac_cv_build
2291
ac_save_IFS=$IFS; IFS='-'
2292
set x $ac_cv_build
2293
shift
2294
build_cpu=$1
2295
build_vendor=$2
2296
shift; shift
2297
# Remember, the first character of IFS is used to create $*,
2298
# except with old shells:
2299
build_os=$*
2300
IFS=$ac_save_IFS
2301
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2302
 
2303
 
216 andreas 2304
{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2305
$as_echo_n "checking host system type... " >&6; }
88 andreas 2306
if test "${ac_cv_host+set}" = set; then
216 andreas 2307
  $as_echo_n "(cached) " >&6
88 andreas 2308
else
2309
  if test "x$host_alias" = x; then
2310
  ac_cv_host=$ac_cv_build
2311
else
2312
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
216 andreas 2313
    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2314
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
88 andreas 2315
   { (exit 1); exit 1; }; }
2316
fi
2317
 
2318
fi
216 andreas 2319
{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2320
$as_echo "$ac_cv_host" >&6; }
88 andreas 2321
case $ac_cv_host in
2322
*-*-*) ;;
216 andreas 2323
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2324
$as_echo "$as_me: error: invalid value of canonical host" >&2;}
88 andreas 2325
   { (exit 1); exit 1; }; };;
2326
esac
2327
host=$ac_cv_host
2328
ac_save_IFS=$IFS; IFS='-'
2329
set x $ac_cv_host
2330
shift
2331
host_cpu=$1
2332
host_vendor=$2
2333
shift; shift
2334
# Remember, the first character of IFS is used to create $*,
2335
# except with old shells:
2336
host_os=$*
2337
IFS=$ac_save_IFS
2338
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2339
 
2340
 
216 andreas 2341
{ $as_echo "$as_me:$LINENO: checking target system type" >&5
2342
$as_echo_n "checking target system type... " >&6; }
88 andreas 2343
if test "${ac_cv_target+set}" = set; then
216 andreas 2344
  $as_echo_n "(cached) " >&6
88 andreas 2345
else
2346
  if test "x$target_alias" = x; then
2347
  ac_cv_target=$ac_cv_host
2348
else
2349
  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
216 andreas 2350
    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2351
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
88 andreas 2352
   { (exit 1); exit 1; }; }
2353
fi
2354
 
2355
fi
216 andreas 2356
{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2357
$as_echo "$ac_cv_target" >&6; }
88 andreas 2358
case $ac_cv_target in
2359
*-*-*) ;;
216 andreas 2360
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2361
$as_echo "$as_me: error: invalid value of canonical target" >&2;}
88 andreas 2362
   { (exit 1); exit 1; }; };;
2363
esac
2364
target=$ac_cv_target
2365
ac_save_IFS=$IFS; IFS='-'
2366
set x $ac_cv_target
2367
shift
2368
target_cpu=$1
2369
target_vendor=$2
2370
shift; shift
2371
# Remember, the first character of IFS is used to create $*,
2372
# except with old shells:
2373
target_os=$*
2374
IFS=$ac_save_IFS
2375
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2376
 
2377
 
2378
# The aliases save the names the user supplied, while $host etc.
2379
# will get canonicalized.
2380
test -n "$target_alias" &&
2381
  test "$program_prefix$program_suffix$program_transform_name" = \
2382
    NONENONEs,x,x, &&
2383
  program_prefix=${target_alias}-
2384
test "$program_prefix" != NONE &&
2385
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2386
# Use a double $ so make ignores it.
2387
test "$program_suffix" != NONE &&
2388
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
216 andreas 2389
# Double any \ or $.
88 andreas 2390
# By default was `s,x,x', remove it if useless.
216 andreas 2391
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2392
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
88 andreas 2393
 
2394
 
91 andreas 2395
am__api_version="1.9"
88 andreas 2396
 
2397
 
2398
          test -n "$INSTALL" && kde_save_INSTALL_given=$INSTALL
2399
  test -n "$INSTALL_PROGRAM" && kde_save_INSTALL_PROGRAM_given=$INSTALL_PROGRAM
2400
  test -n "$INSTALL_SCRIPT" && kde_save_INSTALL_SCRIPT_given=$INSTALL_SCRIPT
2401
  # Find a good install program.  We prefer a C program (faster),
2402
# so one script is as good as another.  But avoid the broken or
2403
# incompatible versions:
2404
# SysV /etc/install, /usr/sbin/install
2405
# SunOS /usr/etc/install
2406
# IRIX /sbin/install
2407
# AIX /bin/install
2408
# AmigaOS /C/install, which installs bootblocks on floppy discs
2409
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2410
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2411
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2412
# OS/2's system install, which has a completely different semantic
2413
# ./install, which can be erroneously created by make from ./install.sh.
216 andreas 2414
# Reject install programs that cannot install multiple files.
2415
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2416
$as_echo_n "checking for a BSD-compatible install... " >&6; }
88 andreas 2417
if test -z "$INSTALL"; then
2418
if test "${ac_cv_path_install+set}" = set; then
216 andreas 2419
  $as_echo_n "(cached) " >&6
88 andreas 2420
else
2421
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2422
for as_dir in $PATH
2423
do
2424
  IFS=$as_save_IFS
2425
  test -z "$as_dir" && as_dir=.
2426
  # Account for people who put trailing slashes in PATH elements.
2427
case $as_dir/ in
2428
  ./ | .// | /cC/* | \
2429
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2430
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2431
  /usr/ucb/* ) ;;
2432
  *)
2433
    # OSF1 and SCO ODT 3.0 have their own names for install.
2434
    # Don't use installbsd from OSF since it installs stuff as root
2435
    # by default.
2436
    for ac_prog in ginstall scoinst install; do
2437
      for ac_exec_ext in '' $ac_executable_extensions; do
2438
	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2439
	  if test $ac_prog = install &&
2440
	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2441
	    # AIX install.  It has an incompatible calling convention.
2442
	    :
2443
	  elif test $ac_prog = install &&
2444
	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2445
	    # program-specific install script used by HP pwplus--don't use.
2446
	    :
2447
	  else
216 andreas 2448
	    rm -rf conftest.one conftest.two conftest.dir
2449
	    echo one > conftest.one
2450
	    echo two > conftest.two
2451
	    mkdir conftest.dir
2452
	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2453
	      test -s conftest.one && test -s conftest.two &&
2454
	      test -s conftest.dir/conftest.one &&
2455
	      test -s conftest.dir/conftest.two
2456
	    then
2457
	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2458
	      break 3
2459
	    fi
88 andreas 2460
	  fi
2461
	fi
2462
      done
2463
    done
2464
    ;;
2465
esac
216 andreas 2466
 
88 andreas 2467
done
2468
IFS=$as_save_IFS
2469
 
216 andreas 2470
rm -rf conftest.one conftest.two conftest.dir
88 andreas 2471
 
2472
fi
2473
  if test "${ac_cv_path_install+set}" = set; then
2474
    INSTALL=$ac_cv_path_install
2475
  else
2476
    # As a last resort, use the slow shell script.  Don't cache a
2477
    # value for INSTALL within a source directory, because that will
2478
    # break other packages using the cache if that directory is
2479
    # removed, or if the value is a relative name.
2480
    INSTALL=$ac_install_sh
2481
  fi
2482
fi
216 andreas 2483
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2484
$as_echo "$INSTALL" >&6; }
88 andreas 2485
 
2486
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2487
# It thinks the first close brace ends the variable substitution.
2488
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2489
 
2490
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2491
 
2492
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2493
 
2494
 
2495
  if test -z "$kde_save_INSTALL_given" ; then
2496
    # OK, user hasn't given any INSTALL, autoconf found one for us
2497
    # now we test, if it supports the -p flag
216 andreas 2498
    { $as_echo "$as_me:$LINENO: checking for -p flag to install" >&5
2499
$as_echo_n "checking for -p flag to install... " >&6; }
88 andreas 2500
    rm -f confinst.$$.* > /dev/null 2>&1
2501
    echo "Testtest" > confinst.$$.orig
2502
    ac_res=no
2503
    if ${INSTALL} -p confinst.$$.orig confinst.$$.new > /dev/null 2>&1 ; then
2504
      if test -f confinst.$$.new ; then
2505
        # OK, -p seems to do no harm to install
2506
	INSTALL="${INSTALL} -p"
2507
	ac_res=yes
2508
      fi
2509
    fi
2510
    rm -f confinst.$$.*
216 andreas 2511
    { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2512
$as_echo "$ac_res" >&6; }
88 andreas 2513
  fi
2514
 
2515
  if test -z "$kde_save_INSTALL_PROGRAM_given" ; then
2516
    INSTALL_PROGRAM='${INSTALL} $(INSTALL_STRIP_FLAG)'
2517
  fi
2518
  if test -z "$kde_save_INSTALL_SCRIPT_given" ; then
2519
    INSTALL_SCRIPT='${INSTALL}'
2520
  fi
2521
 
216 andreas 2522
{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2523
$as_echo_n "checking whether build environment is sane... " >&6; }
88 andreas 2524
# Just in case
2525
sleep 1
2526
echo timestamp > conftest.file
2527
# Do `set' in a subshell so we don't clobber the current shell's
2528
# arguments.  Must try -L first in case configure is actually a
2529
# symlink; some systems play weird games with the mod time of symlinks
2530
# (eg FreeBSD returns the mod time of the symlink's containing
2531
# directory).
2532
if (
2533
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2534
   if test "$*" = "X"; then
2535
      # -L didn't work.
2536
      set X `ls -t $srcdir/configure conftest.file`
2537
   fi
2538
   rm -f conftest.file
2539
   if test "$*" != "X $srcdir/configure conftest.file" \
2540
      && test "$*" != "X conftest.file $srcdir/configure"; then
2541
 
2542
      # If neither matched, then we have a broken ls.  This can happen
2543
      # if, for instance, CONFIG_SHELL is bash and it inherits a
2544
      # broken ls alias from the environment.  This has actually
2545
      # happened.  Such a system could not be considered "sane".
216 andreas 2546
      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
88 andreas 2547
alias in your environment" >&5
216 andreas 2548
$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
88 andreas 2549
alias in your environment" >&2;}
2550
   { (exit 1); exit 1; }; }
2551
   fi
2552
 
2553
   test "$2" = conftest.file
2554
   )
2555
then
2556
   # Ok.
2557
   :
2558
else
216 andreas 2559
   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
88 andreas 2560
Check your system clock" >&5
216 andreas 2561
$as_echo "$as_me: error: newly created file is older than distributed files!
88 andreas 2562
Check your system clock" >&2;}
2563
   { (exit 1); exit 1; }; }
2564
fi
216 andreas 2565
{ $as_echo "$as_me:$LINENO: result: yes" >&5
2566
$as_echo "yes" >&6; }
88 andreas 2567
# expand $ac_aux_dir to an absolute path
2568
am_aux_dir=`cd $ac_aux_dir && pwd`
2569
 
2570
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2571
# Use eval to expand $SHELL
2572
if eval "$MISSING --run true"; then
2573
  am_missing_run="$MISSING --run "
2574
else
2575
  am_missing_run=
216 andreas 2576
  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2577
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
88 andreas 2578
fi
2579
 
91 andreas 2580
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2581
  # We used to keeping the `.' as first argument, in order to
2582
  # allow $(mkdir_p) to be used without argument.  As in
2583
  #   $(mkdir_p) $(somedir)
2584
  # where $(somedir) is conditionally defined.  However this is wrong
2585
  # for two reasons:
2586
  #  1. if the package is installed by a user who cannot write `.'
2587
  #     make install will fail,
2588
  #  2. the above comment should most certainly read
2589
  #     $(mkdir_p) $(DESTDIR)$(somedir)
2590
  #     so it does not work when $(somedir) is undefined and
2591
  #     $(DESTDIR) is not.
2592
  #  To support the latter case, we have to write
2593
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2594
  #  so the `.' trick is pointless.
2595
  mkdir_p='mkdir -p --'
88 andreas 2596
else
91 andreas 2597
  # On NextStep and OpenStep, the `mkdir' command does not
2598
  # recognize any option.  It will interpret all options as
2599
  # directories to create, and then abort because `.' already
2600
  # exists.
2601
  for d in ./-p ./--version;
2602
  do
2603
    test -d $d && rmdir $d
2604
  done
2605
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2606
  if test -f "$ac_aux_dir/mkinstalldirs"; then
2607
    mkdir_p='$(mkinstalldirs)'
88 andreas 2608
  else
91 andreas 2609
    mkdir_p='$(install_sh) -d'
88 andreas 2610
  fi
2611
fi
2612
 
2613
for ac_prog in gawk mawk nawk awk
2614
do
2615
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2616
set dummy $ac_prog; ac_word=$2
216 andreas 2617
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2618
$as_echo_n "checking for $ac_word... " >&6; }
88 andreas 2619
if test "${ac_cv_prog_AWK+set}" = set; then
216 andreas 2620
  $as_echo_n "(cached) " >&6
88 andreas 2621
else
2622
  if test -n "$AWK"; then
2623
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2624
else
2625
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2626
for as_dir in $PATH
2627
do
2628
  IFS=$as_save_IFS
2629
  test -z "$as_dir" && as_dir=.
2630
  for ac_exec_ext in '' $ac_executable_extensions; do
2631
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2632
    ac_cv_prog_AWK="$ac_prog"
216 andreas 2633
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
88 andreas 2634
    break 2
2635
  fi
2636
done
2637
done
2638
IFS=$as_save_IFS
2639
 
2640
fi
2641
fi
2642
AWK=$ac_cv_prog_AWK
2643
if test -n "$AWK"; then
216 andreas 2644
  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2645
$as_echo "$AWK" >&6; }
88 andreas 2646
else
216 andreas 2647
  { $as_echo "$as_me:$LINENO: result: no" >&5
2648
$as_echo "no" >&6; }
88 andreas 2649
fi
2650
 
2651
 
2652
  test -n "$AWK" && break
2653
done
2654
 
216 andreas 2655
{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2656
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2657
set x ${MAKE-make}
2658
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
88 andreas 2659
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
216 andreas 2660
  $as_echo_n "(cached) " >&6
88 andreas 2661
else
2662
  cat >conftest.make <<\_ACEOF
2663
SHELL = /bin/sh
2664
all:
2665
	@echo '@@@%%%=$(MAKE)=@@@%%%'
2666
_ACEOF
2667
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2668
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2669
  *@@@%%%=?*=@@@%%%*)
2670
    eval ac_cv_prog_make_${ac_make}_set=yes;;
2671
  *)
2672
    eval ac_cv_prog_make_${ac_make}_set=no;;
2673
esac
2674
rm -f conftest.make
2675
fi
2676
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
216 andreas 2677
  { $as_echo "$as_me:$LINENO: result: yes" >&5
2678
$as_echo "yes" >&6; }
88 andreas 2679
  SET_MAKE=
2680
else
216 andreas 2681
  { $as_echo "$as_me:$LINENO: result: no" >&5
2682
$as_echo "no" >&6; }
88 andreas 2683
  SET_MAKE="MAKE=${MAKE-make}"
2684
fi
2685
 
2686
rm -rf .tst 2>/dev/null
2687
mkdir .tst 2>/dev/null
2688
if test -d .tst; then
2689
  am__leading_dot=.
2690
else
2691
  am__leading_dot=_
2692
fi
2693
rmdir .tst 2>/dev/null
2694
 
91 andreas 2695
# test to see if srcdir already configured
2696
if test "`cd $srcdir && pwd`" != "`pwd`" &&
2697
   test -f $srcdir/config.status; then
216 andreas 2698
  { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2699
$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
88 andreas 2700
   { (exit 1); exit 1; }; }
2701
fi
2702
 
2703
# test whether we have cygpath
2704
if test -z "$CYGPATH_W"; then
2705
  if (cygpath --version) >/dev/null 2>/dev/null; then
2706
    CYGPATH_W='cygpath -w'
2707
  else
2708
    CYGPATH_W=echo
2709
  fi
2710
fi
2711
 
2712
 
2713
# Define the identity of the package.
2714
 PACKAGE=sportwatcher
221 andreas 2715
 VERSION=0.5
88 andreas 2716
 
2717
 
2718
cat >>confdefs.h <<_ACEOF
2719
#define PACKAGE "$PACKAGE"
2720
_ACEOF
2721
 
2722
 
2723
cat >>confdefs.h <<_ACEOF
2724
#define VERSION "$VERSION"
2725
_ACEOF
2726
 
2727
# Some tools Automake needs.
2728
 
2729
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2730
 
2731
 
2732
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2733
 
2734
 
2735
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2736
 
2737
 
2738
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2739
 
2740
 
2741
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2742
 
91 andreas 2743
install_sh=${install_sh-"$am_aux_dir/install-sh"}
88 andreas 2744
 
2745
# Installed binaries are usually stripped using `strip' when the user
2746
# run `make install-strip'.  However `strip' might not be the right
2747
# tool to use in cross-compilation environments, therefore Automake
2748
# will honor the `STRIP' environment variable to overrule this program.
2749
if test "$cross_compiling" != no; then
2750
  if test -n "$ac_tool_prefix"; then
2751
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2752
set dummy ${ac_tool_prefix}strip; ac_word=$2
216 andreas 2753
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2754
$as_echo_n "checking for $ac_word... " >&6; }
88 andreas 2755
if test "${ac_cv_prog_STRIP+set}" = set; then
216 andreas 2756
  $as_echo_n "(cached) " >&6
88 andreas 2757
else
2758
  if test -n "$STRIP"; then
2759
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2760
else
2761
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2762
for as_dir in $PATH
2763
do
2764
  IFS=$as_save_IFS
2765
  test -z "$as_dir" && as_dir=.
2766
  for ac_exec_ext in '' $ac_executable_extensions; do
2767
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2768
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
216 andreas 2769
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
88 andreas 2770
    break 2
2771
  fi
2772
done
2773
done
2774
IFS=$as_save_IFS
2775
 
2776
fi
2777
fi
2778
STRIP=$ac_cv_prog_STRIP
2779
if test -n "$STRIP"; then
216 andreas 2780
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2781
$as_echo "$STRIP" >&6; }
88 andreas 2782
else
216 andreas 2783
  { $as_echo "$as_me:$LINENO: result: no" >&5
2784
$as_echo "no" >&6; }
88 andreas 2785
fi
2786
 
2787
 
2788
fi
2789
if test -z "$ac_cv_prog_STRIP"; then
2790
  ac_ct_STRIP=$STRIP
2791
  # Extract the first word of "strip", so it can be a program name with args.
2792
set dummy strip; ac_word=$2
216 andreas 2793
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2794
$as_echo_n "checking for $ac_word... " >&6; }
88 andreas 2795
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
216 andreas 2796
  $as_echo_n "(cached) " >&6
88 andreas 2797
else
2798
  if test -n "$ac_ct_STRIP"; then
2799
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2800
else
2801
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802
for as_dir in $PATH
2803
do
2804
  IFS=$as_save_IFS
2805
  test -z "$as_dir" && as_dir=.
2806
  for ac_exec_ext in '' $ac_executable_extensions; do
2807
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2808
    ac_cv_prog_ac_ct_STRIP="strip"
216 andreas 2809
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
88 andreas 2810
    break 2
2811
  fi
2812
done
2813
done
2814
IFS=$as_save_IFS
2815
 
2816
fi
2817
fi
2818
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2819
if test -n "$ac_ct_STRIP"; then
216 andreas 2820
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2821
$as_echo "$ac_ct_STRIP" >&6; }
88 andreas 2822
else
216 andreas 2823
  { $as_echo "$as_me:$LINENO: result: no" >&5
2824
$as_echo "no" >&6; }
88 andreas 2825
fi
2826
 
2827
  if test "x$ac_ct_STRIP" = x; then
2828
    STRIP=":"
2829
  else
2830
    case $cross_compiling:$ac_tool_warned in
2831
yes:)
216 andreas 2832
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2833
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
88 andreas 2834
ac_tool_warned=yes ;;
2835
esac
2836
    STRIP=$ac_ct_STRIP
2837
  fi
2838
else
2839
  STRIP="$ac_cv_prog_STRIP"
2840
fi
2841
 
2842
fi
91 andreas 2843
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
88 andreas 2844
 
2845
# We need awk for the "check" target.  The system "awk" is bad on
2846
# some platforms.
2847
# Always define AMTAR for backward compatibility.
2848
 
2849
AMTAR=${AMTAR-"${am_missing_run}tar"}
2850
 
2851
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2852
 
2853
 
2854
 
2855
 
2856
 
2857
 
2858
  unset CDPATH
2859
 
2860
 
2861
 
2862
    kde_default_bindirs="/usr/bin /usr/local/bin /opt/local/bin /usr/X11R6/bin /opt/kde/bin /opt/kde3/bin /usr/kde/bin /usr/local/kde/bin"
2863
    test -n "$KDEDIR" && kde_default_bindirs="$KDEDIR/bin $kde_default_bindirs"
2864
    if test -n "$KDEDIRS"; then
2865
       kde_save_IFS=$IFS
2866
       IFS=:
2867
       for dir in $KDEDIRS; do
2868
            kde_default_bindirs="$dir/bin $kde_default_bindirs "
2869
       done
2870
       IFS=$kde_save_IFS
2871
    fi
2872
 
2873
  if test "x$prefix" = "xNONE"; then
2874
 
216 andreas 2875
   { $as_echo "$as_me:$LINENO: checking for kde-config" >&5
2876
$as_echo_n "checking for kde-config... " >&6; }
88 andreas 2877
   if test -n "$KDECONFIG"; then
2878
        kde_cv_path="$KDECONFIG";
2879
   else
2880
        kde_cache=`echo kde-config | sed 'y%./+-%__p_%'`
2881
 
2882
        if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
216 andreas 2883
  $as_echo_n "(cached) " >&6
88 andreas 2884
else
2885
 
2886
        kde_cv_path="NONE"
2887
	kde_save_IFS=$IFS
2888
	IFS=':'
2889
	dirs=""
2890
	for dir in $PATH; do
2891
	  dirs="$dirs $dir"
2892
	done
2893
	if test -z "prepend"; then  	  dirs="$kde_default_bindirs $dirs"
2894
        else  	  dirs="$dirs $kde_default_bindirs"
2895
	fi
2896
	IFS=$kde_save_IFS
2897
 
2898
        for dir in $dirs; do
2899
	  if test -x "$dir/kde-config"; then
2900
	    if test -n ""
2901
	    then
2902
              evalstr="$dir/kde-config  2>&1 "
2903
	      if eval $evalstr; then
2904
                kde_cv_path="$dir/kde-config"
2905
                break
2906
	      fi
2907
            else
2908
		kde_cv_path="$dir/kde-config"
2909
                break
2910
	    fi
2911
          fi
2912
        done
2913
 
2914
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
2915
 
2916
 
2917
fi
2918
 
2919
 
2920
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
2921
 
2922
   fi
2923
 
2924
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
216 andreas 2925
      { $as_echo "$as_me:$LINENO: result: not found" >&5
2926
$as_echo "not found" >&6; }
88 andreas 2927
 
216 andreas 2928
    { { $as_echo "$as_me:$LINENO: error: The important program kde-config was not found!
88 andreas 2929
Please check whether you installed KDE correctly.
2930
" >&5
216 andreas 2931
$as_echo "$as_me: error: The important program kde-config was not found!
88 andreas 2932
Please check whether you installed KDE correctly.
2933
" >&2;}
2934
   { (exit 1); exit 1; }; }
2935
 
2936
   else
216 andreas 2937
      { $as_echo "$as_me:$LINENO: result: $kde_cv_path" >&5
2938
$as_echo "$kde_cv_path" >&6; }
88 andreas 2939
      KDECONFIG=$kde_cv_path
2940
 
2941
   fi
2942
 
2943
  else
2944
        kde_save_PATH="$PATH"
2945
    PATH="$exec_prefix/bin:$prefix/bin:$PATH"
2946
 
216 andreas 2947
   { $as_echo "$as_me:$LINENO: checking for kde-config" >&5
2948
$as_echo_n "checking for kde-config... " >&6; }
88 andreas 2949
   if test -n "$KDECONFIG"; then
2950
        kde_cv_path="$KDECONFIG";
2951
   else
2952
        kde_cache=`echo kde-config | sed 'y%./+-%__p_%'`
2953
 
2954
        if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
216 andreas 2955
  $as_echo_n "(cached) " >&6
88 andreas 2956
else
2957
 
2958
        kde_cv_path="NONE"
2959
	kde_save_IFS=$IFS
2960
	IFS=':'
2961
	dirs=""
2962
	for dir in $PATH; do
2963
	  dirs="$dirs $dir"
2964
	done
2965
	if test -z "prepend"; then  	  dirs="$kde_default_bindirs $dirs"
2966
        else  	  dirs="$dirs $kde_default_bindirs"
2967
	fi
2968
	IFS=$kde_save_IFS
2969
 
2970
        for dir in $dirs; do
2971
	  if test -x "$dir/kde-config"; then
2972
	    if test -n ""
2973
	    then
2974
              evalstr="$dir/kde-config  2>&1 "
2975
	      if eval $evalstr; then
2976
                kde_cv_path="$dir/kde-config"
2977
                break
2978
	      fi
2979
            else
2980
		kde_cv_path="$dir/kde-config"
2981
                break
2982
	    fi
2983
          fi
2984
        done
2985
 
2986
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
2987
 
2988
 
2989
fi
2990
 
2991
 
2992
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
2993
 
2994
   fi
2995
 
2996
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
216 andreas 2997
      { $as_echo "$as_me:$LINENO: result: not found" >&5
2998
$as_echo "not found" >&6; }
88 andreas 2999
 
216 andreas 3000
    { { $as_echo "$as_me:$LINENO: error: The important program kde-config was not found!
88 andreas 3001
Please check whether you installed KDE correctly.
3002
" >&5
216 andreas 3003
$as_echo "$as_me: error: The important program kde-config was not found!
88 andreas 3004
Please check whether you installed KDE correctly.
3005
" >&2;}
3006
   { (exit 1); exit 1; }; }
3007
 
3008
   else
216 andreas 3009
      { $as_echo "$as_me:$LINENO: result: $kde_cv_path" >&5
3010
$as_echo "$kde_cv_path" >&6; }
88 andreas 3011
      KDECONFIG=$kde_cv_path
3012
 
3013
   fi
3014
 
3015
    PATH="$kde_save_PATH"
3016
  fi
3017
 
3018
  kde_libs_prefix=`$KDECONFIG --prefix`
3019
  if test -z "$kde_libs_prefix" || test ! -x "$kde_libs_prefix"; then
216 andreas 3020
       { { $as_echo "$as_me:$LINENO: error: $KDECONFIG --prefix outputed the non existant prefix '$kde_libs_prefix' for kdelibs.
88 andreas 3021
                    This means it has been moved since you installed it.
3022
                    This won't work. Please recompile kdelibs for the new prefix.
3023
                    " >&5
216 andreas 3024
$as_echo "$as_me: error: $KDECONFIG --prefix outputed the non existant prefix '$kde_libs_prefix' for kdelibs.
88 andreas 3025
                    This means it has been moved since you installed it.
3026
                    This won't work. Please recompile kdelibs for the new prefix.
3027
                    " >&2;}
3028
   { (exit 1); exit 1; }; }
3029
  fi
3030
  kde_libs_htmldir=`$KDECONFIG --install html --expandvars`
3031
 
216 andreas 3032
  { $as_echo "$as_me:$LINENO: checking where to install" >&5
3033
$as_echo_n "checking where to install... " >&6; }
88 andreas 3034
  if test "x$prefix" = "xNONE"; then
3035
    prefix=$kde_libs_prefix
216 andreas 3036
    { $as_echo "$as_me:$LINENO: result: $prefix (as returned by kde-config)" >&5
3037
$as_echo "$prefix (as returned by kde-config)" >&6; }
88 andreas 3038
  else
3039
        given_prefix=$prefix
216 andreas 3040
    { $as_echo "$as_me:$LINENO: result: $prefix (as requested)" >&5
3041
$as_echo "$prefix (as requested)" >&6; }
88 andreas 3042
  fi
3043
 
3044
  # And delete superfluous '/' to make compares easier
3045
  prefix=`echo "$prefix" | sed 's,//*,/,g' | sed -e 's,/$,,'`
3046
  exec_prefix=`echo "$exec_prefix" | sed 's,//*,/,g' | sed -e 's,/$,,'`
3047
  given_prefix=`echo "$given_prefix" | sed 's,//*,/,g' | sed -e 's,/$,,'`
3048
 
3049
 
3050
 
3051
 
3052
 
3053
 
3054
    # Check whether --enable-fast-perl was given.
3055
if test "${enable_fast_perl+set}" = set; then
3056
  enableval=$enable_fast_perl; with_fast_perl=$enableval
3057
else
3058
  with_fast_perl=yes
3059
fi
3060
 
3061
 
3062
 
3063
  val=
3064
  if test -f $srcdir/configure.files ; then
3065
    val=`sed -e 's%^%\$(top_srcdir)/%' $srcdir/configure.files`
3066
  fi
3067
  CONF_FILES=
3068
  if test -n "$val" ; then
3069
    for i in $val ; do
3070
      CONF_FILES="$CONF_FILES $i"
3071
    done
3072
  fi
3073
 
3074
 
3075
 
3076
 
3077
ac_config_headers="$ac_config_headers config.h"
3078
 
3079
DEPDIR="${am__leading_dot}deps"
3080
 
3081
ac_config_commands="$ac_config_commands depfiles"
3082
 
3083
 
3084
am_make=${MAKE-make}
3085
cat > confinc << 'END'
3086
am__doit:
3087
	@echo done
3088
.PHONY: am__doit
3089
END
3090
# If we don't find an include directive, just comment out the code.
216 andreas 3091
{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3092
$as_echo_n "checking for style of include used by $am_make... " >&6; }
88 andreas 3093
am__include="#"
3094
am__quote=
3095
_am_result=none
3096
# First try GNU make style include.
3097
echo "include confinc" > confmf
3098
# We grep out `Entering directory' and `Leaving directory'
3099
# messages which can occur if `w' ends up in MAKEFLAGS.
3100
# In particular we don't look at `^make:' because GNU make might
3101
# be invoked under some other name (usually "gmake"), in which
3102
# case it prints its new name instead of `make'.
3103
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3104
   am__include=include
3105
   am__quote=
3106
   _am_result=GNU
3107
fi
3108
# Now try BSD make style include.
3109
if test "$am__include" = "#"; then
3110
   echo '.include "confinc"' > confmf
3111
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3112
      am__include=.include
3113
      am__quote="\""
3114
      _am_result=BSD
3115
   fi
3116
fi
3117
 
3118
 
216 andreas 3119
{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3120
$as_echo "$_am_result" >&6; }
88 andreas 3121
rm -f confinc confmf
3122
 
3123
# Check whether --enable-dependency-tracking was given.
3124
if test "${enable_dependency_tracking+set}" = set; then
3125
  enableval=$enable_dependency_tracking;
3126
fi
3127
 
3128
if test "x$enable_dependency_tracking" != xno; then
3129
  am_depcomp="$ac_aux_dir/depcomp"
3130
  AMDEPBACKSLASH='\'
3131
fi
91 andreas 3132
 
3133
 
3134
if test "x$enable_dependency_tracking" != xno; then
88 andreas 3135
  AMDEP_TRUE=
3136
  AMDEP_FALSE='#'
3137
else
3138
  AMDEP_TRUE='#'
3139
  AMDEP_FALSE=
3140
fi
3141
 
3142
 
3143
 
3144
 
3145
 
91 andreas 3146
 
88 andreas 3147
  # Check whether --enable-debug was given.
3148
if test "${enable_debug+set}" = set; then
3149
  enableval=$enable_debug;
3150
    case $enableval in
3151
      yes)
3152
        kde_use_debug_code="yes"
3153
        kde_use_debug_define=no
3154
        ;;
3155
      full)
3156
        kde_use_debug_code="full"
3157
        kde_use_debug_define=no
3158
        ;;
3159
      *)
3160
        kde_use_debug_code="no"
3161
        kde_use_debug_define=yes
3162
        ;;
3163
    esac
3164
 
3165
else
3166
  kde_use_debug_code="no"
3167
      kde_use_debug_define=no
3168
 
3169
fi
3170
 
3171
 
3172
    # Check whether --enable-dummyoption was given.
3173
if test "${enable_dummyoption+set}" = set; then
3174
  enableval=$enable_dummyoption;
3175
fi
3176
 
3177
 
3178
  # Check whether --enable-strict was given.
3179
if test "${enable_strict+set}" = set; then
3180
  enableval=$enable_strict;
3181
    if test $enableval = "no"; then
3182
         kde_use_strict_options="no"
3183
       else
3184
         kde_use_strict_options="yes"
3185
    fi
3186
 
3187
else
3188
  kde_use_strict_options="no"
3189
fi
3190
 
3191
 
3192
  # Check whether --enable-warnings was given.
3193
if test "${enable_warnings+set}" = set; then
3194
  enableval=$enable_warnings;
3195
    if test $enableval = "no"; then
3196
         kde_use_warnings="no"
3197
       else
3198
         kde_use_warnings="yes"
3199
    fi
3200
 
3201
else
3202
  kde_use_warnings="yes"
3203
fi
3204
 
3205
 
3206
    if test "$kde_use_debug_code" != "no"; then
3207
    kde_use_warnings=yes
3208
  fi
3209
 
3210
  # Check whether --enable-profile was given.
3211
if test "${enable_profile+set}" = set; then
3212
  enableval=$enable_profile; kde_use_profiling=$enableval
3213
else
3214
  kde_use_profiling="no"
3215
 
3216
fi
3217
 
3218
 
3219
    CFLAGS=" $CFLAGS"
3220
 
3221
  ac_ext=c
3222
ac_cpp='$CPP $CPPFLAGS'
3223
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3224
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3225
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3226
if test -n "$ac_tool_prefix"; then
3227
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3228
set dummy ${ac_tool_prefix}gcc; ac_word=$2
216 andreas 3229
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3230
$as_echo_n "checking for $ac_word... " >&6; }
88 andreas 3231
if test "${ac_cv_prog_CC+set}" = set; then
216 andreas 3232
  $as_echo_n "(cached) " >&6
88 andreas 3233
else
3234
  if test -n "$CC"; then
3235
  ac_cv_prog_CC="$CC" # Let the user override the test.
3236
else
3237
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3238
for as_dir in $PATH
3239
do
3240
  IFS=$as_save_IFS
3241
  test -z "$as_dir" && as_dir=.
3242
  for ac_exec_ext in '' $ac_executable_extensions; do
3243
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3244
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
216 andreas 3245
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
88 andreas 3246
    break 2
3247
  fi
3248
done
3249
done
3250
IFS=$as_save_IFS
3251
 
3252
fi
3253
fi
3254
CC=$ac_cv_prog_CC
3255
if test -n "$CC"; then
216 andreas 3256
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3257
$as_echo "$CC" >&6; }
88 andreas 3258
else
216 andreas 3259
  { $as_echo "$as_me:$LINENO: result: no" >&5
3260
$as_echo "no" >&6; }
88 andreas 3261
fi
3262
 
3263
 
3264
fi
3265
if test -z "$ac_cv_prog_CC"; then
3266
  ac_ct_CC=$CC
3267
  # Extract the first word of "gcc", so it can be a program name with args.
3268
set dummy gcc; ac_word=$2
216 andreas 3269
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3270
$as_echo_n "checking for $ac_word... " >&6; }
88 andreas 3271
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
216 andreas 3272
  $as_echo_n "(cached) " >&6
88 andreas 3273
else
3274
  if test -n "$ac_ct_CC"; then
3275
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3276
else
3277
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3278
for as_dir in $PATH
3279
do
3280
  IFS=$as_save_IFS
3281
  test -z "$as_dir" && as_dir=.
3282
  for ac_exec_ext in '' $ac_executable_extensions; do
3283
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3284
    ac_cv_prog_ac_ct_CC="gcc"
216 andreas 3285
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
88 andreas 3286
    break 2
3287
  fi
3288
done
3289
done
3290
IFS=$as_save_IFS
3291
 
3292
fi
3293
fi
3294
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3295
if test -n "$ac_ct_CC"; then
216 andreas 3296
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3297
$as_echo "$ac_ct_CC" >&6; }
88 andreas 3298
else
216 andreas 3299
  { $as_echo "$as_me:$LINENO: result: no" >&5
3300
$as_echo "no" >&6; }
88 andreas 3301
fi
3302
 
3303
  if test "x$ac_ct_CC" = x; then
3304
    CC=""
3305
  else
3306
    case $cross_compiling:$ac_tool_warned in
3307
yes:)
216 andreas 3308
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3309
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
88 andreas 3310
ac_tool_warned=yes ;;
3311
esac
3312
    CC=$ac_ct_CC
3313
  fi
3314
else
3315
  CC="$ac_cv_prog_CC"
3316
fi
3317
 
3318
if test -z "$CC"; then
3319
          if test -n "$ac_tool_prefix"; then
3320
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3321
set dummy ${ac_tool_prefix}cc; ac_word=$2
216 andreas 3322
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3323
$as_echo_n "checking for $ac_word... " >&6; }
88 andreas 3324
if test "${ac_cv_prog_CC+set}" = set; then
216 andreas 3325
  $as_echo_n "(cached) " >&6
88 andreas 3326
else
3327
  if test -n "$CC"; then
3328
  ac_cv_prog_CC="$CC" # Let the user override the test.
3329
else
3330
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3331
for as_dir in $PATH
3332
do
3333
  IFS=$as_save_IFS
3334
  test -z "$as_dir" && as_dir=.
3335
  for ac_exec_ext in '' $ac_executable_extensions; do
3336
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3337
    ac_cv_prog_CC="${ac_tool_prefix}cc"
216 andreas 3338
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
88 andreas 3339
    break 2
3340
  fi
3341
done
3342
done
3343
IFS=$as_save_IFS
3344
 
3345
fi
3346
fi
3347
CC=$ac_cv_prog_CC
3348
if test -n "$CC"; then
216 andreas 3349
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3350
$as_echo "$CC" >&6; }
88 andreas 3351
else
216 andreas 3352
  { $as_echo "$as_me:$LINENO: result: no" >&5
3353
$as_echo "no" >&6; }
88 andreas 3354
fi
3355
 
3356
 
3357
  fi
3358
fi
3359
if test -z "$CC"; then
3360
  # Extract the first word of "cc", so it can be a program name with args.
3361
set dummy cc; ac_word=$2
216 andreas 3362
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3363
$as_echo_n "checking for $ac_word... " >&6; }
88 andreas 3364
if test "${ac_cv_prog_CC+set}" = set; then
216 andreas 3365
  $as_echo_n "(cached) " >&6
88 andreas 3366
else
3367
  if test -n "$CC"; then
3368
  ac_cv_prog_CC="$CC" # Let the user override the test.
3369
else
3370
  ac_prog_rejected=no
3371
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3372
for as_dir in $PATH
3373
do
3374
  IFS=$as_save_IFS
3375
  test -z "$as_dir" && as_dir=.
3376
  for ac_exec_ext in '' $ac_executable_extensions; do
3377
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3378
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3379
       ac_prog_rejected=yes
3380
       continue
3381
     fi
3382
    ac_cv_prog_CC="cc"
216 andreas 3383
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
88 andreas 3384
    break 2
3385
  fi
3386
done
3387
done
3388
IFS=$as_save_IFS
3389
 
3390
if test $ac_prog_rejected = yes; then
3391
  # We found a bogon in the path, so make sure we never use it.
3392
  set dummy $ac_cv_prog_CC
3393
  shift
3394
  if test $# != 0; then
3395
    # We chose a different compiler from the bogus one.
3396
    # However, it has the same basename, so the bogon will be chosen
3397
    # first if we set CC to just the basename; use the full file name.
3398
    shift
3399
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3400
  fi
3401
fi
3402
fi
3403
fi
3404
CC=$ac_cv_prog_CC
3405
if test -n "$CC"; then
216 andreas 3406
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3407
$as_echo "$CC" >&6; }
88 andreas 3408
else
216 andreas 3409
  { $as_echo "$as_me:$LINENO: result: no" >&5
3410
$as_echo "no" >&6; }
88 andreas 3411
fi
3412
 
3413
 
3414
fi
3415
if test -z "$CC"; then
3416
  if test -n "$ac_tool_prefix"; then
3417
  for ac_prog in cl.exe
3418
  do
3419
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3420
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
216 andreas 3421
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3422
$as_echo_n "checking for $ac_word... " >&6; }
88 andreas 3423
if test "${ac_cv_prog_CC+set}" = set; then
216 andreas 3424
  $as_echo_n "(cached) " >&6
88 andreas 3425
else
3426
  if test -n "$CC"; then
3427
  ac_cv_prog_CC="$CC" # Let the user override the test.
3428
else
3429
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3430
for as_dir in $PATH
3431
do
3432
  IFS=$as_save_IFS
3433
  test -z "$as_dir" && as_dir=.
3434
  for ac_exec_ext in '' $ac_executable_extensions; do
3435
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3436
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
216 andreas 3437
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
88 andreas 3438
    break 2
3439
  fi
3440
done
3441
done
3442
IFS=$as_save_IFS
3443
 
3444
fi
3445
fi
3446
CC=$ac_cv_prog_CC
3447
if test -n "$CC"; then
216 andreas 3448
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3449
$as_echo "$CC" >&6; }
88 andreas 3450
else
216 andreas 3451
  { $as_echo "$as_me:$LINENO: result: no" >&5
3452
$as_echo "no" >&6; }
88 andreas 3453
fi
3454
 
3455
 
3456
    test -n "$CC" && break
3457
  done
3458
fi
3459
if test -z "$CC"; then
3460
  ac_ct_CC=$CC
3461
  for ac_prog in cl.exe
3462
do
3463
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3464
set dummy $ac_prog; ac_word=$2
216 andreas 3465
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3466
$as_echo_n "checking for $ac_word... " >&6; }
88 andreas 3467
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
216 andreas 3468
  $as_echo_n "(cached) " >&6
88 andreas 3469
else
3470
  if test -n "$ac_ct_CC"; then
3471
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3472
else
3473
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3474
for as_dir in $PATH
3475
do
3476
  IFS=$as_save_IFS
3477
  test -z "$as_dir" && as_dir=.
3478
  for ac_exec_ext in '' $ac_executable_extensions; do
3479
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3480
    ac_cv_prog_ac_ct_CC="$ac_prog"
216 andreas 3481
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
88 andreas 3482
    break 2
3483
  fi
3484
done
3485
done
3486
IFS=$as_save_IFS
3487
 
3488
fi
3489
fi
3490
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3491
if test -n "$ac_ct_CC"; then
216 andreas 3492
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3493
$as_echo "$ac_ct_CC" >&6; }
88 andreas 3494
else
216 andreas 3495
  { $as_echo "$as_me:$LINENO: result: no" >&5
3496
$as_echo "no" >&6; }
88 andreas 3497
fi
3498
 
3499
 
3500
  test -n "$ac_ct_CC" && break
3501
done
3502
 
3503
  if test "x$ac_ct_CC" = x; then
3504
    CC=""
3505
  else
3506
    case $cross_compiling:$ac_tool_warned in
3507
yes:)
216 andreas 3508
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3509
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
88 andreas 3510
ac_tool_warned=yes ;;
3511
esac
3512
    CC=$ac_ct_CC
3513
  fi
3514
fi
3515
 
3516
fi
3517
 
3518
 
216 andreas 3519
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3520
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3521
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
88 andreas 3522
See \`config.log' for more details." >&5
216 andreas 3523
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
88 andreas 3524
See \`config.log' for more details." >&2;}
216 andreas 3525
   { (exit 1); exit 1; }; }; }
88 andreas 3526
 
3527
# Provide some information about the compiler.
216 andreas 3528
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3529
set X $ac_compile
3530
ac_compiler=$2
88 andreas 3531
{ (ac_try="$ac_compiler --version >&5"
3532
case "(($ac_try" in
3533
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3534
  *) ac_try_echo=$ac_try;;
3535
esac
216 andreas 3536
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3537
$as_echo "$ac_try_echo") >&5
88 andreas 3538
  (eval "$ac_compiler --version >&5") 2>&5
3539
  ac_status=$?
216 andreas 3540
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 3541
  (exit $ac_status); }
3542
{ (ac_try="$ac_compiler -v >&5"
3543
case "(($ac_try" in
3544
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3545
  *) ac_try_echo=$ac_try;;
3546
esac
216 andreas 3547
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3548
$as_echo "$ac_try_echo") >&5
88 andreas 3549
  (eval "$ac_compiler -v >&5") 2>&5
3550
  ac_status=$?
216 andreas 3551
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 3552
  (exit $ac_status); }
3553
{ (ac_try="$ac_compiler -V >&5"
3554
case "(($ac_try" in
3555
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3556
  *) ac_try_echo=$ac_try;;
3557
esac
216 andreas 3558
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3559
$as_echo "$ac_try_echo") >&5
88 andreas 3560
  (eval "$ac_compiler -V >&5") 2>&5
3561
  ac_status=$?
216 andreas 3562
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 3563
  (exit $ac_status); }
3564
 
3565
cat >conftest.$ac_ext <<_ACEOF
3566
/* confdefs.h.  */
3567
_ACEOF
3568
cat confdefs.h >>conftest.$ac_ext
3569
cat >>conftest.$ac_ext <<_ACEOF
3570
/* end confdefs.h.  */
3571
 
3572
int
3573
main ()
3574
{
3575
 
3576
  ;
3577
  return 0;
3578
}
3579
_ACEOF
3580
ac_clean_files_save=$ac_clean_files
216 andreas 3581
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
88 andreas 3582
# Try to create an executable without -o first, disregard a.out.
3583
# It will help us diagnose broken compilers, and finding out an intuition
3584
# of exeext.
216 andreas 3585
{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3586
$as_echo_n "checking for C compiler default output file name... " >&6; }
3587
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3588
 
3589
# The possible output files:
3590
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3591
 
88 andreas 3592
ac_rmfiles=
3593
for ac_file in $ac_files
3594
do
3595
  case $ac_file in
216 andreas 3596
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
88 andreas 3597
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3598
  esac
3599
done
3600
rm -f $ac_rmfiles
3601
 
3602
if { (ac_try="$ac_link_default"
3603
case "(($ac_try" in
3604
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3605
  *) ac_try_echo=$ac_try;;
3606
esac
216 andreas 3607
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3608
$as_echo "$ac_try_echo") >&5
88 andreas 3609
  (eval "$ac_link_default") 2>&5
3610
  ac_status=$?
216 andreas 3611
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 3612
  (exit $ac_status); }; then
3613
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3614
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3615
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3616
# so that the user can short-circuit this test for compilers unknown to
3617
# Autoconf.
3618
for ac_file in $ac_files ''
3619
do
3620
  test -f "$ac_file" || continue
3621
  case $ac_file in
216 andreas 3622
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
88 andreas 3623
	;;
3624
    [ab].out )
3625
	# We found the default executable, but exeext='' is most
3626
	# certainly right.
3627
	break;;
3628
    *.* )
3629
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3630
	then :; else
3631
	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3632
	fi
3633
	# We set ac_cv_exeext here because the later test for it is not
3634
	# safe: cross compilers may not add the suffix if given an `-o'
3635
	# argument, so we may need to know it at that point already.
3636
	# Even if this section looks crufty: it has the advantage of
3637
	# actually working.
3638
	break;;
3639
    * )
3640
	break;;
3641
  esac
3642
done
3643
test "$ac_cv_exeext" = no && ac_cv_exeext=
3644
 
3645
else
3646
  ac_file=''
3647
fi
3648
 
216 andreas 3649
{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3650
$as_echo "$ac_file" >&6; }
88 andreas 3651
if test -z "$ac_file"; then
216 andreas 3652
  $as_echo "$as_me: failed program was:" >&5
88 andreas 3653
sed 's/^/| /' conftest.$ac_ext >&5
3654
 
216 andreas 3655
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3656
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3657
{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
88 andreas 3658
See \`config.log' for more details." >&5
216 andreas 3659
$as_echo "$as_me: error: C compiler cannot create executables
88 andreas 3660
See \`config.log' for more details." >&2;}
216 andreas 3661
   { (exit 77); exit 77; }; }; }
88 andreas 3662
fi
3663
 
3664
ac_exeext=$ac_cv_exeext
3665
 
3666
# Check that the compiler produces executables we can run.  If not, either
3667
# the compiler is broken, or we cross compile.
216 andreas 3668
{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3669
$as_echo_n "checking whether the C compiler works... " >&6; }
88 andreas 3670
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3671
# If not cross compiling, check that we can run a simple program.
3672
if test "$cross_compiling" != yes; then
3673
  if { ac_try='./$ac_file'
3674
  { (case "(($ac_try" in
3675
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3676
  *) ac_try_echo=$ac_try;;
3677
esac
216 andreas 3678
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3679
$as_echo "$ac_try_echo") >&5
88 andreas 3680
  (eval "$ac_try") 2>&5
3681
  ac_status=$?
216 andreas 3682
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 3683
  (exit $ac_status); }; }; then
3684
    cross_compiling=no
3685
  else
3686
    if test "$cross_compiling" = maybe; then
3687
	cross_compiling=yes
3688
    else
216 andreas 3689
	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3690
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3691
{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
88 andreas 3692
If you meant to cross compile, use \`--host'.
3693
See \`config.log' for more details." >&5
216 andreas 3694
$as_echo "$as_me: error: cannot run C compiled programs.
88 andreas 3695
If you meant to cross compile, use \`--host'.
3696
See \`config.log' for more details." >&2;}
216 andreas 3697
   { (exit 1); exit 1; }; }; }
88 andreas 3698
    fi
3699
  fi
3700
fi
216 andreas 3701
{ $as_echo "$as_me:$LINENO: result: yes" >&5
3702
$as_echo "yes" >&6; }
88 andreas 3703
 
216 andreas 3704
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
88 andreas 3705
ac_clean_files=$ac_clean_files_save
3706
# Check that the compiler produces executables we can run.  If not, either
3707
# the compiler is broken, or we cross compile.
216 andreas 3708
{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3709
$as_echo_n "checking whether we are cross compiling... " >&6; }
3710
{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3711
$as_echo "$cross_compiling" >&6; }
88 andreas 3712
 
216 andreas 3713
{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3714
$as_echo_n "checking for suffix of executables... " >&6; }
88 andreas 3715
if { (ac_try="$ac_link"
3716
case "(($ac_try" in
3717
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3718
  *) ac_try_echo=$ac_try;;
3719
esac
216 andreas 3720
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3721
$as_echo "$ac_try_echo") >&5
88 andreas 3722
  (eval "$ac_link") 2>&5
3723
  ac_status=$?
216 andreas 3724
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 3725
  (exit $ac_status); }; then
3726
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3727
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3728
# work properly (i.e., refer to `conftest.exe'), while it won't with
3729
# `rm'.
3730
for ac_file in conftest.exe conftest conftest.*; do
3731
  test -f "$ac_file" || continue
3732
  case $ac_file in
216 andreas 3733
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
88 andreas 3734
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3735
	  break;;
3736
    * ) break;;
3737
  esac
3738
done
3739
else
216 andreas 3740
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3741
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3742
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
88 andreas 3743
See \`config.log' for more details." >&5
216 andreas 3744
$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
88 andreas 3745
See \`config.log' for more details." >&2;}
216 andreas 3746
   { (exit 1); exit 1; }; }; }
88 andreas 3747
fi
3748
 
3749
rm -f conftest$ac_cv_exeext
216 andreas 3750
{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3751
$as_echo "$ac_cv_exeext" >&6; }
88 andreas 3752
 
3753
rm -f conftest.$ac_ext
3754
EXEEXT=$ac_cv_exeext
3755
ac_exeext=$EXEEXT
216 andreas 3756
{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3757
$as_echo_n "checking for suffix of object files... " >&6; }
88 andreas 3758
if test "${ac_cv_objext+set}" = set; then
216 andreas 3759
  $as_echo_n "(cached) " >&6
88 andreas 3760
else
3761
  cat >conftest.$ac_ext <<_ACEOF
3762
/* confdefs.h.  */
3763
_ACEOF
3764
cat confdefs.h >>conftest.$ac_ext
3765
cat >>conftest.$ac_ext <<_ACEOF
3766
/* end confdefs.h.  */
3767
 
3768
int
3769
main ()
3770
{
3771
 
3772
  ;
3773
  return 0;
3774
}
3775
_ACEOF
3776
rm -f conftest.o conftest.obj
3777
if { (ac_try="$ac_compile"
3778
case "(($ac_try" in
3779
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3780
  *) ac_try_echo=$ac_try;;
3781
esac
216 andreas 3782
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3783
$as_echo "$ac_try_echo") >&5
88 andreas 3784
  (eval "$ac_compile") 2>&5
3785
  ac_status=$?
216 andreas 3786
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 3787
  (exit $ac_status); }; then
3788
  for ac_file in conftest.o conftest.obj conftest.*; do
3789
  test -f "$ac_file" || continue;
3790
  case $ac_file in
216 andreas 3791
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
88 andreas 3792
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3793
       break;;
3794
  esac
3795
done
3796
else
216 andreas 3797
  $as_echo "$as_me: failed program was:" >&5
88 andreas 3798
sed 's/^/| /' conftest.$ac_ext >&5
3799
 
216 andreas 3800
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3801
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3802
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
88 andreas 3803
See \`config.log' for more details." >&5
216 andreas 3804
$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
88 andreas 3805
See \`config.log' for more details." >&2;}
216 andreas 3806
   { (exit 1); exit 1; }; }; }
88 andreas 3807
fi
3808
 
3809
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3810
fi
216 andreas 3811
{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3812
$as_echo "$ac_cv_objext" >&6; }
88 andreas 3813
OBJEXT=$ac_cv_objext
3814
ac_objext=$OBJEXT
216 andreas 3815
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3816
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
88 andreas 3817
if test "${ac_cv_c_compiler_gnu+set}" = set; then
216 andreas 3818
  $as_echo_n "(cached) " >&6
88 andreas 3819
else
3820
  cat >conftest.$ac_ext <<_ACEOF
3821
/* confdefs.h.  */
3822
_ACEOF
3823
cat confdefs.h >>conftest.$ac_ext
3824
cat >>conftest.$ac_ext <<_ACEOF
3825
/* end confdefs.h.  */
3826
 
3827
int
3828
main ()
3829
{
3830
#ifndef __GNUC__
3831
       choke me
3832
#endif
3833
 
3834
  ;
3835
  return 0;
3836
}
3837
_ACEOF
3838
rm -f conftest.$ac_objext
3839
if { (ac_try="$ac_compile"
3840
case "(($ac_try" in
3841
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3842
  *) ac_try_echo=$ac_try;;
3843
esac
216 andreas 3844
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3845
$as_echo "$ac_try_echo") >&5
88 andreas 3846
  (eval "$ac_compile") 2>conftest.er1
3847
  ac_status=$?
3848
  grep -v '^ *+' conftest.er1 >conftest.err
3849
  rm -f conftest.er1
3850
  cat conftest.err >&5
216 andreas 3851
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 3852
  (exit $ac_status); } && {
3853
	 test -z "$ac_c_werror_flag" ||
3854
	 test ! -s conftest.err
3855
       } && test -s conftest.$ac_objext; then
3856
  ac_compiler_gnu=yes
3857
else
216 andreas 3858
  $as_echo "$as_me: failed program was:" >&5
88 andreas 3859
sed 's/^/| /' conftest.$ac_ext >&5
3860
 
3861
	ac_compiler_gnu=no
3862
fi
3863
 
3864
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3865
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3866
 
3867
fi
216 andreas 3868
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3869
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3870
if test $ac_compiler_gnu = yes; then
3871
  GCC=yes
3872
else
3873
  GCC=
3874
fi
88 andreas 3875
ac_test_CFLAGS=${CFLAGS+set}
3876
ac_save_CFLAGS=$CFLAGS
216 andreas 3877
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3878
$as_echo_n "checking whether $CC accepts -g... " >&6; }
88 andreas 3879
if test "${ac_cv_prog_cc_g+set}" = set; then
216 andreas 3880
  $as_echo_n "(cached) " >&6
88 andreas 3881
else
3882
  ac_save_c_werror_flag=$ac_c_werror_flag
3883
   ac_c_werror_flag=yes
3884
   ac_cv_prog_cc_g=no
3885
   CFLAGS="-g"
3886
   cat >conftest.$ac_ext <<_ACEOF
3887
/* confdefs.h.  */
3888
_ACEOF
3889
cat confdefs.h >>conftest.$ac_ext
3890
cat >>conftest.$ac_ext <<_ACEOF
3891
/* end confdefs.h.  */
3892
 
3893
int
3894
main ()
3895
{
3896
 
3897
  ;
3898
  return 0;
3899
}
3900
_ACEOF
3901
rm -f conftest.$ac_objext
3902
if { (ac_try="$ac_compile"
3903
case "(($ac_try" in
3904
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3905
  *) ac_try_echo=$ac_try;;
3906
esac
216 andreas 3907
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3908
$as_echo "$ac_try_echo") >&5
88 andreas 3909
  (eval "$ac_compile") 2>conftest.er1
3910
  ac_status=$?
3911
  grep -v '^ *+' conftest.er1 >conftest.err
3912
  rm -f conftest.er1
3913
  cat conftest.err >&5
216 andreas 3914
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 3915
  (exit $ac_status); } && {
3916
	 test -z "$ac_c_werror_flag" ||
3917
	 test ! -s conftest.err
3918
       } && test -s conftest.$ac_objext; then
3919
  ac_cv_prog_cc_g=yes
3920
else
216 andreas 3921
  $as_echo "$as_me: failed program was:" >&5
88 andreas 3922
sed 's/^/| /' conftest.$ac_ext >&5
3923
 
3924
	CFLAGS=""
3925
      cat >conftest.$ac_ext <<_ACEOF
3926
/* confdefs.h.  */
3927
_ACEOF
3928
cat confdefs.h >>conftest.$ac_ext
3929
cat >>conftest.$ac_ext <<_ACEOF
3930
/* end confdefs.h.  */
3931
 
3932
int
3933
main ()
3934
{
3935
 
3936
  ;
3937
  return 0;
3938
}
3939
_ACEOF
3940
rm -f conftest.$ac_objext
3941
if { (ac_try="$ac_compile"
3942
case "(($ac_try" in
3943
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3944
  *) ac_try_echo=$ac_try;;
3945
esac
216 andreas 3946
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3947
$as_echo "$ac_try_echo") >&5
88 andreas 3948
  (eval "$ac_compile") 2>conftest.er1
3949
  ac_status=$?
3950
  grep -v '^ *+' conftest.er1 >conftest.err
3951
  rm -f conftest.er1
3952
  cat conftest.err >&5
216 andreas 3953
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 3954
  (exit $ac_status); } && {
3955
	 test -z "$ac_c_werror_flag" ||
3956
	 test ! -s conftest.err
3957
       } && test -s conftest.$ac_objext; then
3958
  :
3959
else
216 andreas 3960
  $as_echo "$as_me: failed program was:" >&5
88 andreas 3961
sed 's/^/| /' conftest.$ac_ext >&5
3962
 
3963
	ac_c_werror_flag=$ac_save_c_werror_flag
3964
	 CFLAGS="-g"
3965
	 cat >conftest.$ac_ext <<_ACEOF
3966
/* confdefs.h.  */
3967
_ACEOF
3968
cat confdefs.h >>conftest.$ac_ext
3969
cat >>conftest.$ac_ext <<_ACEOF
3970
/* end confdefs.h.  */
3971
 
3972
int
3973
main ()
3974
{
3975
 
3976
  ;
3977
  return 0;
3978
}
3979
_ACEOF
3980
rm -f conftest.$ac_objext
3981
if { (ac_try="$ac_compile"
3982
case "(($ac_try" in
3983
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3984
  *) ac_try_echo=$ac_try;;
3985
esac
216 andreas 3986
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3987
$as_echo "$ac_try_echo") >&5
88 andreas 3988
  (eval "$ac_compile") 2>conftest.er1
3989
  ac_status=$?
3990
  grep -v '^ *+' conftest.er1 >conftest.err
3991
  rm -f conftest.er1
3992
  cat conftest.err >&5
216 andreas 3993
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 3994
  (exit $ac_status); } && {
3995
	 test -z "$ac_c_werror_flag" ||
3996
	 test ! -s conftest.err
3997
       } && test -s conftest.$ac_objext; then
3998
  ac_cv_prog_cc_g=yes
3999
else
216 andreas 4000
  $as_echo "$as_me: failed program was:" >&5
88 andreas 4001
sed 's/^/| /' conftest.$ac_ext >&5
4002
 
4003
 
4004
fi
4005
 
4006
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4007
fi
4008
 
4009
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4010
fi
4011
 
4012
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4013
   ac_c_werror_flag=$ac_save_c_werror_flag
4014
fi
216 andreas 4015
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4016
$as_echo "$ac_cv_prog_cc_g" >&6; }
88 andreas 4017
if test "$ac_test_CFLAGS" = set; then
4018
  CFLAGS=$ac_save_CFLAGS
4019
elif test $ac_cv_prog_cc_g = yes; then
4020
  if test "$GCC" = yes; then
4021
    CFLAGS="-g -O2"
4022
  else
4023
    CFLAGS="-g"
4024
  fi
4025
else
4026
  if test "$GCC" = yes; then
4027
    CFLAGS="-O2"
4028
  else
4029
    CFLAGS=
4030
  fi
4031
fi
216 andreas 4032
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4033
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
88 andreas 4034
if test "${ac_cv_prog_cc_c89+set}" = set; then
216 andreas 4035
  $as_echo_n "(cached) " >&6
88 andreas 4036
else
4037
  ac_cv_prog_cc_c89=no
4038
ac_save_CC=$CC
4039
cat >conftest.$ac_ext <<_ACEOF
4040
/* confdefs.h.  */
4041
_ACEOF
4042
cat confdefs.h >>conftest.$ac_ext
4043
cat >>conftest.$ac_ext <<_ACEOF
4044
/* end confdefs.h.  */
4045
#include <stdarg.h>
4046
#include <stdio.h>
4047
#include <sys/types.h>
4048
#include <sys/stat.h>
4049
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4050
struct buf { int x; };
4051
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4052
static char *e (p, i)
4053
     char **p;
4054
     int i;
4055
{
4056
  return p[i];
4057
}
4058
static char *f (char * (*g) (char **, int), char **p, ...)
4059
{
4060
  char *s;
4061
  va_list v;
4062
  va_start (v,p);
4063
  s = g (p, va_arg (v,int));
4064
  va_end (v);
4065
  return s;
4066
}
4067
 
4068
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4069
   function prototypes and stuff, but not '\xHH' hex character constants.
4070
   These don't provoke an error unfortunately, instead are silently treated
4071
   as 'x'.  The following induces an error, until -std is added to get
4072
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4073
   array size at least.  It's necessary to write '\x00'==0 to get something
4074
   that's true only with -std.  */
4075
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4076
 
4077
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4078
   inside strings and character constants.  */
4079
#define FOO(x) 'x'
4080
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4081
 
4082
int test (int i, double x);
4083
struct s1 {int (*f) (int a);};
4084
struct s2 {int (*f) (double a);};
4085
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4086
int argc;
4087
char **argv;
4088
int
4089
main ()
4090
{
4091
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4092
  ;
4093
  return 0;
4094
}
4095
_ACEOF
4096
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4097
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4098
do
4099
  CC="$ac_save_CC $ac_arg"
4100
  rm -f conftest.$ac_objext
4101
if { (ac_try="$ac_compile"
4102
case "(($ac_try" in
4103
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4104
  *) ac_try_echo=$ac_try;;
4105
esac
216 andreas 4106
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4107
$as_echo "$ac_try_echo") >&5
88 andreas 4108
  (eval "$ac_compile") 2>conftest.er1
4109
  ac_status=$?
4110
  grep -v '^ *+' conftest.er1 >conftest.err
4111
  rm -f conftest.er1
4112
  cat conftest.err >&5
216 andreas 4113
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 4114
  (exit $ac_status); } && {
4115
	 test -z "$ac_c_werror_flag" ||
4116
	 test ! -s conftest.err
4117
       } && test -s conftest.$ac_objext; then
4118
  ac_cv_prog_cc_c89=$ac_arg
4119
else
216 andreas 4120
  $as_echo "$as_me: failed program was:" >&5
88 andreas 4121
sed 's/^/| /' conftest.$ac_ext >&5
4122
 
4123
 
4124
fi
4125
 
4126
rm -f core conftest.err conftest.$ac_objext
4127
  test "x$ac_cv_prog_cc_c89" != "xno" && break
4128
done
4129
rm -f conftest.$ac_ext
4130
CC=$ac_save_CC
4131
 
4132
fi
4133
# AC_CACHE_VAL
4134
case "x$ac_cv_prog_cc_c89" in
4135
  x)
216 andreas 4136
    { $as_echo "$as_me:$LINENO: result: none needed" >&5
4137
$as_echo "none needed" >&6; } ;;
88 andreas 4138
  xno)
216 andreas 4139
    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4140
$as_echo "unsupported" >&6; } ;;
88 andreas 4141
  *)
4142
    CC="$CC $ac_cv_prog_cc_c89"
216 andreas 4143
    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4144
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
88 andreas 4145
esac
4146
 
4147
 
4148
ac_ext=c
4149
ac_cpp='$CPP $CPPFLAGS'
4150
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4151
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4152
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4153
 
4154
depcc="$CC"   am_compiler_list=
4155
 
216 andreas 4156
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4157
$as_echo_n "checking dependency style of $depcc... " >&6; }
88 andreas 4158
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
216 andreas 4159
  $as_echo_n "(cached) " >&6
88 andreas 4160
else
4161
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4162
  # We make a subdir and do the tests there.  Otherwise we can end up
4163
  # making bogus files that we don't know about and never remove.  For
4164
  # instance it was reported that on HP-UX the gcc test will end up
4165
  # making a dummy file named `D' -- because `-MD' means `put the output
4166
  # in D'.
4167
  mkdir conftest.dir
4168
  # Copy depcomp to subdir because otherwise we won't find it if we're
4169
  # using a relative directory.
4170
  cp "$am_depcomp" conftest.dir
4171
  cd conftest.dir
4172
  # We will build objects and dependencies in a subdirectory because
4173
  # it helps to detect inapplicable dependency modes.  For instance
4174
  # both Tru64's cc and ICC support -MD to output dependencies as a
4175
  # side effect of compilation, but ICC will put the dependencies in
4176
  # the current directory while Tru64 will put them in the object
4177
  # directory.
4178
  mkdir sub
4179
 
4180
  am_cv_CC_dependencies_compiler_type=none
4181
  if test "$am_compiler_list" = ""; then
4182
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4183
  fi
4184
  for depmode in $am_compiler_list; do
4185
    # Setup a source with many dependencies, because some compilers
4186
    # like to wrap large dependency lists on column 80 (with \), and
4187
    # we should not choose a depcomp mode which is confused by this.
4188
    #
4189
    # We need to recreate these files for each test, as the compiler may
4190
    # overwrite some of them when testing with obscure command lines.
4191
    # This happens at least with the AIX C compiler.
4192
    : > sub/conftest.c
4193
    for i in 1 2 3 4 5 6; do
4194
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4195
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4196
      # Solaris 8's {/usr,}/bin/sh.
4197
      touch sub/conftst$i.h
4198
    done
4199
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4200
 
4201
    case $depmode in
4202
    nosideeffect)
4203
      # after this tag, mechanisms are not by side-effect, so they'll
4204
      # only be used when explicitly requested
4205
      if test "x$enable_dependency_tracking" = xyes; then
4206
	continue
4207
      else
4208
	break
4209
      fi
4210
      ;;
4211
    none) break ;;
4212
    esac
4213
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4214
    # mode.  It turns out that the SunPro C++ compiler does not properly
4215
    # handle `-M -o', and we need to detect this.
4216
    if depmode=$depmode \
4217
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4218
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4219
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4220
         >/dev/null 2>conftest.err &&
4221
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4222
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4223
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4224
      # icc doesn't choke on unknown options, it will just issue warnings
4225
      # or remarks (even with -Werror).  So we grep stderr for any message
4226
      # that says an option was ignored or not supported.
4227
      # When given -MP, icc 7.0 and 7.1 complain thusly:
4228
      #   icc: Command line warning: ignoring option '-M'; no argument required
4229
      # The diagnosis changed in icc 8.0:
4230
      #   icc: Command line remark: option '-MP' not supported
4231
      if (grep 'ignoring option' conftest.err ||
4232
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4233
        am_cv_CC_dependencies_compiler_type=$depmode
4234
        break
4235
      fi
4236
    fi
4237
  done
4238
 
4239
  cd ..
4240
  rm -rf conftest.dir
4241
else
4242
  am_cv_CC_dependencies_compiler_type=none
4243
fi
4244
 
4245
fi
216 andreas 4246
{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4247
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
88 andreas 4248
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4249
 
91 andreas 4250
 
4251
 
4252
if
88 andreas 4253
  test "x$enable_dependency_tracking" != xno \
4254
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4255
  am__fastdepCC_TRUE=
4256
  am__fastdepCC_FALSE='#'
4257
else
4258
  am__fastdepCC_TRUE='#'
4259
  am__fastdepCC_FALSE=
4260
fi
4261
 
4262
 
4263
 
4264
  ac_ext=c
4265
ac_cpp='$CPP $CPPFLAGS'
4266
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4267
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4268
ac_compiler_gnu=$ac_cv_c_compiler_gnu
216 andreas 4269
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4270
$as_echo_n "checking how to run the C preprocessor... " >&6; }
88 andreas 4271
# On Suns, sometimes $CPP names a directory.
4272
if test -n "$CPP" && test -d "$CPP"; then
4273
  CPP=
4274
fi
4275
if test -z "$CPP"; then
4276
  if test "${ac_cv_prog_CPP+set}" = set; then
216 andreas 4277
  $as_echo_n "(cached) " >&6
88 andreas 4278
else
4279
      # Double quotes because CPP needs to be expanded
4280
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4281
    do
4282
      ac_preproc_ok=false
4283
for ac_c_preproc_warn_flag in '' yes
4284
do
4285
  # Use a header file that comes with gcc, so configuring glibc
4286
  # with a fresh cross-compiler works.
4287
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4288
  # <limits.h> exists even on freestanding compilers.
4289
  # On the NeXT, cc -E runs the code through the compiler's parser,
4290
  # not just through cpp. "Syntax error" is here to catch this case.
4291
  cat >conftest.$ac_ext <<_ACEOF
4292
/* confdefs.h.  */
4293
_ACEOF
4294
cat confdefs.h >>conftest.$ac_ext
4295
cat >>conftest.$ac_ext <<_ACEOF
4296
/* end confdefs.h.  */
4297
#ifdef __STDC__
4298
# include <limits.h>
4299
#else
4300
# include <assert.h>
4301
#endif
4302
		     Syntax error
4303
_ACEOF
4304
if { (ac_try="$ac_cpp conftest.$ac_ext"
4305
case "(($ac_try" in
4306
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4307
  *) ac_try_echo=$ac_try;;
4308
esac
216 andreas 4309
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4310
$as_echo "$ac_try_echo") >&5
88 andreas 4311
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4312
  ac_status=$?
4313
  grep -v '^ *+' conftest.er1 >conftest.err
4314
  rm -f conftest.er1
4315
  cat conftest.err >&5
216 andreas 4316
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 4317
  (exit $ac_status); } >/dev/null && {
4318
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4319
	 test ! -s conftest.err
4320
       }; then
4321
  :
4322
else
216 andreas 4323
  $as_echo "$as_me: failed program was:" >&5
88 andreas 4324
sed 's/^/| /' conftest.$ac_ext >&5
4325
 
4326
  # Broken: fails on valid input.
4327
continue
4328
fi
4329
 
4330
rm -f conftest.err conftest.$ac_ext
4331
 
4332
  # OK, works on sane cases.  Now check whether nonexistent headers
4333
  # can be detected and how.
4334
  cat >conftest.$ac_ext <<_ACEOF
4335
/* confdefs.h.  */
4336
_ACEOF
4337
cat confdefs.h >>conftest.$ac_ext
4338
cat >>conftest.$ac_ext <<_ACEOF
4339
/* end confdefs.h.  */
4340
#include <ac_nonexistent.h>
4341
_ACEOF
4342
if { (ac_try="$ac_cpp conftest.$ac_ext"
4343
case "(($ac_try" in
4344
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4345
  *) ac_try_echo=$ac_try;;
4346
esac
216 andreas 4347
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4348
$as_echo "$ac_try_echo") >&5
88 andreas 4349
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4350
  ac_status=$?
4351
  grep -v '^ *+' conftest.er1 >conftest.err
4352
  rm -f conftest.er1
4353
  cat conftest.err >&5
216 andreas 4354
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 4355
  (exit $ac_status); } >/dev/null && {
4356
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4357
	 test ! -s conftest.err
4358
       }; then
4359
  # Broken: success on invalid input.
4360
continue
4361
else
216 andreas 4362
  $as_echo "$as_me: failed program was:" >&5
88 andreas 4363
sed 's/^/| /' conftest.$ac_ext >&5
4364
 
4365
  # Passes both tests.
4366
ac_preproc_ok=:
4367
break
4368
fi
4369
 
4370
rm -f conftest.err conftest.$ac_ext
4371
 
4372
done
4373
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4374
rm -f conftest.err conftest.$ac_ext
4375
if $ac_preproc_ok; then
4376
  break
4377
fi
4378
 
4379
    done
4380
    ac_cv_prog_CPP=$CPP
4381
 
4382
fi
4383
  CPP=$ac_cv_prog_CPP
4384
else
4385
  ac_cv_prog_CPP=$CPP
4386
fi
216 andreas 4387
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4388
$as_echo "$CPP" >&6; }
88 andreas 4389
ac_preproc_ok=false
4390
for ac_c_preproc_warn_flag in '' yes
4391
do
4392
  # Use a header file that comes with gcc, so configuring glibc
4393
  # with a fresh cross-compiler works.
4394
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4395
  # <limits.h> exists even on freestanding compilers.
4396
  # On the NeXT, cc -E runs the code through the compiler's parser,
4397
  # not just through cpp. "Syntax error" is here to catch this case.
4398
  cat >conftest.$ac_ext <<_ACEOF
4399
/* confdefs.h.  */
4400
_ACEOF
4401
cat confdefs.h >>conftest.$ac_ext
4402
cat >>conftest.$ac_ext <<_ACEOF
4403
/* end confdefs.h.  */
4404
#ifdef __STDC__
4405
# include <limits.h>
4406
#else
4407
# include <assert.h>
4408
#endif
4409
		     Syntax error
4410
_ACEOF
4411
if { (ac_try="$ac_cpp conftest.$ac_ext"
4412
case "(($ac_try" in
4413
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4414
  *) ac_try_echo=$ac_try;;
4415
esac
216 andreas 4416
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4417
$as_echo "$ac_try_echo") >&5
88 andreas 4418
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4419
  ac_status=$?
4420
  grep -v '^ *+' conftest.er1 >conftest.err
4421
  rm -f conftest.er1
4422
  cat conftest.err >&5
216 andreas 4423
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 4424
  (exit $ac_status); } >/dev/null && {
4425
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4426
	 test ! -s conftest.err
4427
       }; then
4428
  :
4429
else
216 andreas 4430
  $as_echo "$as_me: failed program was:" >&5
88 andreas 4431
sed 's/^/| /' conftest.$ac_ext >&5
4432
 
4433
  # Broken: fails on valid input.
4434
continue
4435
fi
4436
 
4437
rm -f conftest.err conftest.$ac_ext
4438
 
4439
  # OK, works on sane cases.  Now check whether nonexistent headers
4440
  # can be detected and how.
4441
  cat >conftest.$ac_ext <<_ACEOF
4442
/* confdefs.h.  */
4443
_ACEOF
4444
cat confdefs.h >>conftest.$ac_ext
4445
cat >>conftest.$ac_ext <<_ACEOF
4446
/* end confdefs.h.  */
4447
#include <ac_nonexistent.h>
4448
_ACEOF
4449
if { (ac_try="$ac_cpp conftest.$ac_ext"
4450
case "(($ac_try" in
4451
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4452
  *) ac_try_echo=$ac_try;;
4453
esac
216 andreas 4454
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4455
$as_echo "$ac_try_echo") >&5
88 andreas 4456
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4457
  ac_status=$?
4458
  grep -v '^ *+' conftest.er1 >conftest.err
4459
  rm -f conftest.er1
4460
  cat conftest.err >&5
216 andreas 4461
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 4462
  (exit $ac_status); } >/dev/null && {
4463
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4464
	 test ! -s conftest.err
4465
       }; then
4466
  # Broken: success on invalid input.
4467
continue
4468
else
216 andreas 4469
  $as_echo "$as_me: failed program was:" >&5
88 andreas 4470
sed 's/^/| /' conftest.$ac_ext >&5
4471
 
4472
  # Passes both tests.
4473
ac_preproc_ok=:
4474
break
4475
fi
4476
 
4477
rm -f conftest.err conftest.$ac_ext
4478
 
4479
done
4480
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4481
rm -f conftest.err conftest.$ac_ext
4482
if $ac_preproc_ok; then
4483
  :
4484
else
216 andreas 4485
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4486
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4487
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
88 andreas 4488
See \`config.log' for more details." >&5
216 andreas 4489
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
88 andreas 4490
See \`config.log' for more details." >&2;}
216 andreas 4491
   { (exit 1); exit 1; }; }; }
88 andreas 4492
fi
4493
 
4494
ac_ext=c
4495
ac_cpp='$CPP $CPPFLAGS'
4496
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4497
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4498
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4499
 
4500
 
4501
  if test "$GCC" = "yes"; then
4502
    if test "$kde_use_debug_code" != "no"; then
4503
      if test $kde_use_debug_code = "full"; then
4504
        CFLAGS="-g3 -fno-inline $CFLAGS"
4505
      else
4506
        CFLAGS="-g -O2 -fno-schedule-insns -fno-inline $CFLAGS"
4507
      fi
4508
    else
4509
      CFLAGS="-O2 $CFLAGS"
4510
    fi
4511
  fi
4512
 
4513
  if test "$kde_use_debug_define" = "yes"; then
4514
    CFLAGS="-DNDEBUG $CFLAGS"
4515
  fi
4516
 
4517
 
4518
  case "$host" in
4519
  *-*-sysv4.2uw*) CFLAGS="-D_UNIXWARE $CFLAGS";;
4520
  *-*-sysv5uw7*) CFLAGS="-D_UNIXWARE7 $CFLAGS";;
4521
  esac
4522
 
4523
  if test -z "$LDFLAGS" && test "$kde_use_debug_code" = "no" && test "$GCC" = "yes"; then
4524
     LDFLAGS=""
4525
  fi
4526
 
4527
  CXXFLAGS=" $CXXFLAGS"
4528
 
4529
  ac_ext=cpp
4530
ac_cpp='$CXXCPP $CPPFLAGS'
4531
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4532
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4533
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4534
if test -z "$CXX"; then
4535
  if test -n "$CCC"; then
4536
    CXX=$CCC
4537
  else
4538
    if test -n "$ac_tool_prefix"; then
4539
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4540
  do
4541
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4542
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
216 andreas 4543
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4544
$as_echo_n "checking for $ac_word... " >&6; }
88 andreas 4545
if test "${ac_cv_prog_CXX+set}" = set; then
216 andreas 4546
  $as_echo_n "(cached) " >&6
88 andreas 4547
else
4548
  if test -n "$CXX"; then
4549
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4550
else
4551
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4552
for as_dir in $PATH
4553
do
4554
  IFS=$as_save_IFS
4555
  test -z "$as_dir" && as_dir=.
4556
  for ac_exec_ext in '' $ac_executable_extensions; do
4557
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4558
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
216 andreas 4559
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
88 andreas 4560
    break 2
4561
  fi
4562
done
4563
done
4564
IFS=$as_save_IFS
4565
 
4566
fi
4567
fi
4568
CXX=$ac_cv_prog_CXX
4569
if test -n "$CXX"; then
216 andreas 4570
  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
4571
$as_echo "$CXX" >&6; }
88 andreas 4572
else
216 andreas 4573
  { $as_echo "$as_me:$LINENO: result: no" >&5
4574
$as_echo "no" >&6; }
88 andreas 4575
fi
4576
 
4577
 
4578
    test -n "$CXX" && break
4579
  done
4580
fi
4581
if test -z "$CXX"; then
4582
  ac_ct_CXX=$CXX
4583
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4584
do
4585
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4586
set dummy $ac_prog; ac_word=$2
216 andreas 4587
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4588
$as_echo_n "checking for $ac_word... " >&6; }
88 andreas 4589
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
216 andreas 4590
  $as_echo_n "(cached) " >&6
88 andreas 4591
else
4592
  if test -n "$ac_ct_CXX"; then
4593
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4594
else
4595
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596
for as_dir in $PATH
4597
do
4598
  IFS=$as_save_IFS
4599
  test -z "$as_dir" && as_dir=.
4600
  for ac_exec_ext in '' $ac_executable_extensions; do
4601
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4602
    ac_cv_prog_ac_ct_CXX="$ac_prog"
216 andreas 4603
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
88 andreas 4604
    break 2
4605
  fi
4606
done
4607
done
4608
IFS=$as_save_IFS
4609
 
4610
fi
4611
fi
4612
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4613
if test -n "$ac_ct_CXX"; then
216 andreas 4614
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4615
$as_echo "$ac_ct_CXX" >&6; }
88 andreas 4616
else
216 andreas 4617
  { $as_echo "$as_me:$LINENO: result: no" >&5
4618
$as_echo "no" >&6; }
88 andreas 4619
fi
4620
 
4621
 
4622
  test -n "$ac_ct_CXX" && break
4623
done
4624
 
4625
  if test "x$ac_ct_CXX" = x; then
4626
    CXX="g++"
4627
  else
4628
    case $cross_compiling:$ac_tool_warned in
4629
yes:)
216 andreas 4630
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4631
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
88 andreas 4632
ac_tool_warned=yes ;;
4633
esac
4634
    CXX=$ac_ct_CXX
4635
  fi
4636
fi
4637
 
4638
  fi
4639
fi
4640
# Provide some information about the compiler.
216 andreas 4641
$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4642
set X $ac_compile
4643
ac_compiler=$2
88 andreas 4644
{ (ac_try="$ac_compiler --version >&5"
4645
case "(($ac_try" in
4646
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4647
  *) ac_try_echo=$ac_try;;
4648
esac
216 andreas 4649
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4650
$as_echo "$ac_try_echo") >&5
88 andreas 4651
  (eval "$ac_compiler --version >&5") 2>&5
4652
  ac_status=$?
216 andreas 4653
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 4654
  (exit $ac_status); }
4655
{ (ac_try="$ac_compiler -v >&5"
4656
case "(($ac_try" in
4657
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4658
  *) ac_try_echo=$ac_try;;
4659
esac
216 andreas 4660
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4661
$as_echo "$ac_try_echo") >&5
88 andreas 4662
  (eval "$ac_compiler -v >&5") 2>&5
4663
  ac_status=$?
216 andreas 4664
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 4665
  (exit $ac_status); }
4666
{ (ac_try="$ac_compiler -V >&5"
4667
case "(($ac_try" in
4668
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4669
  *) ac_try_echo=$ac_try;;
4670
esac
216 andreas 4671
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4672
$as_echo "$ac_try_echo") >&5
88 andreas 4673
  (eval "$ac_compiler -V >&5") 2>&5
4674
  ac_status=$?
216 andreas 4675
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 4676
  (exit $ac_status); }
4677
 
216 andreas 4678
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4679
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
88 andreas 4680
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
216 andreas 4681
  $as_echo_n "(cached) " >&6
88 andreas 4682
else
4683
  cat >conftest.$ac_ext <<_ACEOF
4684
/* confdefs.h.  */
4685
_ACEOF
4686
cat confdefs.h >>conftest.$ac_ext
4687
cat >>conftest.$ac_ext <<_ACEOF
4688
/* end confdefs.h.  */
4689
 
4690
int
4691
main ()
4692
{
4693
#ifndef __GNUC__
4694
       choke me
4695
#endif
4696
 
4697
  ;
4698
  return 0;
4699
}
4700
_ACEOF
4701
rm -f conftest.$ac_objext
4702
if { (ac_try="$ac_compile"
4703
case "(($ac_try" in
4704
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4705
  *) ac_try_echo=$ac_try;;
4706
esac
216 andreas 4707
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4708
$as_echo "$ac_try_echo") >&5
88 andreas 4709
  (eval "$ac_compile") 2>conftest.er1
4710
  ac_status=$?
4711
  grep -v '^ *+' conftest.er1 >conftest.err
4712
  rm -f conftest.er1
4713
  cat conftest.err >&5
216 andreas 4714
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 4715
  (exit $ac_status); } && {
4716
	 test -z "$ac_cxx_werror_flag" ||
4717
	 test ! -s conftest.err
4718
       } && test -s conftest.$ac_objext; then
4719
  ac_compiler_gnu=yes
4720
else
216 andreas 4721
  $as_echo "$as_me: failed program was:" >&5
88 andreas 4722
sed 's/^/| /' conftest.$ac_ext >&5
4723
 
4724
	ac_compiler_gnu=no
4725
fi
4726
 
4727
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4728
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4729
 
4730
fi
216 andreas 4731
{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4732
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4733
if test $ac_compiler_gnu = yes; then
4734
  GXX=yes
4735
else
4736
  GXX=
4737
fi
88 andreas 4738
ac_test_CXXFLAGS=${CXXFLAGS+set}
4739
ac_save_CXXFLAGS=$CXXFLAGS
216 andreas 4740
{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4741
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
88 andreas 4742
if test "${ac_cv_prog_cxx_g+set}" = set; then
216 andreas 4743
  $as_echo_n "(cached) " >&6
88 andreas 4744
else
4745
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4746
   ac_cxx_werror_flag=yes
4747
   ac_cv_prog_cxx_g=no
4748
   CXXFLAGS="-g"
4749
   cat >conftest.$ac_ext <<_ACEOF
4750
/* confdefs.h.  */
4751
_ACEOF
4752
cat confdefs.h >>conftest.$ac_ext
4753
cat >>conftest.$ac_ext <<_ACEOF
4754
/* end confdefs.h.  */
4755
 
4756
int
4757
main ()
4758
{
4759
 
4760
  ;
4761
  return 0;
4762
}
4763
_ACEOF
4764
rm -f conftest.$ac_objext
4765
if { (ac_try="$ac_compile"
4766
case "(($ac_try" in
4767
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4768
  *) ac_try_echo=$ac_try;;
4769
esac
216 andreas 4770
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4771
$as_echo "$ac_try_echo") >&5
88 andreas 4772
  (eval "$ac_compile") 2>conftest.er1
4773
  ac_status=$?
4774
  grep -v '^ *+' conftest.er1 >conftest.err
4775
  rm -f conftest.er1
4776
  cat conftest.err >&5
216 andreas 4777
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 4778
  (exit $ac_status); } && {
4779
	 test -z "$ac_cxx_werror_flag" ||
4780
	 test ! -s conftest.err
4781
       } && test -s conftest.$ac_objext; then
4782
  ac_cv_prog_cxx_g=yes
4783
else
216 andreas 4784
  $as_echo "$as_me: failed program was:" >&5
88 andreas 4785
sed 's/^/| /' conftest.$ac_ext >&5
4786
 
4787
	CXXFLAGS=""
4788
      cat >conftest.$ac_ext <<_ACEOF
4789
/* confdefs.h.  */
4790
_ACEOF
4791
cat confdefs.h >>conftest.$ac_ext
4792
cat >>conftest.$ac_ext <<_ACEOF
4793
/* end confdefs.h.  */
4794
 
4795
int
4796
main ()
4797
{
4798
 
4799
  ;
4800
  return 0;
4801
}
4802
_ACEOF
4803
rm -f conftest.$ac_objext
4804
if { (ac_try="$ac_compile"
4805
case "(($ac_try" in
4806
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4807
  *) ac_try_echo=$ac_try;;
4808
esac
216 andreas 4809
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4810
$as_echo "$ac_try_echo") >&5
88 andreas 4811
  (eval "$ac_compile") 2>conftest.er1
4812
  ac_status=$?
4813
  grep -v '^ *+' conftest.er1 >conftest.err
4814
  rm -f conftest.er1
4815
  cat conftest.err >&5
216 andreas 4816
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 4817
  (exit $ac_status); } && {
4818
	 test -z "$ac_cxx_werror_flag" ||
4819
	 test ! -s conftest.err
4820
       } && test -s conftest.$ac_objext; then
4821
  :
4822
else
216 andreas 4823
  $as_echo "$as_me: failed program was:" >&5
88 andreas 4824
sed 's/^/| /' conftest.$ac_ext >&5
4825
 
4826
	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4827
	 CXXFLAGS="-g"
4828
	 cat >conftest.$ac_ext <<_ACEOF
4829
/* confdefs.h.  */
4830
_ACEOF
4831
cat confdefs.h >>conftest.$ac_ext
4832
cat >>conftest.$ac_ext <<_ACEOF
4833
/* end confdefs.h.  */
4834
 
4835
int
4836
main ()
4837
{
4838
 
4839
  ;
4840
  return 0;
4841
}
4842
_ACEOF
4843
rm -f conftest.$ac_objext
4844
if { (ac_try="$ac_compile"
4845
case "(($ac_try" in
4846
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4847
  *) ac_try_echo=$ac_try;;
4848
esac
216 andreas 4849
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4850
$as_echo "$ac_try_echo") >&5
88 andreas 4851
  (eval "$ac_compile") 2>conftest.er1
4852
  ac_status=$?
4853
  grep -v '^ *+' conftest.er1 >conftest.err
4854
  rm -f conftest.er1
4855
  cat conftest.err >&5
216 andreas 4856
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 4857
  (exit $ac_status); } && {
4858
	 test -z "$ac_cxx_werror_flag" ||
4859
	 test ! -s conftest.err
4860
       } && test -s conftest.$ac_objext; then
4861
  ac_cv_prog_cxx_g=yes
4862
else
216 andreas 4863
  $as_echo "$as_me: failed program was:" >&5
88 andreas 4864
sed 's/^/| /' conftest.$ac_ext >&5
4865
 
4866
 
4867
fi
4868
 
4869
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4870
fi
4871
 
4872
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4873
fi
4874
 
4875
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4876
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4877
fi
216 andreas 4878
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4879
$as_echo "$ac_cv_prog_cxx_g" >&6; }
88 andreas 4880
if test "$ac_test_CXXFLAGS" = set; then
4881
  CXXFLAGS=$ac_save_CXXFLAGS
4882
elif test $ac_cv_prog_cxx_g = yes; then
4883
  if test "$GXX" = yes; then
4884
    CXXFLAGS="-g -O2"
4885
  else
4886
    CXXFLAGS="-g"
4887
  fi
4888
else
4889
  if test "$GXX" = yes; then
4890
    CXXFLAGS="-O2"
4891
  else
4892
    CXXFLAGS=
4893
  fi
4894
fi
4895
ac_ext=c
4896
ac_cpp='$CPP $CPPFLAGS'
4897
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4898
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4899
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4900
 
4901
depcc="$CXX"  am_compiler_list=
4902
 
216 andreas 4903
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4904
$as_echo_n "checking dependency style of $depcc... " >&6; }
88 andreas 4905
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
216 andreas 4906
  $as_echo_n "(cached) " >&6
88 andreas 4907
else
4908
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4909
  # We make a subdir and do the tests there.  Otherwise we can end up
4910
  # making bogus files that we don't know about and never remove.  For
4911
  # instance it was reported that on HP-UX the gcc test will end up
4912
  # making a dummy file named `D' -- because `-MD' means `put the output
4913
  # in D'.
4914
  mkdir conftest.dir
4915
  # Copy depcomp to subdir because otherwise we won't find it if we're
4916
  # using a relative directory.
4917
  cp "$am_depcomp" conftest.dir
4918
  cd conftest.dir
4919
  # We will build objects and dependencies in a subdirectory because
4920
  # it helps to detect inapplicable dependency modes.  For instance
4921
  # both Tru64's cc and ICC support -MD to output dependencies as a
4922
  # side effect of compilation, but ICC will put the dependencies in
4923
  # the current directory while Tru64 will put them in the object
4924
  # directory.
4925
  mkdir sub
4926
 
4927
  am_cv_CXX_dependencies_compiler_type=none
4928
  if test "$am_compiler_list" = ""; then
4929
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4930
  fi
4931
  for depmode in $am_compiler_list; do
4932
    # Setup a source with many dependencies, because some compilers
4933
    # like to wrap large dependency lists on column 80 (with \), and
4934
    # we should not choose a depcomp mode which is confused by this.
4935
    #
4936
    # We need to recreate these files for each test, as the compiler may
4937
    # overwrite some of them when testing with obscure command lines.
4938
    # This happens at least with the AIX C compiler.
4939
    : > sub/conftest.c
4940
    for i in 1 2 3 4 5 6; do
4941
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4942
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4943
      # Solaris 8's {/usr,}/bin/sh.
4944
      touch sub/conftst$i.h
4945
    done
4946
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4947
 
4948
    case $depmode in
4949
    nosideeffect)
4950
      # after this tag, mechanisms are not by side-effect, so they'll
4951
      # only be used when explicitly requested
4952
      if test "x$enable_dependency_tracking" = xyes; then
4953
	continue
4954
      else
4955
	break
4956
      fi
4957
      ;;
4958
    none) break ;;
4959
    esac
4960
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4961
    # mode.  It turns out that the SunPro C++ compiler does not properly
4962
    # handle `-M -o', and we need to detect this.
4963
    if depmode=$depmode \
4964
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4965
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4966
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4967
         >/dev/null 2>conftest.err &&
4968
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4969
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4970
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4971
      # icc doesn't choke on unknown options, it will just issue warnings
4972
      # or remarks (even with -Werror).  So we grep stderr for any message
4973
      # that says an option was ignored or not supported.
4974
      # When given -MP, icc 7.0 and 7.1 complain thusly:
4975
      #   icc: Command line warning: ignoring option '-M'; no argument required
4976
      # The diagnosis changed in icc 8.0:
4977
      #   icc: Command line remark: option '-MP' not supported
4978
      if (grep 'ignoring option' conftest.err ||
4979
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4980
        am_cv_CXX_dependencies_compiler_type=$depmode
4981
        break
4982
      fi
4983
    fi
4984
  done
4985
 
4986
  cd ..
4987
  rm -rf conftest.dir
4988
else
4989
  am_cv_CXX_dependencies_compiler_type=none
4990
fi
4991
 
4992
fi
216 andreas 4993
{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4994
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
88 andreas 4995
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4996
 
91 andreas 4997
 
4998
 
4999
if
88 andreas 5000
  test "x$enable_dependency_tracking" != xno \
5001
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5002
  am__fastdepCXX_TRUE=
5003
  am__fastdepCXX_FALSE='#'
5004
else
5005
  am__fastdepCXX_TRUE='#'
5006
  am__fastdepCXX_FALSE=
5007
fi
5008
 
5009
 
5010
 
5011
 
216 andreas 5012
  { $as_echo "$as_me:$LINENO: checking whether $CC is blacklisted" >&5
5013
$as_echo_n "checking whether $CC is blacklisted... " >&6; }
88 andreas 5014
 
5015
 
5016
  cat >conftest.$ac_ext <<_ACEOF
5017
/* confdefs.h.  */
5018
_ACEOF
5019
cat confdefs.h >>conftest.$ac_ext
5020
cat >>conftest.$ac_ext <<_ACEOF
5021
/* end confdefs.h.  */
5022
 
5023
#ifdef __GNUC__
5024
#if __GNUC__ == 4 && __GNUC_MINOR__ == 0 && __GNUC_PATCHLEVEL__ == 0
5025
choke me
5026
#endif
5027
#endif
5028
 
5029
int
5030
main ()
5031
{
5032
 
5033
  ;
5034
  return 0;
5035
}
5036
_ACEOF
5037
rm -f conftest.$ac_objext
5038
if { (ac_try="$ac_compile"
5039
case "(($ac_try" in
5040
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5041
  *) ac_try_echo=$ac_try;;
5042
esac
216 andreas 5043
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5044
$as_echo "$ac_try_echo") >&5
88 andreas 5045
  (eval "$ac_compile") 2>conftest.er1
5046
  ac_status=$?
5047
  grep -v '^ *+' conftest.er1 >conftest.err
5048
  rm -f conftest.er1
5049
  cat conftest.err >&5
216 andreas 5050
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 5051
  (exit $ac_status); } && {
5052
	 test -z "$ac_c_werror_flag" ||
5053
	 test ! -s conftest.err
5054
       } && test -s conftest.$ac_objext; then
5055
  kde_bad_compiler=no
5056
else
216 andreas 5057
  $as_echo "$as_me: failed program was:" >&5
88 andreas 5058
sed 's/^/| /' conftest.$ac_ext >&5
5059
 
5060
	kde_bad_compiler=yes
5061
 
5062
fi
5063
 
5064
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5065
 
216 andreas 5066
  { $as_echo "$as_me:$LINENO: result: $kde_bad_compiler" >&5
5067
$as_echo "$kde_bad_compiler" >&6; }
88 andreas 5068
 
5069
if test "$kde_bad_compiler" = "yes"; then
216 andreas 5070
  { { $as_echo "$as_me:$LINENO: error:
88 andreas 5071
 
5072
This particular compiler version is blacklisted because it
5073
is known to miscompile KDE. Please use a newer version, or
5074
if that is not yet available, choose an older version.
5075
 
5076
Please do not report a bug or bother us reporting this
5077
configure error. We know about it, and we introduced
5078
it by intention to avoid untraceable bugs or crashes in KDE.
5079
 
5080
" >&5
216 andreas 5081
$as_echo "$as_me: error:
88 andreas 5082
 
5083
This particular compiler version is blacklisted because it
5084
is known to miscompile KDE. Please use a newer version, or
5085
if that is not yet available, choose an older version.
5086
 
5087
Please do not report a bug or bother us reporting this
5088
configure error. We know about it, and we introduced
5089
it by intention to avoid untraceable bugs or crashes in KDE.
5090
 
5091
" >&2;}
5092
   { (exit 1); exit 1; }; }
5093
fi
5094
 
5095
 
5096
 
5097
  if test "$GXX" = "yes" || test "$CXX" = "KCC"; then
5098
    if test "$kde_use_debug_code" != "no"; then
5099
      if test "$CXX" = "KCC"; then
5100
        CXXFLAGS="+K0 -Wall -pedantic -W -Wpointer-arith -Wwrite-strings $CXXFLAGS"
5101
      else
5102
        if test "$kde_use_debug_code" = "full"; then
5103
          CXXFLAGS="-g3 -fno-inline $CXXFLAGS"
5104
        else
5105
          CXXFLAGS="-g -O2 -fno-schedule-insns -fno-inline $CXXFLAGS"
5106
        fi
5107
      fi
5108
 
216 andreas 5109
{ $as_echo "$as_me:$LINENO: checking whether $CXX supports -fno-builtin" >&5
5110
$as_echo_n "checking whether $CXX supports -fno-builtin... " >&6; }
88 andreas 5111
kde_cache=`echo fno-builtin | sed 'y% .=/+-,%____p__%'`
5112
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
216 andreas 5113
  $as_echo_n "(cached) " >&6
88 andreas 5114
else
5115
 
5116
 
5117
 
5118
ac_ext=cpp
5119
ac_cpp='$CXXCPP $CPPFLAGS'
5120
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5121
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5122
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5123
 
5124
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5125
 
5126
 
5127
 
5128
  save_CXXFLAGS="$CXXFLAGS"
5129
  CXXFLAGS="$CXXFLAGS -fno-builtin"
5130
  cat >conftest.$ac_ext <<_ACEOF
5131
/* confdefs.h.  */
5132
_ACEOF
5133
cat confdefs.h >>conftest.$ac_ext
5134
cat >>conftest.$ac_ext <<_ACEOF
5135
/* end confdefs.h.  */
5136
 
5137
int
5138
main ()
5139
{
5140
 return 0;
5141
  ;
5142
  return 0;
5143
}
5144
_ACEOF
5145
rm -f conftest.$ac_objext conftest$ac_exeext
5146
if { (ac_try="$ac_link"
5147
case "(($ac_try" in
5148
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5149
  *) ac_try_echo=$ac_try;;
5150
esac
216 andreas 5151
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5152
$as_echo "$ac_try_echo") >&5
88 andreas 5153
  (eval "$ac_link") 2>conftest.er1
5154
  ac_status=$?
5155
  grep -v '^ *+' conftest.er1 >conftest.err
5156
  rm -f conftest.er1
5157
  cat conftest.err >&5
216 andreas 5158
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 5159
  (exit $ac_status); } && {
5160
	 test -z "$ac_cxx_werror_flag" ||
5161
	 test ! -s conftest.err
216 andreas 5162
       } && test -s conftest$ac_exeext && {
5163
	 test "$cross_compiling" = yes ||
5164
	 $as_test_x conftest$ac_exeext
5165
       }; then
88 andreas 5166
  eval "kde_cv_prog_cxx_$kde_cache=yes"
5167
else
216 andreas 5168
  $as_echo "$as_me: failed program was:" >&5
88 andreas 5169
sed 's/^/| /' conftest.$ac_ext >&5
5170
 
5171
 
5172
fi
5173
 
216 andreas 5174
rm -rf conftest.dSYM
88 andreas 5175
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5176
      conftest$ac_exeext conftest.$ac_ext
5177
  CXXFLAGS="$save_CXXFLAGS"
5178
  ac_ext=c
5179
ac_cpp='$CPP $CPPFLAGS'
5180
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5181
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5182
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5183
 
5184
 
5185
fi
5186
 
5187
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
216 andreas 5188
 { $as_echo "$as_me:$LINENO: result: yes" >&5
5189
$as_echo "yes" >&6; }
88 andreas 5190
 :
5191
 CXXFLAGS="-fno-builtin $CXXFLAGS"
5192
else
216 andreas 5193
 { $as_echo "$as_me:$LINENO: result: no" >&5
5194
$as_echo "no" >&6; }
88 andreas 5195
 :
5196
 
5197
fi
5198
 
5199
 
5200
 
216 andreas 5201
{ $as_echo "$as_me:$LINENO: checking whether $CXX supports -Woverloaded-virtual" >&5
5202
$as_echo_n "checking whether $CXX supports -Woverloaded-virtual... " >&6; }
88 andreas 5203
kde_cache=`echo Woverloaded-virtual | sed 'y% .=/+-,%____p__%'`
5204
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
216 andreas 5205
  $as_echo_n "(cached) " >&6
88 andreas 5206
else
5207
 
5208
 
5209
   ac_ext=cpp
5210
ac_cpp='$CXXCPP $CPPFLAGS'
5211
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5212
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5213
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5214
 
5215
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5216
 
5217
 
5218
  save_CXXFLAGS="$CXXFLAGS"
5219
  CXXFLAGS="$CXXFLAGS -Woverloaded-virtual"
5220
  cat >conftest.$ac_ext <<_ACEOF
5221
/* confdefs.h.  */
5222
_ACEOF
5223
cat confdefs.h >>conftest.$ac_ext
5224
cat >>conftest.$ac_ext <<_ACEOF
5225
/* end confdefs.h.  */
5226
 
5227
int
5228
main ()
5229
{
5230
 return 0;
5231
  ;
5232
  return 0;
5233
}
5234
_ACEOF
5235
rm -f conftest.$ac_objext conftest$ac_exeext
5236
if { (ac_try="$ac_link"
5237
case "(($ac_try" in
5238
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5239
  *) ac_try_echo=$ac_try;;
5240
esac
216 andreas 5241
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5242
$as_echo "$ac_try_echo") >&5
88 andreas 5243
  (eval "$ac_link") 2>conftest.er1
5244
  ac_status=$?
5245
  grep -v '^ *+' conftest.er1 >conftest.err
5246
  rm -f conftest.er1
5247
  cat conftest.err >&5
216 andreas 5248
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 5249
  (exit $ac_status); } && {
5250
	 test -z "$ac_cxx_werror_flag" ||
5251
	 test ! -s conftest.err
216 andreas 5252
       } && test -s conftest$ac_exeext && {
5253
	 test "$cross_compiling" = yes ||
5254
	 $as_test_x conftest$ac_exeext
5255
       }; then
88 andreas 5256
  eval "kde_cv_prog_cxx_$kde_cache=yes"
5257
else
216 andreas 5258
  $as_echo "$as_me: failed program was:" >&5
88 andreas 5259
sed 's/^/| /' conftest.$ac_ext >&5
5260
 
5261
 
5262
fi
5263
 
216 andreas 5264
rm -rf conftest.dSYM
88 andreas 5265
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5266
      conftest$ac_exeext conftest.$ac_ext
5267
  CXXFLAGS="$save_CXXFLAGS"
5268
  ac_ext=c
5269
ac_cpp='$CPP $CPPFLAGS'
5270
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5271
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5272
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5273
 
5274
 
5275
fi
5276
 
5277
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
216 andreas 5278
 { $as_echo "$as_me:$LINENO: result: yes" >&5
5279
$as_echo "yes" >&6; }
88 andreas 5280
 :
5281
 WOVERLOADED_VIRTUAL="-Woverloaded-virtual"
5282
else
216 andreas 5283
 { $as_echo "$as_me:$LINENO: result: no" >&5
5284
$as_echo "no" >&6; }
88 andreas 5285
 :
5286
 WOVERLOADED_VRITUAL=""
5287
fi
5288
 
5289
 
5290
    else
5291
      if test "$CXX" = "KCC"; then
5292
        CXXFLAGS="+K3 $CXXFLAGS"
5293
      else
5294
        CXXFLAGS="-O2 $CXXFLAGS"
5295
      fi
5296
    fi
5297
  fi
5298
 
5299
  if test "$kde_use_debug_define" = "yes"; then
5300
    CXXFLAGS="-DNDEBUG -DNO_DEBUG $CXXFLAGS"
5301
  fi
5302
 
5303
  if test "$kde_use_profiling" = "yes"; then
5304
 
216 andreas 5305
{ $as_echo "$as_me:$LINENO: checking whether $CXX supports -pg" >&5
5306
$as_echo_n "checking whether $CXX supports -pg... " >&6; }
88 andreas 5307
kde_cache=`echo pg | sed 'y% .=/+-,%____p__%'`
5308
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
216 andreas 5309
  $as_echo_n "(cached) " >&6
88 andreas 5310
else
5311
 
5312
 
5313
   ac_ext=cpp
5314
ac_cpp='$CXXCPP $CPPFLAGS'
5315
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5316
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5317
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5318
 
5319
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5320
 
5321
 
5322
  save_CXXFLAGS="$CXXFLAGS"
5323
  CXXFLAGS="$CXXFLAGS -pg"
5324
  cat >conftest.$ac_ext <<_ACEOF
5325
/* confdefs.h.  */
5326
_ACEOF
5327
cat confdefs.h >>conftest.$ac_ext
5328
cat >>conftest.$ac_ext <<_ACEOF
5329
/* end confdefs.h.  */
5330
 
5331
int
5332
main ()
5333
{
5334
 return 0;
5335
  ;
5336
  return 0;
5337
}
5338
_ACEOF
5339
rm -f conftest.$ac_objext conftest$ac_exeext
5340
if { (ac_try="$ac_link"
5341
case "(($ac_try" in
5342
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5343
  *) ac_try_echo=$ac_try;;
5344
esac
216 andreas 5345
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5346
$as_echo "$ac_try_echo") >&5
88 andreas 5347
  (eval "$ac_link") 2>conftest.er1
5348
  ac_status=$?
5349
  grep -v '^ *+' conftest.er1 >conftest.err
5350
  rm -f conftest.er1
5351
  cat conftest.err >&5
216 andreas 5352
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 5353
  (exit $ac_status); } && {
5354
	 test -z "$ac_cxx_werror_flag" ||
5355
	 test ! -s conftest.err
216 andreas 5356
       } && test -s conftest$ac_exeext && {
5357
	 test "$cross_compiling" = yes ||
5358
	 $as_test_x conftest$ac_exeext
5359
       }; then
88 andreas 5360
  eval "kde_cv_prog_cxx_$kde_cache=yes"
5361
else
216 andreas 5362
  $as_echo "$as_me: failed program was:" >&5
88 andreas 5363
sed 's/^/| /' conftest.$ac_ext >&5
5364
 
5365
 
5366
fi
5367
 
216 andreas 5368
rm -rf conftest.dSYM
88 andreas 5369
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5370
      conftest$ac_exeext conftest.$ac_ext
5371
  CXXFLAGS="$save_CXXFLAGS"
5372
  ac_ext=c
5373
ac_cpp='$CPP $CPPFLAGS'
5374
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5375
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5376
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5377
 
5378
 
5379
fi
5380
 
5381
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
216 andreas 5382
 { $as_echo "$as_me:$LINENO: result: yes" >&5
5383
$as_echo "yes" >&6; }
88 andreas 5384
 :
5385
 
5386
      CFLAGS="-pg $CFLAGS"
5387
      CXXFLAGS="-pg $CXXFLAGS"
5388
 
5389
else
216 andreas 5390
 { $as_echo "$as_me:$LINENO: result: no" >&5
5391
$as_echo "no" >&6; }
88 andreas 5392
 :
5393
 
5394
fi
5395
 
5396
  fi
5397
 
5398
  if test "$kde_use_warnings" = "yes"; then
5399
      if test "$GCC" = "yes"; then
5400
        CXXFLAGS="-Wall -W -Wpointer-arith $CXXFLAGS"
5401
        case $host in
5402
          *-*-linux-gnu)
5403
            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
5404
            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
5405
 
216 andreas 5406
{ $as_echo "$as_me:$LINENO: checking whether $CXX supports -Wmissing-format-attribute" >&5
5407
$as_echo_n "checking whether $CXX supports -Wmissing-format-attribute... " >&6; }
88 andreas 5408
kde_cache=`echo Wmissing-format-attribute | sed 'y% .=/+-,%____p__%'`
5409
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
216 andreas 5410
  $as_echo_n "(cached) " >&6
88 andreas 5411
else
5412
 
5413
 
5414
   ac_ext=cpp
5415
ac_cpp='$CXXCPP $CPPFLAGS'
5416
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5417
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5418
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5419
 
5420
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5421
 
5422
 
5423
  save_CXXFLAGS="$CXXFLAGS"
5424
  CXXFLAGS="$CXXFLAGS -Wmissing-format-attribute"
5425
  cat >conftest.$ac_ext <<_ACEOF
5426
/* confdefs.h.  */
5427
_ACEOF
5428
cat confdefs.h >>conftest.$ac_ext
5429
cat >>conftest.$ac_ext <<_ACEOF
5430
/* end confdefs.h.  */
5431
 
5432
int
5433
main ()
5434
{
5435
 return 0;
5436
  ;
5437
  return 0;
5438
}
5439
_ACEOF
5440
rm -f conftest.$ac_objext conftest$ac_exeext
5441
if { (ac_try="$ac_link"
5442
case "(($ac_try" in
5443
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5444
  *) ac_try_echo=$ac_try;;
5445
esac
216 andreas 5446
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5447
$as_echo "$ac_try_echo") >&5
88 andreas 5448
  (eval "$ac_link") 2>conftest.er1
5449
  ac_status=$?
5450
  grep -v '^ *+' conftest.er1 >conftest.err
5451
  rm -f conftest.er1
5452
  cat conftest.err >&5
216 andreas 5453
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 5454
  (exit $ac_status); } && {
5455
	 test -z "$ac_cxx_werror_flag" ||
5456
	 test ! -s conftest.err
216 andreas 5457
       } && test -s conftest$ac_exeext && {
5458
	 test "$cross_compiling" = yes ||
5459
	 $as_test_x conftest$ac_exeext
5460
       }; then
88 andreas 5461
  eval "kde_cv_prog_cxx_$kde_cache=yes"
5462
else
216 andreas 5463
  $as_echo "$as_me: failed program was:" >&5
88 andreas 5464
sed 's/^/| /' conftest.$ac_ext >&5
5465
 
5466
 
5467
fi
5468
 
216 andreas 5469
rm -rf conftest.dSYM
88 andreas 5470
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5471
      conftest$ac_exeext conftest.$ac_ext
5472
  CXXFLAGS="$save_CXXFLAGS"
5473
  ac_ext=c
5474
ac_cpp='$CPP $CPPFLAGS'
5475
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5476
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5477
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5478
 
5479
 
5480
fi
5481
 
5482
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
216 andreas 5483
 { $as_echo "$as_me:$LINENO: result: yes" >&5
5484
$as_echo "yes" >&6; }
88 andreas 5485
 :
5486
 CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"
5487
else
216 andreas 5488
 { $as_echo "$as_me:$LINENO: result: no" >&5
5489
$as_echo "no" >&6; }
88 andreas 5490
 :
5491
 
5492
fi
5493
 
5494
 
216 andreas 5495
{ $as_echo "$as_me:$LINENO: checking whether $CC supports -Wmissing-format-attribute" >&5
5496
$as_echo_n "checking whether $CC supports -Wmissing-format-attribute... " >&6; }
88 andreas 5497
kde_cache=`echo Wmissing-format-attribute | sed 'y% .=/+-,%____p__%'`
5498
if { as_var=kde_cv_prog_cc_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
216 andreas 5499
  $as_echo_n "(cached) " >&6
88 andreas 5500
else
5501
 
5502
 
5503
  ac_ext=c
5504
ac_cpp='$CPP $CPPFLAGS'
5505
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5506
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5507
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5508
 
5509
  save_CFLAGS="$CFLAGS"
5510
  CFLAGS="$CFLAGS -Wmissing-format-attribute"
5511
  cat >conftest.$ac_ext <<_ACEOF
5512
/* confdefs.h.  */
5513
_ACEOF
5514
cat confdefs.h >>conftest.$ac_ext
5515
cat >>conftest.$ac_ext <<_ACEOF
5516
/* end confdefs.h.  */
5517
 
5518
int
5519
main ()
5520
{
5521
 return 0;
5522
  ;
5523
  return 0;
5524
}
5525
_ACEOF
5526
rm -f conftest.$ac_objext conftest$ac_exeext
5527
if { (ac_try="$ac_link"
5528
case "(($ac_try" in
5529
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5530
  *) ac_try_echo=$ac_try;;
5531
esac
216 andreas 5532
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5533
$as_echo "$ac_try_echo") >&5
88 andreas 5534
  (eval "$ac_link") 2>conftest.er1
5535
  ac_status=$?
5536
  grep -v '^ *+' conftest.er1 >conftest.err
5537
  rm -f conftest.er1
5538
  cat conftest.err >&5
216 andreas 5539
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 5540
  (exit $ac_status); } && {
5541
	 test -z "$ac_c_werror_flag" ||
5542
	 test ! -s conftest.err
216 andreas 5543
       } && test -s conftest$ac_exeext && {
5544
	 test "$cross_compiling" = yes ||
5545
	 $as_test_x conftest$ac_exeext
5546
       }; then
88 andreas 5547
  eval "kde_cv_prog_cc_$kde_cache=yes"
5548
else
216 andreas 5549
  $as_echo "$as_me: failed program was:" >&5
88 andreas 5550
sed 's/^/| /' conftest.$ac_ext >&5
5551
 
5552
 
5553
fi
5554
 
216 andreas 5555
rm -rf conftest.dSYM
88 andreas 5556
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5557
      conftest$ac_exeext conftest.$ac_ext
5558
  CFLAGS="$save_CFLAGS"
5559
  ac_ext=c
5560
ac_cpp='$CPP $CPPFLAGS'
5561
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5562
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5563
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5564
 
5565
 
5566
fi
5567
 
5568
if eval "test \"`echo '$kde_cv_prog_cc_'$kde_cache`\" = yes"; then
216 andreas 5569
 { $as_echo "$as_me:$LINENO: result: yes" >&5
5570
$as_echo "yes" >&6; }
88 andreas 5571
 :
5572
 CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"
5573
else
216 andreas 5574
 { $as_echo "$as_me:$LINENO: result: no" >&5
5575
$as_echo "no" >&6; }
88 andreas 5576
 :
5577
 
5578
fi
5579
 
5580
          ;;
5581
        esac
5582
 
216 andreas 5583
{ $as_echo "$as_me:$LINENO: checking whether $CXX supports -Wundef" >&5
5584
$as_echo_n "checking whether $CXX supports -Wundef... " >&6; }
88 andreas 5585
kde_cache=`echo Wundef | sed 'y% .=/+-,%____p__%'`
5586
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
216 andreas 5587
  $as_echo_n "(cached) " >&6
88 andreas 5588
else
5589
 
5590
 
5591
   ac_ext=cpp
5592
ac_cpp='$CXXCPP $CPPFLAGS'
5593
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5594
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5595
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5596
 
5597
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5598
 
5599
 
5600
  save_CXXFLAGS="$CXXFLAGS"
5601
  CXXFLAGS="$CXXFLAGS -Wundef"
5602
  cat >conftest.$ac_ext <<_ACEOF
5603
/* confdefs.h.  */
5604
_ACEOF
5605
cat confdefs.h >>conftest.$ac_ext
5606
cat >>conftest.$ac_ext <<_ACEOF
5607
/* end confdefs.h.  */
5608
 
5609
int
5610
main ()
5611
{
5612
 return 0;
5613
  ;
5614
  return 0;
5615
}
5616
_ACEOF
5617
rm -f conftest.$ac_objext conftest$ac_exeext
5618
if { (ac_try="$ac_link"
5619
case "(($ac_try" in
5620
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5621
  *) ac_try_echo=$ac_try;;
5622
esac
216 andreas 5623
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5624
$as_echo "$ac_try_echo") >&5
88 andreas 5625
  (eval "$ac_link") 2>conftest.er1
5626
  ac_status=$?
5627
  grep -v '^ *+' conftest.er1 >conftest.err
5628
  rm -f conftest.er1
5629
  cat conftest.err >&5
216 andreas 5630
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 5631
  (exit $ac_status); } && {
5632
	 test -z "$ac_cxx_werror_flag" ||
5633
	 test ! -s conftest.err
216 andreas 5634
       } && test -s conftest$ac_exeext && {
5635
	 test "$cross_compiling" = yes ||
5636
	 $as_test_x conftest$ac_exeext
5637
       }; then
88 andreas 5638
  eval "kde_cv_prog_cxx_$kde_cache=yes"
5639
else
216 andreas 5640
  $as_echo "$as_me: failed program was:" >&5
88 andreas 5641
sed 's/^/| /' conftest.$ac_ext >&5
5642
 
5643
 
5644
fi
5645
 
216 andreas 5646
rm -rf conftest.dSYM
88 andreas 5647
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5648
      conftest$ac_exeext conftest.$ac_ext
5649
  CXXFLAGS="$save_CXXFLAGS"
5650
  ac_ext=c
5651
ac_cpp='$CPP $CPPFLAGS'
5652
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5653
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5654
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5655
 
5656
 
5657
fi
5658
 
5659
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
216 andreas 5660
 { $as_echo "$as_me:$LINENO: result: yes" >&5
5661
$as_echo "yes" >&6; }
88 andreas 5662
 :
5663
 CXXFLAGS="-Wundef $CXXFLAGS"
5664
else
216 andreas 5665
 { $as_echo "$as_me:$LINENO: result: no" >&5
5666
$as_echo "no" >&6; }
88 andreas 5667
 :
5668
 
5669
fi
5670
 
5671
 
216 andreas 5672
{ $as_echo "$as_me:$LINENO: checking whether $CXX supports -Wno-long-long" >&5
5673
$as_echo_n "checking whether $CXX supports -Wno-long-long... " >&6; }
88 andreas 5674
kde_cache=`echo Wno-long-long | sed 'y% .=/+-,%____p__%'`
5675
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
216 andreas 5676
  $as_echo_n "(cached) " >&6
88 andreas 5677
else
5678
 
5679
 
5680
   ac_ext=cpp
5681
ac_cpp='$CXXCPP $CPPFLAGS'
5682
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5683
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5684
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5685
 
5686
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5687
 
5688
 
5689
  save_CXXFLAGS="$CXXFLAGS"
5690
  CXXFLAGS="$CXXFLAGS -Wno-long-long"
5691
  cat >conftest.$ac_ext <<_ACEOF
5692
/* confdefs.h.  */
5693
_ACEOF
5694
cat confdefs.h >>conftest.$ac_ext
5695
cat >>conftest.$ac_ext <<_ACEOF
5696
/* end confdefs.h.  */
5697
 
5698
int
5699
main ()
5700
{
5701
 return 0;
5702
  ;
5703
  return 0;
5704
}
5705
_ACEOF
5706
rm -f conftest.$ac_objext conftest$ac_exeext
5707
if { (ac_try="$ac_link"
5708
case "(($ac_try" in
5709
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5710
  *) ac_try_echo=$ac_try;;
5711
esac
216 andreas 5712
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5713
$as_echo "$ac_try_echo") >&5
88 andreas 5714
  (eval "$ac_link") 2>conftest.er1
5715
  ac_status=$?
5716
  grep -v '^ *+' conftest.er1 >conftest.err
5717
  rm -f conftest.er1
5718
  cat conftest.err >&5
216 andreas 5719
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 5720
  (exit $ac_status); } && {
5721
	 test -z "$ac_cxx_werror_flag" ||
5722
	 test ! -s conftest.err
216 andreas 5723
       } && test -s conftest$ac_exeext && {
5724
	 test "$cross_compiling" = yes ||
5725
	 $as_test_x conftest$ac_exeext
5726
       }; then
88 andreas 5727
  eval "kde_cv_prog_cxx_$kde_cache=yes"
5728
else
216 andreas 5729
  $as_echo "$as_me: failed program was:" >&5
88 andreas 5730
sed 's/^/| /' conftest.$ac_ext >&5
5731
 
5732
 
5733
fi
5734
 
216 andreas 5735
rm -rf conftest.dSYM
88 andreas 5736
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5737
      conftest$ac_exeext conftest.$ac_ext
5738
  CXXFLAGS="$save_CXXFLAGS"
5739
  ac_ext=c
5740
ac_cpp='$CPP $CPPFLAGS'
5741
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5742
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5743
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5744
 
5745
 
5746
fi
5747
 
5748
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
216 andreas 5749
 { $as_echo "$as_me:$LINENO: result: yes" >&5
5750
$as_echo "yes" >&6; }
88 andreas 5751
 :
5752
 CXXFLAGS="-Wno-long-long $CXXFLAGS"
5753
else
216 andreas 5754
 { $as_echo "$as_me:$LINENO: result: no" >&5
5755
$as_echo "no" >&6; }
88 andreas 5756
 :
5757
 
5758
fi
5759
 
5760
 
216 andreas 5761
{ $as_echo "$as_me:$LINENO: checking whether $CXX supports -Wno-non-virtual-dtor" >&5
5762
$as_echo_n "checking whether $CXX supports -Wno-non-virtual-dtor... " >&6; }
88 andreas 5763
kde_cache=`echo Wno-non-virtual-dtor | sed 'y% .=/+-,%____p__%'`
5764
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
216 andreas 5765
  $as_echo_n "(cached) " >&6
88 andreas 5766
else
5767
 
5768
 
5769
   ac_ext=cpp
5770
ac_cpp='$CXXCPP $CPPFLAGS'
5771
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5772
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5773
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5774
 
5775
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5776
 
5777
 
5778
  save_CXXFLAGS="$CXXFLAGS"
5779
  CXXFLAGS="$CXXFLAGS -Wno-non-virtual-dtor"
5780
  cat >conftest.$ac_ext <<_ACEOF
5781
/* confdefs.h.  */
5782
_ACEOF
5783
cat confdefs.h >>conftest.$ac_ext
5784
cat >>conftest.$ac_ext <<_ACEOF
5785
/* end confdefs.h.  */
5786
 
5787
int
5788
main ()
5789
{
5790
 return 0;
5791
  ;
5792
  return 0;
5793
}
5794
_ACEOF
5795
rm -f conftest.$ac_objext conftest$ac_exeext
5796
if { (ac_try="$ac_link"
5797
case "(($ac_try" in
5798
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5799
  *) ac_try_echo=$ac_try;;
5800
esac
216 andreas 5801
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5802
$as_echo "$ac_try_echo") >&5
88 andreas 5803
  (eval "$ac_link") 2>conftest.er1
5804
  ac_status=$?
5805
  grep -v '^ *+' conftest.er1 >conftest.err
5806
  rm -f conftest.er1
5807
  cat conftest.err >&5
216 andreas 5808
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 5809
  (exit $ac_status); } && {
5810
	 test -z "$ac_cxx_werror_flag" ||
5811
	 test ! -s conftest.err
216 andreas 5812
       } && test -s conftest$ac_exeext && {
5813
	 test "$cross_compiling" = yes ||
5814
	 $as_test_x conftest$ac_exeext
5815
       }; then
88 andreas 5816
  eval "kde_cv_prog_cxx_$kde_cache=yes"
5817
else
216 andreas 5818
  $as_echo "$as_me: failed program was:" >&5
88 andreas 5819
sed 's/^/| /' conftest.$ac_ext >&5
5820
 
5821
 
5822
fi
5823
 
216 andreas 5824
rm -rf conftest.dSYM
88 andreas 5825
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5826
      conftest$ac_exeext conftest.$ac_ext
5827
  CXXFLAGS="$save_CXXFLAGS"
5828
  ac_ext=c
5829
ac_cpp='$CPP $CPPFLAGS'
5830
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5831
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5832
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5833
 
5834
 
5835
fi
5836
 
5837
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
216 andreas 5838
 { $as_echo "$as_me:$LINENO: result: yes" >&5
5839
$as_echo "yes" >&6; }
88 andreas 5840
 :
5841
 CXXFLAGS="$CXXFLAGS -Wno-non-virtual-dtor"
5842
else
216 andreas 5843
 { $as_echo "$as_me:$LINENO: result: no" >&5
5844
$as_echo "no" >&6; }
88 andreas 5845
 :
5846
 
5847
fi
5848
 
5849
     fi
5850
  fi
5851
 
5852
  if test "$GXX" = "yes" && test "$kde_use_strict_options" = "yes"; then
5853
    CXXFLAGS="-Wcast-qual -Wshadow -Wcast-align $CXXFLAGS"
5854
  fi
5855
 
5856
  # Check whether --enable-pch was given.
5857
if test "${enable_pch+set}" = set; then
5858
  enableval=$enable_pch;  kde_use_pch=$enableval
5859
else
5860
   kde_use_pch=no
5861
fi
5862
 
5863
 
5864
  HAVE_GCC_VISIBILITY=0
5865
 
5866
 
5867
  if test "$GXX" = "yes"; then
5868
    gcc_no_reorder_blocks=NO
5869
 
216 andreas 5870
{ $as_echo "$as_me:$LINENO: checking whether $CXX supports -fno-reorder-blocks" >&5
5871
$as_echo_n "checking whether $CXX supports -fno-reorder-blocks... " >&6; }
88 andreas 5872
kde_cache=`echo fno-reorder-blocks | sed 'y% .=/+-,%____p__%'`
5873
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
216 andreas 5874
  $as_echo_n "(cached) " >&6
88 andreas 5875
else
5876
 
5877
 
5878
   ac_ext=cpp
5879
ac_cpp='$CXXCPP $CPPFLAGS'
5880
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5881
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5882
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5883
 
5884
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5885
 
5886
 
5887
  save_CXXFLAGS="$CXXFLAGS"
5888
  CXXFLAGS="$CXXFLAGS -fno-reorder-blocks"
5889
  cat >conftest.$ac_ext <<_ACEOF
5890
/* confdefs.h.  */
5891
_ACEOF
5892
cat confdefs.h >>conftest.$ac_ext
5893
cat >>conftest.$ac_ext <<_ACEOF
5894
/* end confdefs.h.  */
5895
 
5896
int
5897
main ()
5898
{
5899
 return 0;
5900
  ;
5901
  return 0;
5902
}
5903
_ACEOF
5904
rm -f conftest.$ac_objext conftest$ac_exeext
5905
if { (ac_try="$ac_link"
5906
case "(($ac_try" in
5907
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5908
  *) ac_try_echo=$ac_try;;
5909
esac
216 andreas 5910
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5911
$as_echo "$ac_try_echo") >&5
88 andreas 5912
  (eval "$ac_link") 2>conftest.er1
5913
  ac_status=$?
5914
  grep -v '^ *+' conftest.er1 >conftest.err
5915
  rm -f conftest.er1
5916
  cat conftest.err >&5
216 andreas 5917
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 5918
  (exit $ac_status); } && {
5919
	 test -z "$ac_cxx_werror_flag" ||
5920
	 test ! -s conftest.err
216 andreas 5921
       } && test -s conftest$ac_exeext && {
5922
	 test "$cross_compiling" = yes ||
5923
	 $as_test_x conftest$ac_exeext
5924
       }; then
88 andreas 5925
  eval "kde_cv_prog_cxx_$kde_cache=yes"
5926
else
216 andreas 5927
  $as_echo "$as_me: failed program was:" >&5
88 andreas 5928
sed 's/^/| /' conftest.$ac_ext >&5
5929
 
5930
 
5931
fi
5932
 
216 andreas 5933
rm -rf conftest.dSYM
88 andreas 5934
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5935
      conftest$ac_exeext conftest.$ac_ext
5936
  CXXFLAGS="$save_CXXFLAGS"
5937
  ac_ext=c
5938
ac_cpp='$CPP $CPPFLAGS'
5939
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5940
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5941
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5942
 
5943
 
5944
fi
5945
 
5946
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
216 andreas 5947
 { $as_echo "$as_me:$LINENO: result: yes" >&5
5948
$as_echo "yes" >&6; }
88 andreas 5949
 :
5950
 gcc_no_reorder_blocks=YES
5951
else
216 andreas 5952
 { $as_echo "$as_me:$LINENO: result: no" >&5
5953
$as_echo "no" >&6; }
88 andreas 5954
 :
5955
 
5956
fi
5957
 
5958
    if test $kde_use_debug_code != "no" && \
5959
       test $kde_use_debug_code != "full" && \
5960
       test "YES" = "$gcc_no_reorder_blocks" ; then
5961
          CXXFLAGS="$CXXFLAGS -fno-reorder-blocks"
5962
          CFLAGS="$CFLAGS -fno-reorder-blocks"
5963
    fi
5964
 
216 andreas 5965
{ $as_echo "$as_me:$LINENO: checking whether $CXX supports -fno-exceptions" >&5
5966
$as_echo_n "checking whether $CXX supports -fno-exceptions... " >&6; }
88 andreas 5967
kde_cache=`echo fno-exceptions | sed 'y% .=/+-,%____p__%'`
5968
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
216 andreas 5969
  $as_echo_n "(cached) " >&6
88 andreas 5970
else
5971
 
5972
 
5973
   ac_ext=cpp
5974
ac_cpp='$CXXCPP $CPPFLAGS'
5975
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5976
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5977
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5978
 
5979
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5980
 
5981
 
5982
  save_CXXFLAGS="$CXXFLAGS"
5983
  CXXFLAGS="$CXXFLAGS -fno-exceptions"
5984
  cat >conftest.$ac_ext <<_ACEOF
5985
/* confdefs.h.  */
5986
_ACEOF
5987
cat confdefs.h >>conftest.$ac_ext
5988
cat >>conftest.$ac_ext <<_ACEOF
5989
/* end confdefs.h.  */
5990
 
5991
int
5992
main ()
5993
{
5994
 return 0;
5995
  ;
5996
  return 0;
5997
}
5998
_ACEOF
5999
rm -f conftest.$ac_objext conftest$ac_exeext
6000
if { (ac_try="$ac_link"
6001
case "(($ac_try" in
6002
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6003
  *) ac_try_echo=$ac_try;;
6004
esac
216 andreas 6005
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6006
$as_echo "$ac_try_echo") >&5
88 andreas 6007
  (eval "$ac_link") 2>conftest.er1
6008
  ac_status=$?
6009
  grep -v '^ *+' conftest.er1 >conftest.err
6010
  rm -f conftest.er1
6011
  cat conftest.err >&5
216 andreas 6012
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 6013
  (exit $ac_status); } && {
6014
	 test -z "$ac_cxx_werror_flag" ||
6015
	 test ! -s conftest.err
216 andreas 6016
       } && test -s conftest$ac_exeext && {
6017
	 test "$cross_compiling" = yes ||
6018
	 $as_test_x conftest$ac_exeext
6019
       }; then
88 andreas 6020
  eval "kde_cv_prog_cxx_$kde_cache=yes"
6021
else
216 andreas 6022
  $as_echo "$as_me: failed program was:" >&5
88 andreas 6023
sed 's/^/| /' conftest.$ac_ext >&5
6024
 
6025
 
6026
fi
6027
 
216 andreas 6028
rm -rf conftest.dSYM
88 andreas 6029
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6030
      conftest$ac_exeext conftest.$ac_ext
6031
  CXXFLAGS="$save_CXXFLAGS"
6032
  ac_ext=c
6033
ac_cpp='$CPP $CPPFLAGS'
6034
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6035
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6036
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6037
 
6038
 
6039
fi
6040
 
6041
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
216 andreas 6042
 { $as_echo "$as_me:$LINENO: result: yes" >&5
6043
$as_echo "yes" >&6; }
88 andreas 6044
 :
6045
 CXXFLAGS="$CXXFLAGS -fno-exceptions"
6046
else
216 andreas 6047
 { $as_echo "$as_me:$LINENO: result: no" >&5
6048
$as_echo "no" >&6; }
88 andreas 6049
 :
6050
 
6051
fi
6052
 
6053
 
216 andreas 6054
{ $as_echo "$as_me:$LINENO: checking whether $CXX supports -fno-check-new" >&5
6055
$as_echo_n "checking whether $CXX supports -fno-check-new... " >&6; }
88 andreas 6056
kde_cache=`echo fno-check-new | sed 'y% .=/+-,%____p__%'`
6057
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
216 andreas 6058
  $as_echo_n "(cached) " >&6
88 andreas 6059
else
6060
 
6061
 
6062
   ac_ext=cpp
6063
ac_cpp='$CXXCPP $CPPFLAGS'
6064
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6065
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6066
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6067
 
6068
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6069
 
6070
 
6071
  save_CXXFLAGS="$CXXFLAGS"
6072
  CXXFLAGS="$CXXFLAGS -fno-check-new"
6073
  cat >conftest.$ac_ext <<_ACEOF
6074
/* confdefs.h.  */
6075
_ACEOF
6076
cat confdefs.h >>conftest.$ac_ext
6077
cat >>conftest.$ac_ext <<_ACEOF
6078
/* end confdefs.h.  */
6079
 
6080
int
6081
main ()
6082
{
6083
 return 0;
6084
  ;
6085
  return 0;
6086
}
6087
_ACEOF
6088
rm -f conftest.$ac_objext conftest$ac_exeext
6089
if { (ac_try="$ac_link"
6090
case "(($ac_try" in
6091
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6092
  *) ac_try_echo=$ac_try;;
6093
esac
216 andreas 6094
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6095
$as_echo "$ac_try_echo") >&5
88 andreas 6096
  (eval "$ac_link") 2>conftest.er1
6097
  ac_status=$?
6098
  grep -v '^ *+' conftest.er1 >conftest.err
6099
  rm -f conftest.er1
6100
  cat conftest.err >&5
216 andreas 6101
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 6102
  (exit $ac_status); } && {
6103
	 test -z "$ac_cxx_werror_flag" ||
6104
	 test ! -s conftest.err
216 andreas 6105
       } && test -s conftest$ac_exeext && {
6106
	 test "$cross_compiling" = yes ||
6107
	 $as_test_x conftest$ac_exeext
6108
       }; then
88 andreas 6109
  eval "kde_cv_prog_cxx_$kde_cache=yes"
6110
else
216 andreas 6111
  $as_echo "$as_me: failed program was:" >&5
88 andreas 6112
sed 's/^/| /' conftest.$ac_ext >&5
6113
 
6114
 
6115
fi
6116
 
216 andreas 6117
rm -rf conftest.dSYM
88 andreas 6118
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6119
      conftest$ac_exeext conftest.$ac_ext
6120
  CXXFLAGS="$save_CXXFLAGS"
6121
  ac_ext=c
6122
ac_cpp='$CPP $CPPFLAGS'
6123
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6124
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6125
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6126
 
6127
 
6128
fi
6129
 
6130
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
216 andreas 6131
 { $as_echo "$as_me:$LINENO: result: yes" >&5
6132
$as_echo "yes" >&6; }
88 andreas 6133
 :
6134
 CXXFLAGS="$CXXFLAGS -fno-check-new"
6135
else
216 andreas 6136
 { $as_echo "$as_me:$LINENO: result: no" >&5
6137
$as_echo "no" >&6; }
88 andreas 6138
 :
6139
 
6140
fi
6141
 
6142
 
216 andreas 6143
{ $as_echo "$as_me:$LINENO: checking whether $CXX supports -fno-common" >&5
6144
$as_echo_n "checking whether $CXX supports -fno-common... " >&6; }
88 andreas 6145
kde_cache=`echo fno-common | sed 'y% .=/+-,%____p__%'`
6146
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
216 andreas 6147
  $as_echo_n "(cached) " >&6
88 andreas 6148
else
6149
 
6150
 
6151
   ac_ext=cpp
6152
ac_cpp='$CXXCPP $CPPFLAGS'
6153
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6154
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6155
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6156
 
6157
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6158
 
6159
 
6160
  save_CXXFLAGS="$CXXFLAGS"
6161
  CXXFLAGS="$CXXFLAGS -fno-common"
6162
  cat >conftest.$ac_ext <<_ACEOF
6163
/* confdefs.h.  */
6164
_ACEOF
6165
cat confdefs.h >>conftest.$ac_ext
6166
cat >>conftest.$ac_ext <<_ACEOF
6167
/* end confdefs.h.  */
6168
 
6169
int
6170
main ()
6171
{
6172
 return 0;
6173
  ;
6174
  return 0;
6175
}
6176
_ACEOF
6177
rm -f conftest.$ac_objext conftest$ac_exeext
6178
if { (ac_try="$ac_link"
6179
case "(($ac_try" in
6180
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6181
  *) ac_try_echo=$ac_try;;
6182
esac
216 andreas 6183
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6184
$as_echo "$ac_try_echo") >&5
88 andreas 6185
  (eval "$ac_link") 2>conftest.er1
6186
  ac_status=$?
6187
  grep -v '^ *+' conftest.er1 >conftest.err
6188
  rm -f conftest.er1
6189
  cat conftest.err >&5
216 andreas 6190
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 6191
  (exit $ac_status); } && {
6192
	 test -z "$ac_cxx_werror_flag" ||
6193
	 test ! -s conftest.err
216 andreas 6194
       } && test -s conftest$ac_exeext && {
6195
	 test "$cross_compiling" = yes ||
6196
	 $as_test_x conftest$ac_exeext
6197
       }; then
88 andreas 6198
  eval "kde_cv_prog_cxx_$kde_cache=yes"
6199
else
216 andreas 6200
  $as_echo "$as_me: failed program was:" >&5
88 andreas 6201
sed 's/^/| /' conftest.$ac_ext >&5
6202
 
6203
 
6204
fi
6205
 
216 andreas 6206
rm -rf conftest.dSYM
88 andreas 6207
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6208
      conftest$ac_exeext conftest.$ac_ext
6209
  CXXFLAGS="$save_CXXFLAGS"
6210
  ac_ext=c
6211
ac_cpp='$CPP $CPPFLAGS'
6212
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6213
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6214
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6215
 
6216
 
6217
fi
6218
 
6219
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
216 andreas 6220
 { $as_echo "$as_me:$LINENO: result: yes" >&5
6221
$as_echo "yes" >&6; }
88 andreas 6222
 :
6223
 CXXFLAGS="$CXXFLAGS -fno-common"
6224
else
216 andreas 6225
 { $as_echo "$as_me:$LINENO: result: no" >&5
6226
$as_echo "no" >&6; }
88 andreas 6227
 :
6228
 
6229
fi
6230
 
6231
 
216 andreas 6232
{ $as_echo "$as_me:$LINENO: checking whether $CXX supports -fexceptions" >&5
6233
$as_echo_n "checking whether $CXX supports -fexceptions... " >&6; }
88 andreas 6234
kde_cache=`echo fexceptions | sed 'y% .=/+-,%____p__%'`
6235
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
216 andreas 6236
  $as_echo_n "(cached) " >&6
88 andreas 6237
else
6238
 
6239
 
6240
   ac_ext=cpp
6241
ac_cpp='$CXXCPP $CPPFLAGS'
6242
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6243
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6244
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6245
 
6246
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6247
 
6248
 
6249
  save_CXXFLAGS="$CXXFLAGS"
6250
  CXXFLAGS="$CXXFLAGS -fexceptions"
6251
  cat >conftest.$ac_ext <<_ACEOF
6252
/* confdefs.h.  */
6253
_ACEOF
6254
cat confdefs.h >>conftest.$ac_ext
6255
cat >>conftest.$ac_ext <<_ACEOF
6256
/* end confdefs.h.  */
6257
 
6258
int
6259
main ()
6260
{
6261
 return 0;
6262
  ;
6263
  return 0;
6264
}
6265
_ACEOF
6266
rm -f conftest.$ac_objext conftest$ac_exeext
6267
if { (ac_try="$ac_link"
6268
case "(($ac_try" in
6269
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6270
  *) ac_try_echo=$ac_try;;
6271
esac
216 andreas 6272
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6273
$as_echo "$ac_try_echo") >&5
88 andreas 6274
  (eval "$ac_link") 2>conftest.er1
6275
  ac_status=$?
6276
  grep -v '^ *+' conftest.er1 >conftest.err
6277
  rm -f conftest.er1
6278
  cat conftest.err >&5
216 andreas 6279
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 6280
  (exit $ac_status); } && {
6281
	 test -z "$ac_cxx_werror_flag" ||
6282
	 test ! -s conftest.err
216 andreas 6283
       } && test -s conftest$ac_exeext && {
6284
	 test "$cross_compiling" = yes ||
6285
	 $as_test_x conftest$ac_exeext
6286
       }; then
88 andreas 6287
  eval "kde_cv_prog_cxx_$kde_cache=yes"
6288
else
216 andreas 6289
  $as_echo "$as_me: failed program was:" >&5
88 andreas 6290
sed 's/^/| /' conftest.$ac_ext >&5
6291
 
6292
 
6293
fi
6294
 
216 andreas 6295
rm -rf conftest.dSYM
88 andreas 6296
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6297
      conftest$ac_exeext conftest.$ac_ext
6298
  CXXFLAGS="$save_CXXFLAGS"
6299
  ac_ext=c
6300
ac_cpp='$CPP $CPPFLAGS'
6301
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6302
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6303
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6304
 
6305
 
6306
fi
6307
 
6308
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
216 andreas 6309
 { $as_echo "$as_me:$LINENO: result: yes" >&5
6310
$as_echo "yes" >&6; }
88 andreas 6311
 :
6312
 USE_EXCEPTIONS="-fexceptions"
6313
else
216 andreas 6314
 { $as_echo "$as_me:$LINENO: result: no" >&5
6315
$as_echo "no" >&6; }
88 andreas 6316
 :
6317
 USE_EXCEPTIONS=
6318
fi
6319
 
6320
    ENABLE_PERMISSIVE_FLAG="-fpermissive"
6321
 
6322
    if test "$kde_use_pch" = "yes"; then
216 andreas 6323
        { $as_echo "$as_me:$LINENO: checking whether gcc supports precompiling c header files" >&5
6324
$as_echo_n "checking whether gcc supports precompiling c header files... " >&6; }
88 andreas 6325
        echo >conftest.h
6326
        if $CC -x c-header conftest.h >/dev/null 2>/dev/null; then
6327
            kde_gcc_supports_pch=yes
216 andreas 6328
            { $as_echo "$as_me:$LINENO: result: yes" >&5
6329
$as_echo "yes" >&6; }
88 andreas 6330
        else
6331
            kde_gcc_supports_pch=no
216 andreas 6332
            { $as_echo "$as_me:$LINENO: result: no" >&5
6333
$as_echo "no" >&6; }
88 andreas 6334
        fi
6335
        if test "$kde_gcc_supports_pch" = "yes"; then
216 andreas 6336
            { $as_echo "$as_me:$LINENO: checking whether gcc supports precompiling c++ header files" >&5
6337
$as_echo_n "checking whether gcc supports precompiling c++ header files... " >&6; }
88 andreas 6338
            if $CXX -x c++-header conftest.h >/dev/null 2>/dev/null; then
6339
                kde_gcc_supports_pch=yes
216 andreas 6340
                { $as_echo "$as_me:$LINENO: result: yes" >&5
6341
$as_echo "yes" >&6; }
88 andreas 6342
            else
6343
                kde_gcc_supports_pch=no
216 andreas 6344
                { $as_echo "$as_me:$LINENO: result: no" >&5
6345
$as_echo "no" >&6; }
88 andreas 6346
            fi
6347
        fi
6348
        rm -f conftest.h conftest.h.gch
6349
    fi
6350
 
6351
 
216 andreas 6352
  { $as_echo "$as_me:$LINENO: checking whether system headers can cope with -O2 -fno-inline" >&5
6353
$as_echo_n "checking whether system headers can cope with -O2 -fno-inline... " >&6; }
88 andreas 6354
if test "${kde_cv_opt_noinline_match+set}" = set; then
216 andreas 6355
  $as_echo_n "(cached) " >&6
88 andreas 6356
else
6357
 
6358
  kde_cv_opt_noinline_match=irrelevant
6359
    if echo "$CFLAGS" | grep -e -O2 >/dev/null 2>/dev/null \
6360
     && echo "$CFLAGS" | grep -e -fno-inline >/dev/null 2>/dev/null ; then
6361
 
6362
    ac_cflags_save="$CFLAGS"
6363
    CFLAGS="$CFLAGS -D_USE_GNU"
6364
 
6365
    cat >conftest.$ac_ext <<_ACEOF
6366
/* confdefs.h.  */
6367
_ACEOF
6368
cat confdefs.h >>conftest.$ac_ext
6369
cat >>conftest.$ac_ext <<_ACEOF
6370
/* end confdefs.h.  */
6371
 
6372
  #include <string.h>
6373
 
6374
int
6375
main ()
6376
{
6377
  const char *pt, *et;
6378
  et = __extension__      ({ char __a0, __a1, __a2;       (__builtin_constant_p (  ";,"  ) && ((size_t)(const void *)((   ";,"   )+ 1) - (size_t)(const void *)(   ";,"   ) == 1)        ? ((__a0 =((__const char  *) (  ";,"  ))[0], __a0 == '\0')     ? ((void) (  pt ),((void *)0) )        : ((__a1 = ((__const char *) (  ";,"  ))[1], __a1== '\0')      ? (__extension__ (__builtin_constant_p (  __a0 ) && ( __a0 ) == '\0'   ? (char *) __rawmemchr (   pt  ,   __a0)       : strchr(   pt  ,   __a0 )))   : ((__a2 = ((__const char *) (  ";,"  ))[2], __a2 == '\0')      ? __strpbrk_c2 (  pt , __a0, __a1)      :(((__const char *) (  ";,"  ))[3] == '\0'     ? __strpbrk_c3 (  pt ,__a0, __a1, __a2): strpbrk (  pt ,   ";,"  ))))) : strpbrk (  pt ,  ";,"  )); }) ;
6379
 
6380
  ;
6381
  return 0;
6382
}
6383
_ACEOF
6384
rm -f conftest.$ac_objext conftest$ac_exeext
6385
if { (ac_try="$ac_link"
6386
case "(($ac_try" in
6387
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6388
  *) ac_try_echo=$ac_try;;
6389
esac
216 andreas 6390
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6391
$as_echo "$ac_try_echo") >&5
88 andreas 6392
  (eval "$ac_link") 2>conftest.er1
6393
  ac_status=$?
6394
  grep -v '^ *+' conftest.er1 >conftest.err
6395
  rm -f conftest.er1
6396
  cat conftest.err >&5
216 andreas 6397
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 6398
  (exit $ac_status); } && {
6399
	 test -z "$ac_c_werror_flag" ||
6400
	 test ! -s conftest.err
216 andreas 6401
       } && test -s conftest$ac_exeext && {
6402
	 test "$cross_compiling" = yes ||
6403
	 $as_test_x conftest$ac_exeext
6404
       }; then
88 andreas 6405
  kde_cv_opt_noinline_match=yes
6406
else
216 andreas 6407
  $as_echo "$as_me: failed program was:" >&5
88 andreas 6408
sed 's/^/| /' conftest.$ac_ext >&5
6409
 
6410
	kde_cv_opt_noinline_match=no
6411
 
6412
fi
6413
 
216 andreas 6414
rm -rf conftest.dSYM
88 andreas 6415
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6416
      conftest$ac_exeext conftest.$ac_ext
6417
 
6418
    CFLAGS="$ac_cflags_save"
6419
  fi
6420
 
6421
fi
216 andreas 6422
{ $as_echo "$as_me:$LINENO: result: $kde_cv_opt_noinline_match" >&5
6423
$as_echo "$kde_cv_opt_noinline_match" >&6; }
88 andreas 6424
 
6425
    if test "x$kde_cv_opt_noinline_match" = "xno" ; then
6426
       CFLAGS="`echo "$CFLAGS" | sed "s/ -fno-inline//"`"
6427
    fi
6428
  fi
91 andreas 6429
 
6430
 
6431
if test "$kde_use_pch" = "yes" && test "$kde_gcc_supports_pch" = "yes"; then
88 andreas 6432
  unsermake_enable_pch_TRUE=
6433
  unsermake_enable_pch_FALSE='#'
6434
else
6435
  unsermake_enable_pch_TRUE='#'
6436
  unsermake_enable_pch_FALSE=
6437
fi
6438
 
6439
  if test "$CXX" = "KCC"; then
6440
 
6441
    if test "$kde_use_pch" = "yes"; then
6442
 
216 andreas 6443
{ $as_echo "$as_me:$LINENO: checking whether $CXX supports --pch" >&5
6444
$as_echo_n "checking whether $CXX supports --pch... " >&6; }
88 andreas 6445
kde_cache=`echo -pch | sed 'y% .=/+-,%____p__%'`
6446
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
216 andreas 6447
  $as_echo_n "(cached) " >&6
88 andreas 6448
else
6449
 
6450
 
6451
   ac_ext=cpp
6452
ac_cpp='$CXXCPP $CPPFLAGS'
6453
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6454
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6455
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6456
 
6457
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6458
 
6459
 
6460
  save_CXXFLAGS="$CXXFLAGS"
6461
  CXXFLAGS="$CXXFLAGS --pch"
6462
  cat >conftest.$ac_ext <<_ACEOF
6463
/* confdefs.h.  */
6464
_ACEOF
6465
cat confdefs.h >>conftest.$ac_ext
6466
cat >>conftest.$ac_ext <<_ACEOF
6467
/* end confdefs.h.  */
6468
 
6469
int
6470
main ()
6471
{
6472
 return 0;
6473
  ;
6474
  return 0;
6475
}
6476
_ACEOF
6477
rm -f conftest.$ac_objext conftest$ac_exeext
6478
if { (ac_try="$ac_link"
6479
case "(($ac_try" in
6480
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6481
  *) ac_try_echo=$ac_try;;
6482
esac
216 andreas 6483
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6484
$as_echo "$ac_try_echo") >&5
88 andreas 6485
  (eval "$ac_link") 2>conftest.er1
6486
  ac_status=$?
6487
  grep -v '^ *+' conftest.er1 >conftest.err
6488
  rm -f conftest.er1
6489
  cat conftest.err >&5
216 andreas 6490
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 6491
  (exit $ac_status); } && {
6492
	 test -z "$ac_cxx_werror_flag" ||
6493
	 test ! -s conftest.err
216 andreas 6494
       } && test -s conftest$ac_exeext && {
6495
	 test "$cross_compiling" = yes ||
6496
	 $as_test_x conftest$ac_exeext
6497
       }; then
88 andreas 6498
  eval "kde_cv_prog_cxx_$kde_cache=yes"
6499
else
216 andreas 6500
  $as_echo "$as_me: failed program was:" >&5
88 andreas 6501
sed 's/^/| /' conftest.$ac_ext >&5
6502
 
6503
 
6504
fi
6505
 
216 andreas 6506
rm -rf conftest.dSYM
88 andreas 6507
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6508
      conftest$ac_exeext conftest.$ac_ext
6509
  CXXFLAGS="$save_CXXFLAGS"
6510
  ac_ext=c
6511
ac_cpp='$CPP $CPPFLAGS'
6512
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6513
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6514
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6515
 
6516
 
6517
fi
6518
 
6519
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
216 andreas 6520
 { $as_echo "$as_me:$LINENO: result: yes" >&5
6521
$as_echo "yes" >&6; }
88 andreas 6522
 :
6523
 CXXFLAGS="$CXXFLAGS --pch"
6524
else
216 andreas 6525
 { $as_echo "$as_me:$LINENO: result: no" >&5
6526
$as_echo "no" >&6; }
88 andreas 6527
 :
6528
 
6529
fi
6530
 
6531
                                              fi
6532
 
216 andreas 6533
{ $as_echo "$as_me:$LINENO: checking whether $CXX supports --inline_keyword_space_time=6" >&5
6534
$as_echo_n "checking whether $CXX supports --inline_keyword_space_time=6... " >&6; }
88 andreas 6535
kde_cache=`echo -inline_keyword_space_time=6 | sed 'y% .=/+-,%____p__%'`
6536
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
216 andreas 6537
  $as_echo_n "(cached) " >&6
88 andreas 6538
else
6539
 
6540
 
6541
   ac_ext=cpp
6542
ac_cpp='$CXXCPP $CPPFLAGS'
6543
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6544
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6545
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6546
 
6547
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6548
 
6549
 
6550
  save_CXXFLAGS="$CXXFLAGS"
6551
  CXXFLAGS="$CXXFLAGS --inline_keyword_space_time=6"
6552
  cat >conftest.$ac_ext <<_ACEOF
6553
/* confdefs.h.  */
6554
_ACEOF
6555
cat confdefs.h >>conftest.$ac_ext
6556
cat >>conftest.$ac_ext <<_ACEOF
6557
/* end confdefs.h.  */
6558
 
6559
int
6560
main ()
6561
{
6562
 return 0;
6563
  ;
6564
  return 0;
6565
}
6566
_ACEOF
6567
rm -f conftest.$ac_objext conftest$ac_exeext
6568
if { (ac_try="$ac_link"
6569
case "(($ac_try" in
6570
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6571
  *) ac_try_echo=$ac_try;;
6572
esac
216 andreas 6573
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6574
$as_echo "$ac_try_echo") >&5
88 andreas 6575
  (eval "$ac_link") 2>conftest.er1
6576
  ac_status=$?
6577
  grep -v '^ *+' conftest.er1 >conftest.err
6578
  rm -f conftest.er1
6579
  cat conftest.err >&5
216 andreas 6580
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 6581
  (exit $ac_status); } && {
6582
	 test -z "$ac_cxx_werror_flag" ||
6583
	 test ! -s conftest.err
216 andreas 6584
       } && test -s conftest$ac_exeext && {
6585
	 test "$cross_compiling" = yes ||
6586
	 $as_test_x conftest$ac_exeext
6587
       }; then
88 andreas 6588
  eval "kde_cv_prog_cxx_$kde_cache=yes"
6589
else
216 andreas 6590
  $as_echo "$as_me: failed program was:" >&5
88 andreas 6591
sed 's/^/| /' conftest.$ac_ext >&5
6592
 
6593
 
6594
fi
6595
 
216 andreas 6596
rm -rf conftest.dSYM
88 andreas 6597
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6598
      conftest$ac_exeext conftest.$ac_ext
6599
  CXXFLAGS="$save_CXXFLAGS"
6600
  ac_ext=c
6601
ac_cpp='$CPP $CPPFLAGS'
6602
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6603
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6604
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6605
 
6606
 
6607
fi
6608
 
6609
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
216 andreas 6610
 { $as_echo "$as_me:$LINENO: result: yes" >&5
6611
$as_echo "yes" >&6; }
88 andreas 6612
 :
6613
 CXXFLAGS="$CXXFLAGS --inline_keyword_space_time=6"
6614
else
216 andreas 6615
 { $as_echo "$as_me:$LINENO: result: no" >&5
6616
$as_echo "no" >&6; }
88 andreas 6617
 :
6618
 
6619
fi
6620
 
6621
 
216 andreas 6622
{ $as_echo "$as_me:$LINENO: checking whether $CXX supports --inline_auto_space_time=2" >&5
6623
$as_echo_n "checking whether $CXX supports --inline_auto_space_time=2... " >&6; }
88 andreas 6624
kde_cache=`echo -inline_auto_space_time=2 | sed 'y% .=/+-,%____p__%'`
6625
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
216 andreas 6626
  $as_echo_n "(cached) " >&6
88 andreas 6627
else
6628
 
6629
 
6630
   ac_ext=cpp
6631
ac_cpp='$CXXCPP $CPPFLAGS'
6632
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6633
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6634
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6635
 
6636
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6637
 
6638
 
6639
  save_CXXFLAGS="$CXXFLAGS"
6640
  CXXFLAGS="$CXXFLAGS --inline_auto_space_time=2"
6641
  cat >conftest.$ac_ext <<_ACEOF
6642
/* confdefs.h.  */
6643
_ACEOF
6644
cat confdefs.h >>conftest.$ac_ext
6645
cat >>conftest.$ac_ext <<_ACEOF
6646
/* end confdefs.h.  */
6647
 
6648
int
6649
main ()
6650
{
6651
 return 0;
6652
  ;
6653
  return 0;
6654
}
6655
_ACEOF
6656
rm -f conftest.$ac_objext conftest$ac_exeext
6657
if { (ac_try="$ac_link"
6658
case "(($ac_try" in
6659
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6660
  *) ac_try_echo=$ac_try;;
6661
esac
216 andreas 6662
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6663
$as_echo "$ac_try_echo") >&5
88 andreas 6664
  (eval "$ac_link") 2>conftest.er1
6665
  ac_status=$?
6666
  grep -v '^ *+' conftest.er1 >conftest.err
6667
  rm -f conftest.er1
6668
  cat conftest.err >&5
216 andreas 6669
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 6670
  (exit $ac_status); } && {
6671
	 test -z "$ac_cxx_werror_flag" ||
6672
	 test ! -s conftest.err
216 andreas 6673
       } && test -s conftest$ac_exeext && {
6674
	 test "$cross_compiling" = yes ||
6675
	 $as_test_x conftest$ac_exeext
6676
       }; then
88 andreas 6677
  eval "kde_cv_prog_cxx_$kde_cache=yes"
6678
else
216 andreas 6679
  $as_echo "$as_me: failed program was:" >&5
88 andreas 6680
sed 's/^/| /' conftest.$ac_ext >&5
6681
 
6682
 
6683
fi
6684
 
216 andreas 6685
rm -rf conftest.dSYM
88 andreas 6686
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6687
      conftest$ac_exeext conftest.$ac_ext
6688
  CXXFLAGS="$save_CXXFLAGS"
6689
  ac_ext=c
6690
ac_cpp='$CPP $CPPFLAGS'
6691
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6692
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6693
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6694
 
6695
 
6696
fi
6697
 
6698
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
216 andreas 6699
 { $as_echo "$as_me:$LINENO: result: yes" >&5
6700
$as_echo "yes" >&6; }
88 andreas 6701
 :
6702
 CXXFLAGS="$CXXFLAGS --inline_auto_space_time=2"
6703
else
216 andreas 6704
 { $as_echo "$as_me:$LINENO: result: no" >&5
6705
$as_echo "no" >&6; }
88 andreas 6706
 :
6707
 
6708
fi
6709
 
6710
 
216 andreas 6711
{ $as_echo "$as_me:$LINENO: checking whether $CXX supports --inline_implicit_space_time=2.0" >&5
6712
$as_echo_n "checking whether $CXX supports --inline_implicit_space_time=2.0... " >&6; }
88 andreas 6713
kde_cache=`echo -inline_implicit_space_time=2.0 | sed 'y% .=/+-,%____p__%'`
6714
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
216 andreas 6715
  $as_echo_n "(cached) " >&6
88 andreas 6716
else
6717
 
6718
 
6719
   ac_ext=cpp
6720
ac_cpp='$CXXCPP $CPPFLAGS'
6721
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6722
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6723
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6724
 
6725
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6726
 
6727
 
6728
  save_CXXFLAGS="$CXXFLAGS"
6729
  CXXFLAGS="$CXXFLAGS --inline_implicit_space_time=2.0"
6730
  cat >conftest.$ac_ext <<_ACEOF
6731
/* confdefs.h.  */
6732
_ACEOF
6733
cat confdefs.h >>conftest.$ac_ext
6734
cat >>conftest.$ac_ext <<_ACEOF
6735
/* end confdefs.h.  */
6736
 
6737
int
6738
main ()
6739
{
6740
 return 0;
6741
  ;
6742
  return 0;
6743
}
6744
_ACEOF
6745
rm -f conftest.$ac_objext conftest$ac_exeext
6746
if { (ac_try="$ac_link"
6747
case "(($ac_try" in
6748
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6749
  *) ac_try_echo=$ac_try;;
6750
esac
216 andreas 6751
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6752
$as_echo "$ac_try_echo") >&5
88 andreas 6753
  (eval "$ac_link") 2>conftest.er1
6754
  ac_status=$?
6755
  grep -v '^ *+' conftest.er1 >conftest.err
6756
  rm -f conftest.er1
6757
  cat conftest.err >&5
216 andreas 6758
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 6759
  (exit $ac_status); } && {
6760
	 test -z "$ac_cxx_werror_flag" ||
6761
	 test ! -s conftest.err
216 andreas 6762
       } && test -s conftest$ac_exeext && {
6763
	 test "$cross_compiling" = yes ||
6764
	 $as_test_x conftest$ac_exeext
6765
       }; then
88 andreas 6766
  eval "kde_cv_prog_cxx_$kde_cache=yes"
6767
else
216 andreas 6768
  $as_echo "$as_me: failed program was:" >&5
88 andreas 6769
sed 's/^/| /' conftest.$ac_ext >&5
6770
 
6771
 
6772
fi
6773
 
216 andreas 6774
rm -rf conftest.dSYM
88 andreas 6775
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6776
      conftest$ac_exeext conftest.$ac_ext
6777
  CXXFLAGS="$save_CXXFLAGS"
6778
  ac_ext=c
6779
ac_cpp='$CPP $CPPFLAGS'
6780
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6781
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6782
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6783
 
6784
 
6785
fi
6786
 
6787
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
216 andreas 6788
 { $as_echo "$as_me:$LINENO: result: yes" >&5
6789
$as_echo "yes" >&6; }
88 andreas 6790
 :
6791
 CXXFLAGS="$CXXFLAGS --inline_implicit_space_time=2.0"
6792
else
216 andreas 6793
 { $as_echo "$as_me:$LINENO: result: no" >&5
6794
$as_echo "no" >&6; }
88 andreas 6795
 :
6796
 
6797
fi
6798
 
6799
 
216 andreas 6800
{ $as_echo "$as_me:$LINENO: checking whether $CXX supports --inline_generated_space_time=2.0" >&5
6801
$as_echo_n "checking whether $CXX supports --inline_generated_space_time=2.0... " >&6; }
88 andreas 6802
kde_cache=`echo -inline_generated_space_time=2.0 | sed 'y% .=/+-,%____p__%'`
6803
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
216 andreas 6804
  $as_echo_n "(cached) " >&6
88 andreas 6805
else
6806
 
6807
 
6808
   ac_ext=cpp
6809
ac_cpp='$CXXCPP $CPPFLAGS'
6810
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6811
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6812
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6813
 
6814
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6815
 
6816
 
6817
  save_CXXFLAGS="$CXXFLAGS"
6818
  CXXFLAGS="$CXXFLAGS --inline_generated_space_time=2.0"
6819
  cat >conftest.$ac_ext <<_ACEOF
6820
/* confdefs.h.  */
6821
_ACEOF
6822
cat confdefs.h >>conftest.$ac_ext
6823
cat >>conftest.$ac_ext <<_ACEOF
6824
/* end confdefs.h.  */
6825
 
6826
int
6827
main ()
6828
{
6829
 return 0;
6830
  ;
6831
  return 0;
6832
}
6833
_ACEOF
6834
rm -f conftest.$ac_objext conftest$ac_exeext
6835
if { (ac_try="$ac_link"
6836
case "(($ac_try" in
6837
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6838
  *) ac_try_echo=$ac_try;;
6839
esac
216 andreas 6840
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6841
$as_echo "$ac_try_echo") >&5
88 andreas 6842
  (eval "$ac_link") 2>conftest.er1
6843
  ac_status=$?
6844
  grep -v '^ *+' conftest.er1 >conftest.err
6845
  rm -f conftest.er1
6846
  cat conftest.err >&5
216 andreas 6847
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 6848
  (exit $ac_status); } && {
6849
	 test -z "$ac_cxx_werror_flag" ||
6850
	 test ! -s conftest.err
216 andreas 6851
       } && test -s conftest$ac_exeext && {
6852
	 test "$cross_compiling" = yes ||
6853
	 $as_test_x conftest$ac_exeext
6854
       }; then
88 andreas 6855
  eval "kde_cv_prog_cxx_$kde_cache=yes"
6856
else
216 andreas 6857
  $as_echo "$as_me: failed program was:" >&5
88 andreas 6858
sed 's/^/| /' conftest.$ac_ext >&5
6859
 
6860
 
6861
fi
6862
 
216 andreas 6863
rm -rf conftest.dSYM
88 andreas 6864
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6865
      conftest$ac_exeext conftest.$ac_ext
6866
  CXXFLAGS="$save_CXXFLAGS"
6867
  ac_ext=c
6868
ac_cpp='$CPP $CPPFLAGS'
6869
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6870
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6871
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6872
 
6873
 
6874
fi
6875
 
6876
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
216 andreas 6877
 { $as_echo "$as_me:$LINENO: result: yes" >&5
6878
$as_echo "yes" >&6; }
88 andreas 6879
 :
6880
 CXXFLAGS="$CXXFLAGS --inline_generated_space_time=2.0"
6881
else
216 andreas 6882
 { $as_echo "$as_me:$LINENO: result: no" >&5
6883
$as_echo "no" >&6; }
88 andreas 6884
 :
6885
 
6886
fi
6887
 
6888
 
216 andreas 6889
{ $as_echo "$as_me:$LINENO: checking whether $CXX supports --one_per" >&5
6890
$as_echo_n "checking whether $CXX supports --one_per... " >&6; }
88 andreas 6891
kde_cache=`echo -one_per | sed 'y% .=/+-,%____p__%'`
6892
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
216 andreas 6893
  $as_echo_n "(cached) " >&6
88 andreas 6894
else
6895
 
6896
 
6897
   ac_ext=cpp
6898
ac_cpp='$CXXCPP $CPPFLAGS'
6899
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6900
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6901
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6902
 
6903
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6904
 
6905
 
6906
  save_CXXFLAGS="$CXXFLAGS"
6907
  CXXFLAGS="$CXXFLAGS --one_per"
6908
  cat >conftest.$ac_ext <<_ACEOF
6909
/* confdefs.h.  */
6910
_ACEOF
6911
cat confdefs.h >>conftest.$ac_ext
6912
cat >>conftest.$ac_ext <<_ACEOF
6913
/* end confdefs.h.  */
6914
 
6915
int
6916
main ()
6917
{
6918
 return 0;
6919
  ;
6920
  return 0;
6921
}
6922
_ACEOF
6923
rm -f conftest.$ac_objext conftest$ac_exeext
6924
if { (ac_try="$ac_link"
6925
case "(($ac_try" in
6926
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6927
  *) ac_try_echo=$ac_try;;
6928
esac
216 andreas 6929
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6930
$as_echo "$ac_try_echo") >&5
88 andreas 6931
  (eval "$ac_link") 2>conftest.er1
6932
  ac_status=$?
6933
  grep -v '^ *+' conftest.er1 >conftest.err
6934
  rm -f conftest.er1
6935
  cat conftest.err >&5
216 andreas 6936
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 6937
  (exit $ac_status); } && {
6938
	 test -z "$ac_cxx_werror_flag" ||
6939
	 test ! -s conftest.err
216 andreas 6940
       } && test -s conftest$ac_exeext && {
6941
	 test "$cross_compiling" = yes ||
6942
	 $as_test_x conftest$ac_exeext
6943
       }; then
88 andreas 6944
  eval "kde_cv_prog_cxx_$kde_cache=yes"
6945
else
216 andreas 6946
  $as_echo "$as_me: failed program was:" >&5
88 andreas 6947
sed 's/^/| /' conftest.$ac_ext >&5
6948
 
6949
 
6950
fi
6951
 
216 andreas 6952
rm -rf conftest.dSYM
88 andreas 6953
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6954
      conftest$ac_exeext conftest.$ac_ext
6955
  CXXFLAGS="$save_CXXFLAGS"
6956
  ac_ext=c
6957
ac_cpp='$CPP $CPPFLAGS'
6958
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6959
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6960
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6961
 
6962
 
6963
fi
6964
 
6965
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
216 andreas 6966
 { $as_echo "$as_me:$LINENO: result: yes" >&5
6967
$as_echo "yes" >&6; }
88 andreas 6968
 :
6969
 CXXFLAGS="$CXXFLAGS --one_per"
6970
else
216 andreas 6971
 { $as_echo "$as_me:$LINENO: result: no" >&5
6972
$as_echo "no" >&6; }
88 andreas 6973
 :
6974
 
6975
fi
6976
 
6977
  fi
6978
 
6979
    USE_RTTI=
6980
 
6981
 
6982
  case "$host" in
6983
      *-*-irix*)  test "$GXX" = yes && CXXFLAGS="-D_LANGUAGE_C_PLUS_PLUS -D__LANGUAGE_C_PLUS_PLUS $CXXFLAGS" ;;
6984
      *-*-sysv4.2uw*) CXXFLAGS="-D_UNIXWARE $CXXFLAGS";;
6985
      *-*-sysv5uw7*) CXXFLAGS="-D_UNIXWARE7 $CXXFLAGS";;
6986
      *-*-solaris*)
6987
        if test "$GXX" = yes; then
6988
          libstdcpp=`$CXX -print-file-name=libstdc++.so`
6989
          if test ! -f $libstdcpp; then
216 andreas 6990
             { { $as_echo "$as_me:$LINENO: error: You've compiled gcc without --enable-shared. This doesn't work with KDE. Please recompile gcc with --enable-shared to receive a libstdc++.so" >&5
6991
$as_echo "$as_me: error: You've compiled gcc without --enable-shared. This doesn't work with KDE. Please recompile gcc with --enable-shared to receive a libstdc++.so" >&2;}
88 andreas 6992
   { (exit 1); exit 1; }; }
6993
          fi
6994
        fi
6995
        ;;
6996
  esac
6997
 
6998
  if test "x$kde_use_qt_emb" != "xyes"; then
6999
  __val=$CXX
7000
  __forbid=" -fno-rtti -rpath "
7001
  if test -n "$__val"; then
7002
    __new=""
7003
    ac_save_IFS=$IFS
7004
    IFS=" 	"
7005
    for i in $__val; do
7006
      case "$__forbid" in
216 andreas 7007
        *" $i "*) { $as_echo "$as_me:$LINENO: WARNING: found forbidden $i in CXX, removing it" >&5
7008
$as_echo "$as_me: WARNING: found forbidden $i in CXX, removing it" >&2;} ;;
88 andreas 7009
	*) # Careful to not add spaces, where there were none, because otherwise
7010
	   # libtool gets confused, if we change e.g. CXX
7011
	   if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
7012
      esac
7013
    done
7014
    IFS=$ac_save_IFS
7015
    CXX=$__new
7016
  fi
7017
 
7018
  __val=$CXXFLAGS
7019
  __forbid=" -fno-rtti -rpath "
7020
  if test -n "$__val"; then
7021
    __new=""
7022
    ac_save_IFS=$IFS
7023
    IFS=" 	"
7024
    for i in $__val; do
7025
      case "$__forbid" in
216 andreas 7026
        *" $i "*) { $as_echo "$as_me:$LINENO: WARNING: found forbidden $i in CXXFLAGS, removing it" >&5
7027
$as_echo "$as_me: WARNING: found forbidden $i in CXXFLAGS, removing it" >&2;} ;;
88 andreas 7028
	*) # Careful to not add spaces, where there were none, because otherwise
7029
	   # libtool gets confused, if we change e.g. CXX
7030
	   if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
7031
      esac
7032
    done
7033
    IFS=$ac_save_IFS
7034
    CXXFLAGS=$__new
7035
  fi
7036
 
7037
else
7038
  __val=$CXX
7039
  __forbid=" -rpath "
7040
  if test -n "$__val"; then
7041
    __new=""
7042
    ac_save_IFS=$IFS
7043
    IFS=" 	"
7044
    for i in $__val; do
7045
      case "$__forbid" in
216 andreas 7046
        *" $i "*) { $as_echo "$as_me:$LINENO: WARNING: found forbidden $i in CXX, removing it" >&5
7047
$as_echo "$as_me: WARNING: found forbidden $i in CXX, removing it" >&2;} ;;
88 andreas 7048
	*) # Careful to not add spaces, where there were none, because otherwise
7049
	   # libtool gets confused, if we change e.g. CXX
7050
	   if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
7051
      esac
7052
    done
7053
    IFS=$ac_save_IFS
7054
    CXX=$__new
7055
  fi
7056
 
7057
  __val=$CXXFLAGS
7058
  __forbid=" -rpath "
7059
  if test -n "$__val"; then
7060
    __new=""
7061
    ac_save_IFS=$IFS
7062
    IFS=" 	"
7063
    for i in $__val; do
7064
      case "$__forbid" in
216 andreas 7065
        *" $i "*) { $as_echo "$as_me:$LINENO: WARNING: found forbidden $i in CXXFLAGS, removing it" >&5
7066
$as_echo "$as_me: WARNING: found forbidden $i in CXXFLAGS, removing it" >&2;} ;;
88 andreas 7067
	*) # Careful to not add spaces, where there were none, because otherwise
7068
	   # libtool gets confused, if we change e.g. CXX
7069
	   if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
7070
      esac
7071
    done
7072
    IFS=$ac_save_IFS
7073
    CXXFLAGS=$__new
7074
  fi
7075
 
7076
fi
7077
 
7078
 
7079
  ac_ext=cpp
7080
ac_cpp='$CXXCPP $CPPFLAGS'
7081
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7082
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7083
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
216 andreas 7084
{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7085
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
88 andreas 7086
if test -z "$CXXCPP"; then
7087
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
216 andreas 7088
  $as_echo_n "(cached) " >&6
88 andreas 7089
else
7090
      # Double quotes because CXXCPP needs to be expanded
7091
    for CXXCPP in "$CXX -E" "/lib/cpp"
7092
    do
7093
      ac_preproc_ok=false
7094
for ac_cxx_preproc_warn_flag in '' yes
7095
do
7096
  # Use a header file that comes with gcc, so configuring glibc
7097
  # with a fresh cross-compiler works.
7098
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7099
  # <limits.h> exists even on freestanding compilers.
7100
  # On the NeXT, cc -E runs the code through the compiler's parser,
7101
  # not just through cpp. "Syntax error" is here to catch this case.
7102
  cat >conftest.$ac_ext <<_ACEOF
7103
/* confdefs.h.  */
7104
_ACEOF
7105
cat confdefs.h >>conftest.$ac_ext
7106
cat >>conftest.$ac_ext <<_ACEOF
7107
/* end confdefs.h.  */
7108
#ifdef __STDC__
7109
# include <limits.h>
7110
#else
7111
# include <assert.h>
7112
#endif
7113
		     Syntax error
7114
_ACEOF
7115
if { (ac_try="$ac_cpp conftest.$ac_ext"
7116
case "(($ac_try" in
7117
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7118
  *) ac_try_echo=$ac_try;;
7119
esac
216 andreas 7120
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7121
$as_echo "$ac_try_echo") >&5
88 andreas 7122
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7123
  ac_status=$?
7124
  grep -v '^ *+' conftest.er1 >conftest.err
7125
  rm -f conftest.er1
7126
  cat conftest.err >&5
216 andreas 7127
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 7128
  (exit $ac_status); } >/dev/null && {
7129
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7130
	 test ! -s conftest.err
7131
       }; then
7132
  :
7133
else
216 andreas 7134
  $as_echo "$as_me: failed program was:" >&5
88 andreas 7135
sed 's/^/| /' conftest.$ac_ext >&5
7136
 
7137
  # Broken: fails on valid input.
7138
continue
7139
fi
7140
 
7141
rm -f conftest.err conftest.$ac_ext
7142
 
7143
  # OK, works on sane cases.  Now check whether nonexistent headers
7144
  # can be detected and how.
7145
  cat >conftest.$ac_ext <<_ACEOF
7146
/* confdefs.h.  */
7147
_ACEOF
7148
cat confdefs.h >>conftest.$ac_ext
7149
cat >>conftest.$ac_ext <<_ACEOF
7150
/* end confdefs.h.  */
7151
#include <ac_nonexistent.h>
7152
_ACEOF
7153
if { (ac_try="$ac_cpp conftest.$ac_ext"
7154
case "(($ac_try" in
7155
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7156
  *) ac_try_echo=$ac_try;;
7157
esac
216 andreas 7158
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7159
$as_echo "$ac_try_echo") >&5
88 andreas 7160
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7161
  ac_status=$?
7162
  grep -v '^ *+' conftest.er1 >conftest.err
7163
  rm -f conftest.er1
7164
  cat conftest.err >&5
216 andreas 7165
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 7166
  (exit $ac_status); } >/dev/null && {
7167
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7168
	 test ! -s conftest.err
7169
       }; then
7170
  # Broken: success on invalid input.
7171
continue
7172
else
216 andreas 7173
  $as_echo "$as_me: failed program was:" >&5
88 andreas 7174
sed 's/^/| /' conftest.$ac_ext >&5
7175
 
7176
  # Passes both tests.
7177
ac_preproc_ok=:
7178
break
7179
fi
7180
 
7181
rm -f conftest.err conftest.$ac_ext
7182
 
7183
done
7184
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7185
rm -f conftest.err conftest.$ac_ext
7186
if $ac_preproc_ok; then
7187
  break
7188
fi
7189
 
7190
    done
7191
    ac_cv_prog_CXXCPP=$CXXCPP
7192
 
7193
fi
7194
  CXXCPP=$ac_cv_prog_CXXCPP
7195
else
7196
  ac_cv_prog_CXXCPP=$CXXCPP
7197
fi
216 andreas 7198
{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
7199
$as_echo "$CXXCPP" >&6; }
88 andreas 7200
ac_preproc_ok=false
7201
for ac_cxx_preproc_warn_flag in '' yes
7202
do
7203
  # Use a header file that comes with gcc, so configuring glibc
7204
  # with a fresh cross-compiler works.
7205
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7206
  # <limits.h> exists even on freestanding compilers.
7207
  # On the NeXT, cc -E runs the code through the compiler's parser,
7208
  # not just through cpp. "Syntax error" is here to catch this case.
7209
  cat >conftest.$ac_ext <<_ACEOF
7210
/* confdefs.h.  */
7211
_ACEOF
7212
cat confdefs.h >>conftest.$ac_ext
7213
cat >>conftest.$ac_ext <<_ACEOF
7214
/* end confdefs.h.  */
7215
#ifdef __STDC__
7216
# include <limits.h>
7217
#else
7218
# include <assert.h>
7219
#endif
7220
		     Syntax error
7221
_ACEOF
7222
if { (ac_try="$ac_cpp conftest.$ac_ext"
7223
case "(($ac_try" in
7224
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7225
  *) ac_try_echo=$ac_try;;
7226
esac
216 andreas 7227
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7228
$as_echo "$ac_try_echo") >&5
88 andreas 7229
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7230
  ac_status=$?
7231
  grep -v '^ *+' conftest.er1 >conftest.err
7232
  rm -f conftest.er1
7233
  cat conftest.err >&5
216 andreas 7234
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 7235
  (exit $ac_status); } >/dev/null && {
7236
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7237
	 test ! -s conftest.err
7238
       }; then
7239
  :
7240
else
216 andreas 7241
  $as_echo "$as_me: failed program was:" >&5
88 andreas 7242
sed 's/^/| /' conftest.$ac_ext >&5
7243
 
7244
  # Broken: fails on valid input.
7245
continue
7246
fi
7247
 
7248
rm -f conftest.err conftest.$ac_ext
7249
 
7250
  # OK, works on sane cases.  Now check whether nonexistent headers
7251
  # can be detected and how.
7252
  cat >conftest.$ac_ext <<_ACEOF
7253
/* confdefs.h.  */
7254
_ACEOF
7255
cat confdefs.h >>conftest.$ac_ext
7256
cat >>conftest.$ac_ext <<_ACEOF
7257
/* end confdefs.h.  */
7258
#include <ac_nonexistent.h>
7259
_ACEOF
7260
if { (ac_try="$ac_cpp conftest.$ac_ext"
7261
case "(($ac_try" in
7262
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7263
  *) ac_try_echo=$ac_try;;
7264
esac
216 andreas 7265
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7266
$as_echo "$ac_try_echo") >&5
88 andreas 7267
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7268
  ac_status=$?
7269
  grep -v '^ *+' conftest.er1 >conftest.err
7270
  rm -f conftest.er1
7271
  cat conftest.err >&5
216 andreas 7272
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 7273
  (exit $ac_status); } >/dev/null && {
7274
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7275
	 test ! -s conftest.err
7276
       }; then
7277
  # Broken: success on invalid input.
7278
continue
7279
else
216 andreas 7280
  $as_echo "$as_me: failed program was:" >&5
88 andreas 7281
sed 's/^/| /' conftest.$ac_ext >&5
7282
 
7283
  # Passes both tests.
7284
ac_preproc_ok=:
7285
break
7286
fi
7287
 
7288
rm -f conftest.err conftest.$ac_ext
7289
 
7290
done
7291
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7292
rm -f conftest.err conftest.$ac_ext
7293
if $ac_preproc_ok; then
7294
  :
7295
else
216 andreas 7296
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7297
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7298
{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
88 andreas 7299
See \`config.log' for more details." >&5
216 andreas 7300
$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
88 andreas 7301
See \`config.log' for more details." >&2;}
216 andreas 7302
   { (exit 1); exit 1; }; }; }
88 andreas 7303
fi
7304
 
7305
ac_ext=c
7306
ac_cpp='$CPP $CPPFLAGS'
7307
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7308
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7309
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7310
 
7311
 
7312
  if test "$GCC" = yes; then
7313
     NOOPT_CFLAGS=-O0
7314
  fi
7315
 
216 andreas 7316
{ $as_echo "$as_me:$LINENO: checking whether $CXX supports -O0" >&5
7317
$as_echo_n "checking whether $CXX supports -O0... " >&6; }
88 andreas 7318
kde_cache=`echo O0 | sed 'y% .=/+-,%____p__%'`
7319
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
216 andreas 7320
  $as_echo_n "(cached) " >&6
88 andreas 7321
else
7322
 
7323
 
7324
   ac_ext=cpp
7325
ac_cpp='$CXXCPP $CPPFLAGS'
7326
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7327
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7328
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7329
 
7330
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7331
 
7332
 
7333
  save_CXXFLAGS="$CXXFLAGS"
7334
  CXXFLAGS="$CXXFLAGS -O0"
7335
  cat >conftest.$ac_ext <<_ACEOF
7336
/* confdefs.h.  */
7337
_ACEOF
7338
cat confdefs.h >>conftest.$ac_ext
7339
cat >>conftest.$ac_ext <<_ACEOF
7340
/* end confdefs.h.  */
7341
 
7342
int
7343
main ()
7344
{
7345
 return 0;
7346
  ;
7347
  return 0;
7348
}
7349
_ACEOF
7350
rm -f conftest.$ac_objext conftest$ac_exeext
7351
if { (ac_try="$ac_link"
7352
case "(($ac_try" in
7353
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7354
  *) ac_try_echo=$ac_try;;
7355
esac
216 andreas 7356
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7357
$as_echo "$ac_try_echo") >&5
88 andreas 7358
  (eval "$ac_link") 2>conftest.er1
7359
  ac_status=$?
7360
  grep -v '^ *+' conftest.er1 >conftest.err
7361
  rm -f conftest.er1
7362
  cat conftest.err >&5
216 andreas 7363
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 7364
  (exit $ac_status); } && {
7365
	 test -z "$ac_cxx_werror_flag" ||
7366
	 test ! -s conftest.err
216 andreas 7367
       } && test -s conftest$ac_exeext && {
7368
	 test "$cross_compiling" = yes ||
7369
	 $as_test_x conftest$ac_exeext
7370
       }; then
88 andreas 7371
  eval "kde_cv_prog_cxx_$kde_cache=yes"
7372
else
216 andreas 7373
  $as_echo "$as_me: failed program was:" >&5
88 andreas 7374
sed 's/^/| /' conftest.$ac_ext >&5
7375
 
7376
 
7377
fi
7378
 
216 andreas 7379
rm -rf conftest.dSYM
88 andreas 7380
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7381
      conftest$ac_exeext conftest.$ac_ext
7382
  CXXFLAGS="$save_CXXFLAGS"
7383
  ac_ext=c
7384
ac_cpp='$CPP $CPPFLAGS'
7385
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7386
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7387
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7388
 
7389
 
7390
fi
7391
 
7392
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
216 andreas 7393
 { $as_echo "$as_me:$LINENO: result: yes" >&5
7394
$as_echo "yes" >&6; }
88 andreas 7395
 :
7396
 NOOPT_CXXFLAGS=-O0
7397
else
216 andreas 7398
 { $as_echo "$as_me:$LINENO: result: no" >&5
7399
$as_echo "no" >&6; }
88 andreas 7400
 :
7401
 
7402
fi
7403
 
7404
 
7405
  # Check whether --enable-coverage was given.
7406
if test "${enable_coverage+set}" = set; then
7407
  enableval=$enable_coverage;
7408
      if test "$am_cv_CC_dependencies_compiler_type" = "gcc3"; then
7409
        ac_coverage_compiler="-fprofile-arcs -ftest-coverage"
7410
        ac_coverage_linker="-lgcc"
7411
      elif test "$am_cv_CC_dependencies_compiler_type" = "gcc"; then
7412
        ac_coverage_compiler="-fprofile-arcs -ftest-coverage"
7413
        ac_coverage_linker=""
7414
      else
216 andreas 7415
        { { $as_echo "$as_me:$LINENO: error: coverage with your compiler is not supported" >&5
7416
$as_echo "$as_me: error: coverage with your compiler is not supported" >&2;}
88 andreas 7417
   { (exit 1); exit 1; }; }
7418
      fi
7419
      CFLAGS="$CFLAGS $ac_coverage_compiler"
7420
      CXXFLAGS="$CXXFLAGS $ac_coverage_compiler"
7421
      LDFLAGS="$LDFLAGS $ac_coverage_linker"
7422
 
7423
fi
7424
 
7425
 
7426
 
7427
 
7428
 
7429
 
7430
 
7431
  # Check whether --enable-new_ldflags was given.
7432
if test "${enable_new_ldflags+set}" = set; then
7433
  enableval=$enable_new_ldflags; kde_use_new_ldflags=$enableval
7434
else
7435
  kde_use_new_ldflags=no
7436
fi
7437
 
7438
 
7439
  LDFLAGS_AS_NEEDED=""
7440
  LDFLAGS_NEW_DTAGS=""
7441
  if test "x$kde_use_new_ldflags" = "xyes"; then
7442
       LDFLAGS_NEW_DTAGS=""
7443
 
216 andreas 7444
{ $as_echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--enable-new-dtags" >&5
7445
$as_echo_n "checking whether $CXX supports -Wl,--enable-new-dtags... " >&6; }
88 andreas 7446
kde_cache=`echo Wl,--enable-new-dtags | sed 'y% .=/+-,%____p__%'`
7447
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
216 andreas 7448
  $as_echo_n "(cached) " >&6
88 andreas 7449
else
7450
 
7451
 
7452
   ac_ext=cpp
7453
ac_cpp='$CXXCPP $CPPFLAGS'
7454
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7455
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7456
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7457
 
7458
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7459
 
7460
 
7461
  save_CXXFLAGS="$CXXFLAGS"
7462
  CXXFLAGS="$CXXFLAGS -Wl,--enable-new-dtags"
7463
  cat >conftest.$ac_ext <<_ACEOF
7464
/* confdefs.h.  */
7465
_ACEOF
7466
cat confdefs.h >>conftest.$ac_ext
7467
cat >>conftest.$ac_ext <<_ACEOF
7468
/* end confdefs.h.  */
7469
 
7470
int
7471
main ()
7472
{
7473
 return 0;
7474
  ;
7475
  return 0;
7476
}
7477
_ACEOF
7478
rm -f conftest.$ac_objext conftest$ac_exeext
7479
if { (ac_try="$ac_link"
7480
case "(($ac_try" in
7481
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7482
  *) ac_try_echo=$ac_try;;
7483
esac
216 andreas 7484
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7485
$as_echo "$ac_try_echo") >&5
88 andreas 7486
  (eval "$ac_link") 2>conftest.er1
7487
  ac_status=$?
7488
  grep -v '^ *+' conftest.er1 >conftest.err
7489
  rm -f conftest.er1
7490
  cat conftest.err >&5
216 andreas 7491
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 7492
  (exit $ac_status); } && {
7493
	 test -z "$ac_cxx_werror_flag" ||
7494
	 test ! -s conftest.err
216 andreas 7495
       } && test -s conftest$ac_exeext && {
7496
	 test "$cross_compiling" = yes ||
7497
	 $as_test_x conftest$ac_exeext
7498
       }; then
88 andreas 7499
  eval "kde_cv_prog_cxx_$kde_cache=yes"
7500
else
216 andreas 7501
  $as_echo "$as_me: failed program was:" >&5
88 andreas 7502
sed 's/^/| /' conftest.$ac_ext >&5
7503
 
7504
 
7505
fi
7506
 
216 andreas 7507
rm -rf conftest.dSYM
88 andreas 7508
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7509
      conftest$ac_exeext conftest.$ac_ext
7510
  CXXFLAGS="$save_CXXFLAGS"
7511
  ac_ext=c
7512
ac_cpp='$CPP $CPPFLAGS'
7513
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7514
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7515
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7516
 
7517
 
7518
fi
7519
 
7520
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
216 andreas 7521
 { $as_echo "$as_me:$LINENO: result: yes" >&5
7522
$as_echo "yes" >&6; }
88 andreas 7523
 :
7524
 LDFLAGS_NEW_DTAGS="-Wl,--enable-new-dtags"
7525
else
216 andreas 7526
 { $as_echo "$as_me:$LINENO: result: no" >&5
7527
$as_echo "no" >&6; }
88 andreas 7528
 :
7529
 
7530
fi
7531
 
7532
 
7533
 
216 andreas 7534
{ $as_echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--as-needed" >&5
7535
$as_echo_n "checking whether $CXX supports -Wl,--as-needed... " >&6; }
88 andreas 7536
kde_cache=`echo Wl,--as-needed | sed 'y% .=/+-,%____p__%'`
7537
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
216 andreas 7538
  $as_echo_n "(cached) " >&6
88 andreas 7539
else
7540
 
7541
 
7542
   ac_ext=cpp
7543
ac_cpp='$CXXCPP $CPPFLAGS'
7544
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7545
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7546
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7547
 
7548
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7549
 
7550
 
7551
  save_CXXFLAGS="$CXXFLAGS"
7552
  CXXFLAGS="$CXXFLAGS -Wl,--as-needed"
7553
  cat >conftest.$ac_ext <<_ACEOF
7554
/* confdefs.h.  */
7555
_ACEOF
7556
cat confdefs.h >>conftest.$ac_ext
7557
cat >>conftest.$ac_ext <<_ACEOF
7558
/* end confdefs.h.  */
7559
 
7560
int
7561
main ()
7562
{
7563
 return 0;
7564
  ;
7565
  return 0;
7566
}
7567
_ACEOF
7568
rm -f conftest.$ac_objext conftest$ac_exeext
7569
if { (ac_try="$ac_link"
7570
case "(($ac_try" in
7571
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7572
  *) ac_try_echo=$ac_try;;
7573
esac
216 andreas 7574
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7575
$as_echo "$ac_try_echo") >&5
88 andreas 7576
  (eval "$ac_link") 2>conftest.er1
7577
  ac_status=$?
7578
  grep -v '^ *+' conftest.er1 >conftest.err
7579
  rm -f conftest.er1
7580
  cat conftest.err >&5
216 andreas 7581
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 7582
  (exit $ac_status); } && {
7583
	 test -z "$ac_cxx_werror_flag" ||
7584
	 test ! -s conftest.err
216 andreas 7585
       } && test -s conftest$ac_exeext && {
7586
	 test "$cross_compiling" = yes ||
7587
	 $as_test_x conftest$ac_exeext
7588
       }; then
88 andreas 7589
  eval "kde_cv_prog_cxx_$kde_cache=yes"
7590
else
216 andreas 7591
  $as_echo "$as_me: failed program was:" >&5
88 andreas 7592
sed 's/^/| /' conftest.$ac_ext >&5
7593
 
7594
 
7595
fi
7596
 
216 andreas 7597
rm -rf conftest.dSYM
88 andreas 7598
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7599
      conftest$ac_exeext conftest.$ac_ext
7600
  CXXFLAGS="$save_CXXFLAGS"
7601
  ac_ext=c
7602
ac_cpp='$CPP $CPPFLAGS'
7603
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7604
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7605
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7606
 
7607
 
7608
fi
7609
 
7610
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
216 andreas 7611
 { $as_echo "$as_me:$LINENO: result: yes" >&5
7612
$as_echo "yes" >&6; }
88 andreas 7613
 :
7614
 LDFLAGS_AS_NEEDED="-Wl,--as-needed"
7615
else
216 andreas 7616
 { $as_echo "$as_me:$LINENO: result: no" >&5
7617
$as_echo "no" >&6; }
88 andreas 7618
 :
7619
 
7620
fi
7621
 
7622
  fi
7623
 
7624
 
7625
 
7626
 
7627
  # Check whether --enable-final was given.
7628
if test "${enable_final+set}" = set; then
7629
  enableval=$enable_final; kde_use_final=$enableval
7630
else
7631
  kde_use_final=no
7632
fi
7633
 
7634
 
7635
  if test "x$kde_use_final" = "xyes"; then
7636
      KDE_USE_FINAL_TRUE=""
7637
      KDE_USE_FINAL_FALSE="#"
7638
   else
7639
      KDE_USE_FINAL_TRUE="#"
7640
      KDE_USE_FINAL_FALSE=""
7641
  fi
7642
 
7643
 
7644
 
7645
 
7646
  # Check whether --enable-closure was given.
7647
if test "${enable_closure+set}" = set; then
7648
  enableval=$enable_closure; kde_use_closure=$enableval
7649
else
7650
  kde_use_closure=no
7651
fi
7652
 
7653
 
7654
  KDE_NO_UNDEFINED=""
7655
  if test "x$kde_use_closure" = "xyes"; then
7656
       KDE_USE_CLOSURE_TRUE=""
7657
       KDE_USE_CLOSURE_FALSE="#"
7658
#       CXXFLAGS="$CXXFLAGS $REPO"
7659
  else
7660
       KDE_USE_CLOSURE_TRUE="#"
7661
       KDE_USE_CLOSURE_FALSE=""
7662
       KDE_NO_UNDEFINED=""
7663
       case $host in
7664
         *-*-linux-gnu)
7665
 
216 andreas 7666
{ $as_echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--no-undefined" >&5
7667
$as_echo_n "checking whether $CXX supports -Wl,--no-undefined... " >&6; }
88 andreas 7668
kde_cache=`echo Wl,--no-undefined | sed 'y% .=/+-,%____p__%'`
7669
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
216 andreas 7670
  $as_echo_n "(cached) " >&6
88 andreas 7671
else
7672
 
7673
 
7674
   ac_ext=cpp
7675
ac_cpp='$CXXCPP $CPPFLAGS'
7676
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7677
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7678
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7679
 
7680
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7681
 
7682
 
7683
  save_CXXFLAGS="$CXXFLAGS"
7684
  CXXFLAGS="$CXXFLAGS -Wl,--no-undefined"
7685
  cat >conftest.$ac_ext <<_ACEOF
7686
/* confdefs.h.  */
7687
_ACEOF
7688
cat confdefs.h >>conftest.$ac_ext
7689
cat >>conftest.$ac_ext <<_ACEOF
7690
/* end confdefs.h.  */
7691
 
7692
int
7693
main ()
7694
{
7695
 return 0;
7696
  ;
7697
  return 0;
7698
}
7699
_ACEOF
7700
rm -f conftest.$ac_objext conftest$ac_exeext
7701
if { (ac_try="$ac_link"
7702
case "(($ac_try" in
7703
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7704
  *) ac_try_echo=$ac_try;;
7705
esac
216 andreas 7706
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7707
$as_echo "$ac_try_echo") >&5
88 andreas 7708
  (eval "$ac_link") 2>conftest.er1
7709
  ac_status=$?
7710
  grep -v '^ *+' conftest.er1 >conftest.err
7711
  rm -f conftest.er1
7712
  cat conftest.err >&5
216 andreas 7713
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 7714
  (exit $ac_status); } && {
7715
	 test -z "$ac_cxx_werror_flag" ||
7716
	 test ! -s conftest.err
216 andreas 7717
       } && test -s conftest$ac_exeext && {
7718
	 test "$cross_compiling" = yes ||
7719
	 $as_test_x conftest$ac_exeext
7720
       }; then
88 andreas 7721
  eval "kde_cv_prog_cxx_$kde_cache=yes"
7722
else
216 andreas 7723
  $as_echo "$as_me: failed program was:" >&5
88 andreas 7724
sed 's/^/| /' conftest.$ac_ext >&5
7725
 
7726
 
7727
fi
7728
 
216 andreas 7729
rm -rf conftest.dSYM
88 andreas 7730
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7731
      conftest$ac_exeext conftest.$ac_ext
7732
  CXXFLAGS="$save_CXXFLAGS"
7733
  ac_ext=c
7734
ac_cpp='$CPP $CPPFLAGS'
7735
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7736
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7737
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7738
 
7739
 
7740
fi
7741
 
7742
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
216 andreas 7743
 { $as_echo "$as_me:$LINENO: result: yes" >&5
7744
$as_echo "yes" >&6; }
88 andreas 7745
 :
7746
 
216 andreas 7747
{ $as_echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--allow-shlib-undefined" >&5
7748
$as_echo_n "checking whether $CXX supports -Wl,--allow-shlib-undefined... " >&6; }
88 andreas 7749
kde_cache=`echo Wl,--allow-shlib-undefined | sed 'y% .=/+-,%____p__%'`
7750
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
216 andreas 7751
  $as_echo_n "(cached) " >&6
88 andreas 7752
else
7753
 
7754
 
7755
   ac_ext=cpp
7756
ac_cpp='$CXXCPP $CPPFLAGS'
7757
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7758
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7759
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7760
 
7761
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7762
 
7763
 
7764
  save_CXXFLAGS="$CXXFLAGS"
7765
  CXXFLAGS="$CXXFLAGS -Wl,--allow-shlib-undefined"
7766
  cat >conftest.$ac_ext <<_ACEOF
7767
/* confdefs.h.  */
7768
_ACEOF
7769
cat confdefs.h >>conftest.$ac_ext
7770
cat >>conftest.$ac_ext <<_ACEOF
7771
/* end confdefs.h.  */
7772
 
7773
int
7774
main ()
7775
{
7776
 return 0;
7777
  ;
7778
  return 0;
7779
}
7780
_ACEOF
7781
rm -f conftest.$ac_objext conftest$ac_exeext
7782
if { (ac_try="$ac_link"
7783
case "(($ac_try" in
7784
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7785
  *) ac_try_echo=$ac_try;;
7786
esac
216 andreas 7787
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7788
$as_echo "$ac_try_echo") >&5
88 andreas 7789
  (eval "$ac_link") 2>conftest.er1
7790
  ac_status=$?
7791
  grep -v '^ *+' conftest.er1 >conftest.err
7792
  rm -f conftest.er1
7793
  cat conftest.err >&5
216 andreas 7794
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 7795
  (exit $ac_status); } && {
7796
	 test -z "$ac_cxx_werror_flag" ||
7797
	 test ! -s conftest.err
216 andreas 7798
       } && test -s conftest$ac_exeext && {
7799
	 test "$cross_compiling" = yes ||
7800
	 $as_test_x conftest$ac_exeext
7801
       }; then
88 andreas 7802
  eval "kde_cv_prog_cxx_$kde_cache=yes"
7803
else
216 andreas 7804
  $as_echo "$as_me: failed program was:" >&5
88 andreas 7805
sed 's/^/| /' conftest.$ac_ext >&5
7806
 
7807
 
7808
fi
7809
 
216 andreas 7810
rm -rf conftest.dSYM
88 andreas 7811
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7812
      conftest$ac_exeext conftest.$ac_ext
7813
  CXXFLAGS="$save_CXXFLAGS"
7814
  ac_ext=c
7815
ac_cpp='$CPP $CPPFLAGS'
7816
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7817
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7818
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7819
 
7820
 
7821
fi
7822
 
7823
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
216 andreas 7824
 { $as_echo "$as_me:$LINENO: result: yes" >&5
7825
$as_echo "yes" >&6; }
88 andreas 7826
 :
7827
 KDE_NO_UNDEFINED="-Wl,--no-undefined -Wl,--allow-shlib-undefined"
7828
else
216 andreas 7829
 { $as_echo "$as_me:$LINENO: result: no" >&5
7830
$as_echo "no" >&6; }
88 andreas 7831
 :
7832
 KDE_NO_UNDEFINED=""
7833
fi
7834
 
7835
else
216 andreas 7836
 { $as_echo "$as_me:$LINENO: result: no" >&5
7837
$as_echo "no" >&6; }
88 andreas 7838
 :
7839
 KDE_NO_UNDEFINED=""
7840
fi
7841
 
7842
           ;;
7843
       esac
7844
  fi
7845
 
7846
 
7847
 
7848
 
7849
 
7850
  # Check whether --enable-nmcheck was given.
7851
if test "${enable_nmcheck+set}" = set; then
7852
  enableval=$enable_nmcheck; kde_use_nmcheck=$enableval
7853
else
7854
  kde_use_nmcheck=no
7855
fi
7856
 
7857
 
7858
  if test "$kde_use_nmcheck" = "yes"; then
7859
      KDE_USE_NMCHECK_TRUE=""
7860
      KDE_USE_NMCHECK_FALSE="#"
7861
   else
7862
      KDE_USE_NMCHECK_TRUE="#"
7863
      KDE_USE_NMCHECK_FALSE=""
7864
  fi
7865
 
7866
 
7867
 
7868
 
7869
 
7870
 
7871
# Check whether --enable-shared was given.
7872
if test "${enable_shared+set}" = set; then
7873
  enableval=$enable_shared; p=${PACKAGE-default}
7874
    case $enableval in
7875
    yes) enable_shared=yes ;;
7876
    no) enable_shared=no ;;
7877
    *)
7878
      enable_shared=no
7879
      # Look at the argument we got.  We use all the common list separators.
7880
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7881
      for pkg in $enableval; do
7882
	IFS="$lt_save_ifs"
7883
	if test "X$pkg" = "X$p"; then
7884
	  enable_shared=yes
7885
	fi
7886
      done
7887
      IFS="$lt_save_ifs"
7888
      ;;
7889
    esac
7890
else
7891
  enable_shared=yes
7892
fi
7893
 
7894
 
7895
# Check whether --enable-static was given.
7896
if test "${enable_static+set}" = set; then
7897
  enableval=$enable_static; p=${PACKAGE-default}
7898
    case $enableval in
7899
    yes) enable_static=yes ;;
7900
    no) enable_static=no ;;
7901
    *)
7902
     enable_static=no
7903
      # Look at the argument we got.  We use all the common list separators.
7904
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7905
      for pkg in $enableval; do
7906
	IFS="$lt_save_ifs"
7907
	if test "X$pkg" = "X$p"; then
7908
	  enable_static=yes
7909
	fi
7910
      done
7911
      IFS="$lt_save_ifs"
7912
      ;;
7913
    esac
7914
else
7915
  enable_static=no
7916
fi
7917
 
7918
 
7919
 
7920
 
7921
 
7922
    # Check whether --enable-libsuffix was given.
7923
if test "${enable_libsuffix+set}" = set; then
7924
  enableval=$enable_libsuffix; kdelibsuff=$enableval
7925
else
7926
  kdelibsuff="auto"
7927
fi
7928
 
7929
 
7930
    if test "$kdelibsuff" = "auto"; then
7931
 
7932
cat > conftest.c << EOF
7933
#include <stdio.h>
7934
int main() {
7935
 return 0;
7936
}
7937
EOF
7938
        kdelibsuff=`$CC conftest.c -o conftest.out; ldd conftest.out |sed -ne '/libc.so/{
7939
    s,.*/lib\([^\/]*\)/.*,\1,
7940
    p
7941
}'`
7942
	rm -rf conftest.*
7943
    fi
7944
 
7945
    if test "$kdelibsuff" = "no" || test "$kdelibsuff" = "none"; then
7946
       kdelibsuff=
7947
    fi
7948
    if test -z "$kdelibsuff"; then
216 andreas 7949
        { $as_echo "$as_me:$LINENO: result: not using lib directory suffix" >&5
7950
$as_echo "not using lib directory suffix" >&6; }
88 andreas 7951
 
7952
cat >>confdefs.h <<\_ACEOF
7953
#define KDELIBSUFF ""
7954
_ACEOF
7955
 
7956
    else
7957
        if test "$libdir" = '${exec_prefix}/lib'; then
7958
            libdir="$libdir${kdelibsuff}"
7959
            libdir="$libdir"
7960
          fi
7961
 
7962
cat >>confdefs.h <<_ACEOF
7963
#define KDELIBSUFF "${kdelibsuff}"
7964
_ACEOF
7965
 
216 andreas 7966
        { $as_echo "$as_me:$LINENO: result: using lib directory suffix $kdelibsuff" >&5
7967
$as_echo "using lib directory suffix $kdelibsuff" >&6; }
88 andreas 7968
    fi
7969
 
7970
# Check whether --enable-fast-install was given.
7971
if test "${enable_fast_install+set}" = set; then
7972
  enableval=$enable_fast_install; p=${PACKAGE-default}
7973
    case $enableval in
7974
    yes) enable_fast_install=yes ;;
7975
    no) enable_fast_install=no ;;
7976
    *)
7977
      enable_fast_install=no
7978
      # Look at the argument we got.  We use all the common list separators.
7979
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7980
      for pkg in $enableval; do
7981
	IFS="$lt_save_ifs"
7982
	if test "X$pkg" = "X$p"; then
7983
	  enable_fast_install=yes
7984
	fi
7985
      done
7986
      IFS="$lt_save_ifs"
7987
      ;;
7988
    esac
7989
else
7990
  enable_fast_install=yes
7991
fi
7992
 
7993
 
216 andreas 7994
{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
7995
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
88 andreas 7996
if test "${lt_cv_path_SED+set}" = set; then
216 andreas 7997
  $as_echo_n "(cached) " >&6
88 andreas 7998
else
7999
  # Loop through the user's path and test for sed and gsed.
8000
# Then use that list of sed's as ones to test for truncation.
8001
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8002
for as_dir in $PATH
8003
do
8004
  IFS=$as_save_IFS
8005
  test -z "$as_dir" && as_dir=.
8006
  for lt_ac_prog in sed gsed; do
8007
    for ac_exec_ext in '' $ac_executable_extensions; do
8008
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
8009
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
8010
      fi
8011
    done
8012
  done
8013
done
8014
lt_ac_max=0
8015
lt_ac_count=0
8016
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
8017
# along with /bin/sed that truncates output.
8018
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
8019
  test ! -f $lt_ac_sed && break
8020
  cat /dev/null > conftest.in
8021
  lt_ac_count=0
8022
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
8023
  # Check for GNU sed and select it if it is found.
8024
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
8025
    lt_cv_path_SED=$lt_ac_sed
8026
    break
8027
  fi
8028
  while true; do
8029
    cat conftest.in conftest.in >conftest.tmp
8030
    mv conftest.tmp conftest.in
8031
    cp conftest.in conftest.nl
8032
    echo >>conftest.nl
8033
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
8034
    cmp -s conftest.out conftest.nl || break
8035
    # 10000 chars as input seems more than enough
8036
    test $lt_ac_count -gt 10 && break
8037
    lt_ac_count=`expr $lt_ac_count + 1`
8038
    if test $lt_ac_count -gt $lt_ac_max; then
8039
      lt_ac_max=$lt_ac_count
8040
      lt_cv_path_SED=$lt_ac_sed
8041
    fi
8042
  done
8043
done
8044
 
8045
fi
8046
 
8047
SED=$lt_cv_path_SED
216 andreas 8048
{ $as_echo "$as_me:$LINENO: result: $SED" >&5
8049
$as_echo "$SED" >&6; }
88 andreas 8050
 
216 andreas 8051
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
8052
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
88 andreas 8053
if test "${ac_cv_path_GREP+set}" = set; then
216 andreas 8054
  $as_echo_n "(cached) " >&6
88 andreas 8055
else
216 andreas 8056
  if test -z "$GREP"; then
88 andreas 8057
  ac_path_GREP_found=false
216 andreas 8058
  # Loop through the user's path and test for each of PROGNAME-LIST
8059
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
88 andreas 8060
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8061
do
8062
  IFS=$as_save_IFS
8063
  test -z "$as_dir" && as_dir=.
8064
  for ac_prog in grep ggrep; do
216 andreas 8065
    for ac_exec_ext in '' $ac_executable_extensions; do
8066
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
8067
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
8068
# Check for GNU ac_path_GREP and select it if it is found.
88 andreas 8069
  # Check for GNU $ac_path_GREP
8070
case `"$ac_path_GREP" --version 2>&1` in
8071
*GNU*)
8072
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
8073
*)
8074
  ac_count=0
216 andreas 8075
  $as_echo_n 0123456789 >"conftest.in"
88 andreas 8076
  while :
8077
  do
8078
    cat "conftest.in" "conftest.in" >"conftest.tmp"
8079
    mv "conftest.tmp" "conftest.in"
8080
    cp "conftest.in" "conftest.nl"
216 andreas 8081
    $as_echo 'GREP' >> "conftest.nl"
88 andreas 8082
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8083
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8084
    ac_count=`expr $ac_count + 1`
8085
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
8086
      # Best one so far, save it but keep looking for a better one
8087
      ac_cv_path_GREP="$ac_path_GREP"
8088
      ac_path_GREP_max=$ac_count
8089
    fi
8090
    # 10*(2^10) chars as input seems more than enough
8091
    test $ac_count -gt 10 && break
8092
  done
8093
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8094
esac
8095
 
216 andreas 8096
      $ac_path_GREP_found && break 3
8097
    done
88 andreas 8098
  done
8099
done
8100
IFS=$as_save_IFS
216 andreas 8101
  if test -z "$ac_cv_path_GREP"; then
8102
    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8103
$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
88 andreas 8104
   { (exit 1); exit 1; }; }
216 andreas 8105
  fi
88 andreas 8106
else
8107
  ac_cv_path_GREP=$GREP
8108
fi
8109
 
8110
fi
216 andreas 8111
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
8112
$as_echo "$ac_cv_path_GREP" >&6; }
88 andreas 8113
 GREP="$ac_cv_path_GREP"
8114
 
8115
 
216 andreas 8116
{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
8117
$as_echo_n "checking for egrep... " >&6; }
88 andreas 8118
if test "${ac_cv_path_EGREP+set}" = set; then
216 andreas 8119
  $as_echo_n "(cached) " >&6
88 andreas 8120
else
8121
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
8122
   then ac_cv_path_EGREP="$GREP -E"
8123
   else
216 andreas 8124
     if test -z "$EGREP"; then
88 andreas 8125
  ac_path_EGREP_found=false
216 andreas 8126
  # Loop through the user's path and test for each of PROGNAME-LIST
8127
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
88 andreas 8128
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8129
do
8130
  IFS=$as_save_IFS
8131
  test -z "$as_dir" && as_dir=.
8132
  for ac_prog in egrep; do
216 andreas 8133
    for ac_exec_ext in '' $ac_executable_extensions; do
8134
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
8135
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
8136
# Check for GNU ac_path_EGREP and select it if it is found.
88 andreas 8137
  # Check for GNU $ac_path_EGREP
8138
case `"$ac_path_EGREP" --version 2>&1` in
8139
*GNU*)
8140
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
8141
*)
8142
  ac_count=0
216 andreas 8143
  $as_echo_n 0123456789 >"conftest.in"
88 andreas 8144
  while :
8145
  do
8146
    cat "conftest.in" "conftest.in" >"conftest.tmp"
8147
    mv "conftest.tmp" "conftest.in"
8148
    cp "conftest.in" "conftest.nl"
216 andreas 8149
    $as_echo 'EGREP' >> "conftest.nl"
88 andreas 8150
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8151
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8152
    ac_count=`expr $ac_count + 1`
8153
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
8154
      # Best one so far, save it but keep looking for a better one
8155
      ac_cv_path_EGREP="$ac_path_EGREP"
8156
      ac_path_EGREP_max=$ac_count
8157
    fi
8158
    # 10*(2^10) chars as input seems more than enough
8159
    test $ac_count -gt 10 && break
8160
  done
8161
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8162
esac
8163
 
216 andreas 8164
      $ac_path_EGREP_found && break 3
8165
    done
88 andreas 8166
  done
8167
done
8168
IFS=$as_save_IFS
216 andreas 8169
  if test -z "$ac_cv_path_EGREP"; then
8170
    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8171
$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
88 andreas 8172
   { (exit 1); exit 1; }; }
216 andreas 8173
  fi
88 andreas 8174
else
8175
  ac_cv_path_EGREP=$EGREP
8176
fi
8177
 
8178
   fi
8179
fi
216 andreas 8180
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
8181
$as_echo "$ac_cv_path_EGREP" >&6; }
88 andreas 8182
 EGREP="$ac_cv_path_EGREP"
8183
 
8184
 
8185
 
8186
# Check whether --with-gnu-ld was given.
8187
if test "${with_gnu_ld+set}" = set; then
8188
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8189
else
8190
  with_gnu_ld=no
8191
fi
8192
 
8193
ac_prog=ld
8194
if test "$GCC" = yes; then
8195
  # Check if gcc -print-prog-name=ld gives a path.
216 andreas 8196
  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
8197
$as_echo_n "checking for ld used by $CC... " >&6; }
88 andreas 8198
  case $host in
8199
  *-*-mingw*)
8200
    # gcc leaves a trailing carriage return which upsets mingw
8201
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8202
  *)
8203
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8204
  esac
8205
  case $ac_prog in
8206
    # Accept absolute paths.
8207
    [\\/]* | ?:[\\/]*)
8208
      re_direlt='/[^/][^/]*/\.\./'
8209
      # Canonicalize the pathname of ld
8210
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
8211
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8212
	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
8213
      done
8214
      test -z "$LD" && LD="$ac_prog"
8215
      ;;
8216
  "")
8217
    # If it fails, then pretend we aren't using GCC.
8218
    ac_prog=ld
8219
    ;;
8220
  *)
8221
    # If it is relative, then search for the first ld in PATH.
8222
    with_gnu_ld=unknown
8223
    ;;
8224
  esac
8225
elif test "$with_gnu_ld" = yes; then
216 andreas 8226
  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
8227
$as_echo_n "checking for GNU ld... " >&6; }
88 andreas 8228
else
216 andreas 8229
  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8230
$as_echo_n "checking for non-GNU ld... " >&6; }
88 andreas 8231
fi
8232
if test "${lt_cv_path_LD+set}" = set; then
216 andreas 8233
  $as_echo_n "(cached) " >&6
88 andreas 8234
else
8235
  if test -z "$LD"; then
8236
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8237
  for ac_dir in $PATH; do
8238
    IFS="$lt_save_ifs"
8239
    test -z "$ac_dir" && ac_dir=.
8240
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8241
      lt_cv_path_LD="$ac_dir/$ac_prog"
8242
      # Check to see if the program is GNU ld.  I'd rather use --version,
8243
      # but apparently some GNU ld's only accept -v.
8244
      # Break only if it was the GNU/non-GNU ld that we prefer.
8245
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8246
      *GNU* | *'with BFD'*)
8247
	test "$with_gnu_ld" != no && break
8248
	;;
8249
      *)
8250
	test "$with_gnu_ld" != yes && break
8251
	;;
8252
      esac
8253
    fi
8254
  done
8255
  IFS="$lt_save_ifs"
8256
else
8257
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
8258
fi
8259
fi
8260
 
8261
LD="$lt_cv_path_LD"
8262
if test -n "$LD"; then
216 andreas 8263
  { $as_echo "$as_me:$LINENO: result: $LD" >&5
8264
$as_echo "$LD" >&6; }
88 andreas 8265
else
216 andreas 8266
  { $as_echo "$as_me:$LINENO: result: no" >&5
8267
$as_echo "no" >&6; }
88 andreas 8268
fi
216 andreas 8269
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8270
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
88 andreas 8271
   { (exit 1); exit 1; }; }
216 andreas 8272
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8273
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
88 andreas 8274
if test "${lt_cv_prog_gnu_ld+set}" = set; then
216 andreas 8275
  $as_echo_n "(cached) " >&6
88 andreas 8276
else
8277
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8278
case `$LD -v 2>&1 </dev/null` in
8279
*GNU* | *'with BFD'*)
8280
  lt_cv_prog_gnu_ld=yes
8281
  ;;
8282
*)
8283
  lt_cv_prog_gnu_ld=no
8284
  ;;
8285
esac
8286
fi
216 andreas 8287
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
8288
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
88 andreas 8289
with_gnu_ld=$lt_cv_prog_gnu_ld
8290
 
8291
 
216 andreas 8292
{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
8293
$as_echo_n "checking for $LD option to reload object files... " >&6; }
88 andreas 8294
if test "${lt_cv_ld_reload_flag+set}" = set; then
216 andreas 8295
  $as_echo_n "(cached) " >&6
88 andreas 8296
else
8297
  lt_cv_ld_reload_flag='-r'
8298
fi
216 andreas 8299
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
8300
$as_echo "$lt_cv_ld_reload_flag" >&6; }
88 andreas 8301
reload_flag=$lt_cv_ld_reload_flag
8302
case $reload_flag in
8303
"" | " "*) ;;
8304
*) reload_flag=" $reload_flag" ;;
8305
esac
8306
reload_cmds='$LD$reload_flag -o $output$reload_objs'
8307
 
216 andreas 8308
{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
8309
$as_echo_n "checking for BSD-compatible nm... " >&6; }
88 andreas 8310
if test "${lt_cv_path_NM+set}" = set; then
216 andreas 8311
  $as_echo_n "(cached) " >&6
88 andreas 8312
else
8313
  if test -n "$NM"; then
8314
  # Let the user override the test.
8315
  lt_cv_path_NM="$NM"
8316
else
8317
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8318
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
8319
    IFS="$lt_save_ifs"
8320
    test -z "$ac_dir" && ac_dir=.
8321
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
8322
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8323
      # Check to see if the nm accepts a BSD-compat flag.
8324
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
8325
      #   nm: unknown option "B" ignored
8326
      # Tru64's nm complains that /dev/null is an invalid object file
8327
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8328
      */dev/null* | *'Invalid file or object type'*)
8329
	lt_cv_path_NM="$tmp_nm -B"
8330
	break
8331
        ;;
8332
      *)
8333
	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8334
	*/dev/null*)
8335
	  lt_cv_path_NM="$tmp_nm -p"
8336
	  break
8337
	  ;;
8338
	*)
8339
	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8340
	  continue # so that we can try to find one that supports BSD flags
8341
	  ;;
8342
	esac
8343
      esac
8344
    fi
8345
  done
8346
  IFS="$lt_save_ifs"
8347
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
8348
fi
8349
fi
216 andreas 8350
{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
8351
$as_echo "$lt_cv_path_NM" >&6; }
88 andreas 8352
NM="$lt_cv_path_NM"
8353
 
216 andreas 8354
{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
8355
$as_echo_n "checking whether ln -s works... " >&6; }
88 andreas 8356
LN_S=$as_ln_s
8357
if test "$LN_S" = "ln -s"; then
216 andreas 8358
  { $as_echo "$as_me:$LINENO: result: yes" >&5
8359
$as_echo "yes" >&6; }
88 andreas 8360
else
216 andreas 8361
  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
8362
$as_echo "no, using $LN_S" >&6; }
88 andreas 8363
fi
8364
 
216 andreas 8365
{ $as_echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
8366
$as_echo_n "checking how to recognise dependent libraries... " >&6; }
88 andreas 8367
if test "${lt_cv_deplibs_check_method+set}" = set; then
216 andreas 8368
  $as_echo_n "(cached) " >&6
88 andreas 8369
else
8370
  lt_cv_file_magic_cmd='$MAGIC_CMD'
8371
lt_cv_file_magic_test_file=
8372
lt_cv_deplibs_check_method='unknown'
8373
# Need to set the preceding variable on all platforms that support
8374
# interlibrary dependencies.
8375
# 'none' -- dependencies not supported.
8376
# `unknown' -- same as none, but documents that we really don't know.
8377
# 'pass_all' -- all dependencies passed with no checks.
8378
# 'test_compile' -- check by making test program.
8379
# 'file_magic [[regex]]' -- check by looking for files in library path
8380
# which responds to the $file_magic_cmd with a given extended regex.
8381
# If you have `file' or equivalent on your system and you're not sure
8382
# whether `pass_all' will *always* work, you probably want this one.
8383
 
8384
case $host_os in
8385
aix4* | aix5*)
8386
  lt_cv_deplibs_check_method=pass_all
8387
  ;;
8388
 
8389
beos*)
8390
  lt_cv_deplibs_check_method=pass_all
8391
  ;;
8392
 
8393
bsdi4*)
8394
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8395
  lt_cv_file_magic_cmd='/usr/bin/file -L'
8396
  lt_cv_file_magic_test_file=/shlib/libc.so
8397
  ;;
8398
 
8399
cygwin*)
8400
  lt_cv_deplibs_check_method=pass_all
8401
  ;;
8402
 
8403
mingw* | pw32*)
8404
  # win32_libid is a shell function defined in ltmain.sh
8405
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8406
  lt_cv_file_magic_cmd='win32_libid'
8407
  ;;
8408
 
8409
darwin* | rhapsody*)
8410
  # this will be overwritten by pass_all, but leave it in just in case
8411
  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
8412
  lt_cv_file_magic_cmd='/usr/bin/file -L'
8413
  case "$host_os" in
8414
  rhapsody* | darwin1.[012])
8415
    lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
8416
    ;;
8417
  *) # Darwin 1.3 on
8418
    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
8419
    ;;
8420
  esac
8421
  lt_cv_deplibs_check_method=pass_all
8422
  ;;
8423
 
8424
freebsd* | kfreebsd*-gnu)
8425
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
8426
    case $host_cpu in
8427
    i*86 )
8428
      # Not sure whether the presence of OpenBSD here was a mistake.
8429
      # Let's accept both of them until this is cleared up.
8430
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
8431
      lt_cv_file_magic_cmd=/usr/bin/file
8432
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8433
      ;;
8434
    esac
8435
  else
8436
    lt_cv_deplibs_check_method=pass_all
8437
  fi
8438
  ;;
8439
 
8440
gnu*)
8441
  lt_cv_deplibs_check_method=pass_all
8442
  ;;
8443
 
8444
hpux10.20* | hpux11*)
8445
  lt_cv_file_magic_cmd=/usr/bin/file
8446
  case "$host_cpu" in
8447
  ia64*)
8448
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8449
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8450
    ;;
8451
  hppa*64*)
8452
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
8453
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8454
    ;;
8455
  *)
8456
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
8457
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
8458
    ;;
8459
  esac
8460
  ;;
8461
 
8462
irix5* | irix6* | nonstopux*)
8463
  case $host_os in
8464
  irix5* | nonstopux*)
8465
    # this will be overridden with pass_all, but let us keep it just in case
8466
    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
8467
    ;;
8468
  *)
8469
    case $LD in
8470
    *-32|*"-32 ") libmagic=32-bit;;
8471
    *-n32|*"-n32 ") libmagic=N32;;
8472
    *-64|*"-64 ") libmagic=64-bit;;
8473
    *) libmagic=never-match;;
8474
    esac
8475
    # this will be overridden with pass_all, but let us keep it just in case
8476
    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
8477
    ;;
8478
  esac
8479
  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
8480
  lt_cv_deplibs_check_method=pass_all
8481
  ;;
8482
 
8483
# This must be Linux ELF.
8484
linux*)
8485
  case $host_cpu in
8486
  alpha* | hppa* | i*86 | ia64* | m68* | mips* | powerpc* | sparc* | s390* | sh* | x86_64* )
8487
    lt_cv_deplibs_check_method=pass_all ;;
8488
  # the debian people say, arm and glibc 2.3.1 works for them with pass_all
8489
  arm* )
8490
    lt_cv_deplibs_check_method=pass_all ;;
8491
  *)
8492
    # glibc up to 2.1.1 does not perform some relocations on ARM
8493
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
8494
  esac
8495
  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
8496
  ;;
8497
 
8498
netbsd*)
8499
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
8500
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8501
  else
8502
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8503
  fi
8504
  ;;
8505
 
8506
newos6*)
8507
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8508
  lt_cv_file_magic_cmd=/usr/bin/file
8509
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
8510
  ;;
8511
 
8512
nto-qnx*)
8513
  lt_cv_deplibs_check_method=unknown
8514
  ;;
8515
 
8516
openbsd*)
8517
  lt_cv_file_magic_cmd=/usr/bin/file
8518
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8519
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8520
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
8521
  else
8522
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
8523
  fi
8524
  ;;
8525
 
8526
osf3* | osf4* | osf5*)
8527
  # this will be overridden with pass_all, but let us keep it just in case
8528
  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
8529
  lt_cv_file_magic_test_file=/shlib/libc.so
8530
  lt_cv_deplibs_check_method=pass_all
8531
  ;;
8532
 
8533
sco3.2v5*)
8534
  lt_cv_deplibs_check_method=pass_all
8535
  ;;
8536
 
8537
solaris*)
8538
  lt_cv_deplibs_check_method=pass_all
8539
  lt_cv_file_magic_test_file=/lib/libc.so
8540
  ;;
8541
 
8542
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8543
  case $host_vendor in
8544
  motorola)
8545
    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]'
8546
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8547
    ;;
8548
  ncr)
8549
    lt_cv_deplibs_check_method=pass_all
8550
    ;;
8551
  sequent)
8552
    lt_cv_file_magic_cmd='/bin/file'
8553
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8554
    ;;
8555
  sni)
8556
    lt_cv_file_magic_cmd='/bin/file'
8557
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8558
    lt_cv_file_magic_test_file=/lib/libc.so
8559
    ;;
8560
  siemens)
8561
    lt_cv_deplibs_check_method=pass_all
8562
    ;;
8563
  esac
8564
  ;;
8565
 
8566
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
8567
  lt_cv_deplibs_check_method=pass_all
8568
  ;;
8569
esac
8570
 
8571
fi
216 andreas 8572
{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
8573
$as_echo "$lt_cv_deplibs_check_method" >&6; }
88 andreas 8574
file_magic_cmd=$lt_cv_file_magic_cmd
8575
deplibs_check_method=$lt_cv_deplibs_check_method
8576
test -z "$deplibs_check_method" && deplibs_check_method=unknown
8577
 
8578
 
8579
# If no C compiler was specified, use CC.
8580
LTCC=${LTCC-"$CC"}
8581
 
8582
# Allow CC to be a program name with arguments.
8583
compiler=$CC
8584
 
8585
# Check whether --enable-libtool-lock was given.
8586
if test "${enable_libtool_lock+set}" = set; then
8587
  enableval=$enable_libtool_lock;
8588
fi
8589
 
8590
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8591
 
8592
# Some flags need to be propagated to the compiler or linker for good
8593
# libtool support.
8594
case $host in
8595
ia64-*-hpux*)
8596
  # Find out which ABI we are using.
8597
  echo 'int i;' > conftest.$ac_ext
8598
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8599
  (eval $ac_compile) 2>&5
8600
  ac_status=$?
216 andreas 8601
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 8602
  (exit $ac_status); }; then
8603
    case `/usr/bin/file conftest.$ac_objext` in
8604
    *ELF-32*)
8605
      HPUX_IA64_MODE="32"
8606
      ;;
8607
    *ELF-64*)
8608
      HPUX_IA64_MODE="64"
8609
      ;;
8610
    esac
8611
  fi
8612
  rm -rf conftest*
8613
  ;;
8614
*-*-irix6*)
8615
  # Find out which ABI we are using.
216 andreas 8616
  echo '#line 8616 "configure"' > conftest.$ac_ext
88 andreas 8617
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8618
  (eval $ac_compile) 2>&5
8619
  ac_status=$?
216 andreas 8620
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 8621
  (exit $ac_status); }; then
8622
   if test "$lt_cv_prog_gnu_ld" = yes; then
8623
    case `/usr/bin/file conftest.$ac_objext` in
8624
    *32-bit*)
8625
      LD="${LD-ld} -melf32bsmip"
8626
      ;;
8627
    *N32*)
8628
      LD="${LD-ld} -melf32bmipn32"
8629
      ;;
8630
    *64-bit*)
8631
      LD="${LD-ld} -melf64bmip"
8632
      ;;
8633
    esac
8634
   else
8635
    case `/usr/bin/file conftest.$ac_objext` in
8636
    *32-bit*)
8637
      LD="${LD-ld} -32"
8638
      ;;
8639
    *N32*)
8640
      LD="${LD-ld} -n32"
8641
      ;;
8642
    *64-bit*)
8643
      LD="${LD-ld} -64"
8644
      ;;
8645
    esac
8646
   fi
8647
  fi
8648
  rm -rf conftest*
8649
  ;;
8650
 
8651
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
8652
  # Find out which ABI we are using.
8653
  echo 'int i;' > conftest.$ac_ext
8654
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8655
  (eval $ac_compile) 2>&5
8656
  ac_status=$?
216 andreas 8657
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 8658
  (exit $ac_status); }; then
8659
    case "`/usr/bin/file conftest.o`" in
8660
    *32-bit*)
8661
      LINUX_64_MODE="32"
8662
      case $host in
8663
        x86_64-*linux*)
8664
          LD="${LD-ld} -m elf_i386"
8665
          ;;
8666
        ppc64-*linux*)
8667
          LD="${LD-ld} -m elf32ppclinux"
8668
          ;;
8669
        s390x-*linux*)
8670
          LD="${LD-ld} -m elf_s390"
8671
          ;;
8672
        sparc64-*linux*)
8673
          LD="${LD-ld} -m elf32_sparc"
8674
          ;;
8675
      esac
8676
      ;;
8677
    *64-bit*)
8678
      LINUX_64_MODE="64"
8679
      case $host in
8680
        x86_64-*linux*)
8681
          LD="${LD-ld} -m elf_x86_64"
8682
          ;;
8683
        ppc*-*linux*|powerpc*-*linux*)
8684
          LD="${LD-ld} -m elf64ppc"
8685
          ;;
8686
        s390*-*linux*)
8687
          LD="${LD-ld} -m elf64_s390"
8688
          ;;
8689
        sparc*-*linux*)
8690
          LD="${LD-ld} -m elf64_sparc"
8691
          ;;
8692
      esac
8693
      ;;
8694
    esac
8695
  fi
8696
  rm -rf conftest*
8697
  ;;
8698
 
8699
*-*-sco3.2v5*)
8700
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8701
  SAVE_CFLAGS="$CFLAGS"
8702
  CFLAGS="$CFLAGS -belf"
216 andreas 8703
  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
8704
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
88 andreas 8705
if test "${lt_cv_cc_needs_belf+set}" = set; then
216 andreas 8706
  $as_echo_n "(cached) " >&6
88 andreas 8707
else
8708
  ac_ext=c
8709
ac_cpp='$CPP $CPPFLAGS'
8710
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8711
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8712
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8713
 
8714
     cat >conftest.$ac_ext <<_ACEOF
8715
/* confdefs.h.  */
8716
_ACEOF
8717
cat confdefs.h >>conftest.$ac_ext
8718
cat >>conftest.$ac_ext <<_ACEOF
8719
/* end confdefs.h.  */
8720
 
8721
int
8722
main ()
8723
{
8724
 
8725
  ;
8726
  return 0;
8727
}
8728
_ACEOF
8729
rm -f conftest.$ac_objext conftest$ac_exeext
8730
if { (ac_try="$ac_link"
8731
case "(($ac_try" in
8732
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8733
  *) ac_try_echo=$ac_try;;
8734
esac
216 andreas 8735
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8736
$as_echo "$ac_try_echo") >&5
88 andreas 8737
  (eval "$ac_link") 2>conftest.er1
8738
  ac_status=$?
8739
  grep -v '^ *+' conftest.er1 >conftest.err
8740
  rm -f conftest.er1
8741
  cat conftest.err >&5
216 andreas 8742
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 8743
  (exit $ac_status); } && {
8744
	 test -z "$ac_c_werror_flag" ||
8745
	 test ! -s conftest.err
216 andreas 8746
       } && test -s conftest$ac_exeext && {
8747
	 test "$cross_compiling" = yes ||
8748
	 $as_test_x conftest$ac_exeext
8749
       }; then
88 andreas 8750
  lt_cv_cc_needs_belf=yes
8751
else
216 andreas 8752
  $as_echo "$as_me: failed program was:" >&5
88 andreas 8753
sed 's/^/| /' conftest.$ac_ext >&5
8754
 
8755
	lt_cv_cc_needs_belf=no
8756
fi
8757
 
216 andreas 8758
rm -rf conftest.dSYM
88 andreas 8759
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8760
      conftest$ac_exeext conftest.$ac_ext
8761
     ac_ext=c
8762
ac_cpp='$CPP $CPPFLAGS'
8763
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8764
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8765
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8766
 
8767
fi
216 andreas 8768
{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
8769
$as_echo "$lt_cv_cc_needs_belf" >&6; }
88 andreas 8770
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8771
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8772
    CFLAGS="$SAVE_CFLAGS"
8773
  fi
8774
  ;;
8775
 
8776
esac
8777
 
8778
need_locks="$enable_libtool_lock"
8779
 
8780
 
8781
 
216 andreas 8782
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8783
$as_echo_n "checking for ANSI C header files... " >&6; }
88 andreas 8784
if test "${ac_cv_header_stdc+set}" = set; then
216 andreas 8785
  $as_echo_n "(cached) " >&6
88 andreas 8786
else
8787
  cat >conftest.$ac_ext <<_ACEOF
8788
/* confdefs.h.  */
8789
_ACEOF
8790
cat confdefs.h >>conftest.$ac_ext
8791
cat >>conftest.$ac_ext <<_ACEOF
8792
/* end confdefs.h.  */
8793
#include <stdlib.h>
8794
#include <stdarg.h>
8795
#include <string.h>
8796
#include <float.h>
8797
 
8798
int
8799
main ()
8800
{
8801
 
8802
  ;
8803
  return 0;
8804
}
8805
_ACEOF
8806
rm -f conftest.$ac_objext
8807
if { (ac_try="$ac_compile"
8808
case "(($ac_try" in
8809
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8810
  *) ac_try_echo=$ac_try;;
8811
esac
216 andreas 8812
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8813
$as_echo "$ac_try_echo") >&5
88 andreas 8814
  (eval "$ac_compile") 2>conftest.er1
8815
  ac_status=$?
8816
  grep -v '^ *+' conftest.er1 >conftest.err
8817
  rm -f conftest.er1
8818
  cat conftest.err >&5
216 andreas 8819
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 8820
  (exit $ac_status); } && {
8821
	 test -z "$ac_c_werror_flag" ||
8822
	 test ! -s conftest.err
8823
       } && test -s conftest.$ac_objext; then
8824
  ac_cv_header_stdc=yes
8825
else
216 andreas 8826
  $as_echo "$as_me: failed program was:" >&5
88 andreas 8827
sed 's/^/| /' conftest.$ac_ext >&5
8828
 
8829
	ac_cv_header_stdc=no
8830
fi
8831
 
8832
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8833
 
8834
if test $ac_cv_header_stdc = yes; then
8835
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8836
  cat >conftest.$ac_ext <<_ACEOF
8837
/* confdefs.h.  */
8838
_ACEOF
8839
cat confdefs.h >>conftest.$ac_ext
8840
cat >>conftest.$ac_ext <<_ACEOF
8841
/* end confdefs.h.  */
8842
#include <string.h>
8843
 
8844
_ACEOF
8845
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8846
  $EGREP "memchr" >/dev/null 2>&1; then
8847
  :
8848
else
8849
  ac_cv_header_stdc=no
8850
fi
8851
rm -f conftest*
8852
 
8853
fi
8854
 
8855
if test $ac_cv_header_stdc = yes; then
8856
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8857
  cat >conftest.$ac_ext <<_ACEOF
8858
/* confdefs.h.  */
8859
_ACEOF
8860
cat confdefs.h >>conftest.$ac_ext
8861
cat >>conftest.$ac_ext <<_ACEOF
8862
/* end confdefs.h.  */
8863
#include <stdlib.h>
8864
 
8865
_ACEOF
8866
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8867
  $EGREP "free" >/dev/null 2>&1; then
8868
  :
8869
else
8870
  ac_cv_header_stdc=no
8871
fi
8872
rm -f conftest*
8873
 
8874
fi
8875
 
8876
if test $ac_cv_header_stdc = yes; then
8877
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8878
  if test "$cross_compiling" = yes; then
8879
  :
8880
else
8881
  cat >conftest.$ac_ext <<_ACEOF
8882
/* confdefs.h.  */
8883
_ACEOF
8884
cat confdefs.h >>conftest.$ac_ext
8885
cat >>conftest.$ac_ext <<_ACEOF
8886
/* end confdefs.h.  */
8887
#include <ctype.h>
8888
#include <stdlib.h>
8889
#if ((' ' & 0x0FF) == 0x020)
8890
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8891
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8892
#else
8893
# define ISLOWER(c) \
8894
		   (('a' <= (c) && (c) <= 'i') \
8895
		     || ('j' <= (c) && (c) <= 'r') \
8896
		     || ('s' <= (c) && (c) <= 'z'))
8897
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8898
#endif
8899
 
8900
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8901
int
8902
main ()
8903
{
8904
  int i;
8905
  for (i = 0; i < 256; i++)
8906
    if (XOR (islower (i), ISLOWER (i))
8907
	|| toupper (i) != TOUPPER (i))
8908
      return 2;
8909
  return 0;
8910
}
8911
_ACEOF
8912
rm -f conftest$ac_exeext
8913
if { (ac_try="$ac_link"
8914
case "(($ac_try" in
8915
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8916
  *) ac_try_echo=$ac_try;;
8917
esac
216 andreas 8918
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8919
$as_echo "$ac_try_echo") >&5
88 andreas 8920
  (eval "$ac_link") 2>&5
8921
  ac_status=$?
216 andreas 8922
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 8923
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8924
  { (case "(($ac_try" in
8925
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8926
  *) ac_try_echo=$ac_try;;
8927
esac
216 andreas 8928
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8929
$as_echo "$ac_try_echo") >&5
88 andreas 8930
  (eval "$ac_try") 2>&5
8931
  ac_status=$?
216 andreas 8932
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 8933
  (exit $ac_status); }; }; then
8934
  :
8935
else
216 andreas 8936
  $as_echo "$as_me: program exited with status $ac_status" >&5
8937
$as_echo "$as_me: failed program was:" >&5
88 andreas 8938
sed 's/^/| /' conftest.$ac_ext >&5
8939
 
8940
( exit $ac_status )
8941
ac_cv_header_stdc=no
8942
fi
216 andreas 8943
rm -rf conftest.dSYM
88 andreas 8944
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8945
fi
8946
 
8947
 
8948
fi
8949
fi
216 andreas 8950
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8951
$as_echo "$ac_cv_header_stdc" >&6; }
88 andreas 8952
if test $ac_cv_header_stdc = yes; then
8953
 
8954
cat >>confdefs.h <<\_ACEOF
8955
#define STDC_HEADERS 1
8956
_ACEOF
8957
 
8958
fi
8959
 
8960
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8961
 
8962
 
8963
 
8964
 
8965
 
8966
 
8967
 
8968
 
8969
 
8970
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8971
		  inttypes.h stdint.h unistd.h
8972
do
216 andreas 8973
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8974
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8975
$as_echo_n "checking for $ac_header... " >&6; }
88 andreas 8976
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
216 andreas 8977
  $as_echo_n "(cached) " >&6
88 andreas 8978
else
8979
  cat >conftest.$ac_ext <<_ACEOF
8980
/* confdefs.h.  */
8981
_ACEOF
8982
cat confdefs.h >>conftest.$ac_ext
8983
cat >>conftest.$ac_ext <<_ACEOF
8984
/* end confdefs.h.  */
8985
$ac_includes_default
8986
 
8987
#include <$ac_header>
8988
_ACEOF
8989
rm -f conftest.$ac_objext
8990
if { (ac_try="$ac_compile"
8991
case "(($ac_try" in
8992
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8993
  *) ac_try_echo=$ac_try;;
8994
esac
216 andreas 8995
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8996
$as_echo "$ac_try_echo") >&5
88 andreas 8997
  (eval "$ac_compile") 2>conftest.er1
8998
  ac_status=$?
8999
  grep -v '^ *+' conftest.er1 >conftest.err
9000
  rm -f conftest.er1
9001
  cat conftest.err >&5
216 andreas 9002
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 9003
  (exit $ac_status); } && {
9004
	 test -z "$ac_c_werror_flag" ||
9005
	 test ! -s conftest.err
9006
       } && test -s conftest.$ac_objext; then
9007
  eval "$as_ac_Header=yes"
9008
else
216 andreas 9009
  $as_echo "$as_me: failed program was:" >&5
88 andreas 9010
sed 's/^/| /' conftest.$ac_ext >&5
9011
 
9012
	eval "$as_ac_Header=no"
9013
fi
9014
 
9015
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9016
fi
216 andreas 9017
ac_res=`eval 'as_val=${'$as_ac_Header'}
9018
		 $as_echo "$as_val"'`
9019
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9020
$as_echo "$ac_res" >&6; }
9021
as_val=`eval 'as_val=${'$as_ac_Header'}
9022
		 $as_echo "$as_val"'`
9023
   if test "x$as_val" = x""yes; then
88 andreas 9024
  cat >>confdefs.h <<_ACEOF
216 andreas 9025
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
88 andreas 9026
_ACEOF
9027
 
9028
fi
9029
 
9030
done
9031
 
9032
 
9033
 
9034
for ac_header in dlfcn.h
9035
do
216 andreas 9036
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
88 andreas 9037
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
216 andreas 9038
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9039
$as_echo_n "checking for $ac_header... " >&6; }
88 andreas 9040
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
216 andreas 9041
  $as_echo_n "(cached) " >&6
88 andreas 9042
fi
216 andreas 9043
ac_res=`eval 'as_val=${'$as_ac_Header'}
9044
		 $as_echo "$as_val"'`
9045
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9046
$as_echo "$ac_res" >&6; }
88 andreas 9047
else
9048
  # Is the header compilable?
216 andreas 9049
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9050
$as_echo_n "checking $ac_header usability... " >&6; }
88 andreas 9051
cat >conftest.$ac_ext <<_ACEOF
9052
/* confdefs.h.  */
9053
_ACEOF
9054
cat confdefs.h >>conftest.$ac_ext
9055
cat >>conftest.$ac_ext <<_ACEOF
9056
/* end confdefs.h.  */
9057
$ac_includes_default
9058
#include <$ac_header>
9059
_ACEOF
9060
rm -f conftest.$ac_objext
9061
if { (ac_try="$ac_compile"
9062
case "(($ac_try" in
9063
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9064
  *) ac_try_echo=$ac_try;;
9065
esac
216 andreas 9066
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9067
$as_echo "$ac_try_echo") >&5
88 andreas 9068
  (eval "$ac_compile") 2>conftest.er1
9069
  ac_status=$?
9070
  grep -v '^ *+' conftest.er1 >conftest.err
9071
  rm -f conftest.er1
9072
  cat conftest.err >&5
216 andreas 9073
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 9074
  (exit $ac_status); } && {
9075
	 test -z "$ac_c_werror_flag" ||
9076
	 test ! -s conftest.err
9077
       } && test -s conftest.$ac_objext; then
9078
  ac_header_compiler=yes
9079
else
216 andreas 9080
  $as_echo "$as_me: failed program was:" >&5
88 andreas 9081
sed 's/^/| /' conftest.$ac_ext >&5
9082
 
9083
	ac_header_compiler=no
9084
fi
9085
 
9086
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
216 andreas 9087
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9088
$as_echo "$ac_header_compiler" >&6; }
88 andreas 9089
 
9090
# Is the header present?
216 andreas 9091
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9092
$as_echo_n "checking $ac_header presence... " >&6; }
88 andreas 9093
cat >conftest.$ac_ext <<_ACEOF
9094
/* confdefs.h.  */
9095
_ACEOF
9096
cat confdefs.h >>conftest.$ac_ext
9097
cat >>conftest.$ac_ext <<_ACEOF
9098
/* end confdefs.h.  */
9099
#include <$ac_header>
9100
_ACEOF
9101
if { (ac_try="$ac_cpp conftest.$ac_ext"
9102
case "(($ac_try" in
9103
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9104
  *) ac_try_echo=$ac_try;;
9105
esac
216 andreas 9106
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9107
$as_echo "$ac_try_echo") >&5
88 andreas 9108
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9109
  ac_status=$?
9110
  grep -v '^ *+' conftest.er1 >conftest.err
9111
  rm -f conftest.er1
9112
  cat conftest.err >&5
216 andreas 9113
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 9114
  (exit $ac_status); } >/dev/null && {
9115
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9116
	 test ! -s conftest.err
9117
       }; then
9118
  ac_header_preproc=yes
9119
else
216 andreas 9120
  $as_echo "$as_me: failed program was:" >&5
88 andreas 9121
sed 's/^/| /' conftest.$ac_ext >&5
9122
 
9123
  ac_header_preproc=no
9124
fi
9125
 
9126
rm -f conftest.err conftest.$ac_ext
216 andreas 9127
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9128
$as_echo "$ac_header_preproc" >&6; }
88 andreas 9129
 
9130
# So?  What about this header?
9131
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9132
  yes:no: )
216 andreas 9133
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9134
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9135
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9136
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
88 andreas 9137
    ac_header_preproc=yes
9138
    ;;
9139
  no:yes:* )
216 andreas 9140
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9141
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9142
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9143
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9144
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9145
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9146
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9147
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9148
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9149
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9150
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9151
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
88 andreas 9152
 
9153
    ;;
9154
esac
216 andreas 9155
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9156
$as_echo_n "checking for $ac_header... " >&6; }
88 andreas 9157
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
216 andreas 9158
  $as_echo_n "(cached) " >&6
88 andreas 9159
else
9160
  eval "$as_ac_Header=\$ac_header_preproc"
9161
fi
216 andreas 9162
ac_res=`eval 'as_val=${'$as_ac_Header'}
9163
		 $as_echo "$as_val"'`
9164
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9165
$as_echo "$ac_res" >&6; }
88 andreas 9166
 
9167
fi
216 andreas 9168
as_val=`eval 'as_val=${'$as_ac_Header'}
9169
		 $as_echo "$as_val"'`
9170
   if test "x$as_val" = x""yes; then
88 andreas 9171
  cat >>confdefs.h <<_ACEOF
216 andreas 9172
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
88 andreas 9173
_ACEOF
9174
 
9175
fi
9176
 
9177
done
9178
 
9179
ac_ext=f
9180
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9181
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9182
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9183
if test -n "$ac_tool_prefix"; then
9184
  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
9185
  do
9186
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9187
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
216 andreas 9188
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9189
$as_echo_n "checking for $ac_word... " >&6; }
88 andreas 9190
if test "${ac_cv_prog_F77+set}" = set; then
216 andreas 9191
  $as_echo_n "(cached) " >&6
88 andreas 9192
else
9193
  if test -n "$F77"; then
9194
  ac_cv_prog_F77="$F77" # Let the user override the test.
9195
else
9196
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9197
for as_dir in $PATH
9198
do
9199
  IFS=$as_save_IFS
9200
  test -z "$as_dir" && as_dir=.
9201
  for ac_exec_ext in '' $ac_executable_extensions; do
9202
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9203
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
216 andreas 9204
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
88 andreas 9205
    break 2
9206
  fi
9207
done
9208
done
9209
IFS=$as_save_IFS
9210
 
9211
fi
9212
fi
9213
F77=$ac_cv_prog_F77
9214
if test -n "$F77"; then
216 andreas 9215
  { $as_echo "$as_me:$LINENO: result: $F77" >&5
9216
$as_echo "$F77" >&6; }
88 andreas 9217
else
216 andreas 9218
  { $as_echo "$as_me:$LINENO: result: no" >&5
9219
$as_echo "no" >&6; }
88 andreas 9220
fi
9221
 
9222
 
9223
    test -n "$F77" && break
9224
  done
9225
fi
9226
if test -z "$F77"; then
9227
  ac_ct_F77=$F77
9228
  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
9229
do
9230
  # Extract the first word of "$ac_prog", so it can be a program name with args.
9231
set dummy $ac_prog; ac_word=$2
216 andreas 9232
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9233
$as_echo_n "checking for $ac_word... " >&6; }
88 andreas 9234
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
216 andreas 9235
  $as_echo_n "(cached) " >&6
88 andreas 9236
else
9237
  if test -n "$ac_ct_F77"; then
9238
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
9239
else
9240
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9241
for as_dir in $PATH
9242
do
9243
  IFS=$as_save_IFS
9244
  test -z "$as_dir" && as_dir=.
9245
  for ac_exec_ext in '' $ac_executable_extensions; do
9246
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9247
    ac_cv_prog_ac_ct_F77="$ac_prog"
216 andreas 9248
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
88 andreas 9249
    break 2
9250
  fi
9251
done
9252
done
9253
IFS=$as_save_IFS
9254
 
9255
fi
9256
fi
9257
ac_ct_F77=$ac_cv_prog_ac_ct_F77
9258
if test -n "$ac_ct_F77"; then
216 andreas 9259
  { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
9260
$as_echo "$ac_ct_F77" >&6; }
88 andreas 9261
else
216 andreas 9262
  { $as_echo "$as_me:$LINENO: result: no" >&5
9263
$as_echo "no" >&6; }
88 andreas 9264
fi
9265
 
9266
 
9267
  test -n "$ac_ct_F77" && break
9268
done
9269
 
9270
  if test "x$ac_ct_F77" = x; then
9271
    F77=""
9272
  else
9273
    case $cross_compiling:$ac_tool_warned in
9274
yes:)
216 andreas 9275
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9276
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
88 andreas 9277
ac_tool_warned=yes ;;
9278
esac
9279
    F77=$ac_ct_F77
9280
  fi
9281
fi
9282
 
9283
 
9284
# Provide some information about the compiler.
216 andreas 9285
$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
9286
set X $ac_compile
9287
ac_compiler=$2
88 andreas 9288
{ (ac_try="$ac_compiler --version >&5"
9289
case "(($ac_try" in
9290
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9291
  *) ac_try_echo=$ac_try;;
9292
esac
216 andreas 9293
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9294
$as_echo "$ac_try_echo") >&5
88 andreas 9295
  (eval "$ac_compiler --version >&5") 2>&5
9296
  ac_status=$?
216 andreas 9297
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 9298
  (exit $ac_status); }
9299
{ (ac_try="$ac_compiler -v >&5"
9300
case "(($ac_try" in
9301
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9302
  *) ac_try_echo=$ac_try;;
9303
esac
216 andreas 9304
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9305
$as_echo "$ac_try_echo") >&5
88 andreas 9306
  (eval "$ac_compiler -v >&5") 2>&5
9307
  ac_status=$?
216 andreas 9308
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 9309
  (exit $ac_status); }
9310
{ (ac_try="$ac_compiler -V >&5"
9311
case "(($ac_try" in
9312
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9313
  *) ac_try_echo=$ac_try;;
9314
esac
216 andreas 9315
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9316
$as_echo "$ac_try_echo") >&5
88 andreas 9317
  (eval "$ac_compiler -V >&5") 2>&5
9318
  ac_status=$?
216 andreas 9319
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 9320
  (exit $ac_status); }
9321
rm -f a.out
9322
 
9323
# If we don't use `.F' as extension, the preprocessor is not run on the
9324
# input file.  (Note that this only needs to work for GNU compilers.)
9325
ac_save_ext=$ac_ext
9326
ac_ext=F
216 andreas 9327
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
9328
$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
88 andreas 9329
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
216 andreas 9330
  $as_echo_n "(cached) " >&6
88 andreas 9331
else
9332
  cat >conftest.$ac_ext <<_ACEOF
9333
      program main
9334
#ifndef __GNUC__
9335
       choke me
9336
#endif
9337
 
9338
      end
9339
_ACEOF
9340
rm -f conftest.$ac_objext
9341
if { (ac_try="$ac_compile"
9342
case "(($ac_try" in
9343
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9344
  *) ac_try_echo=$ac_try;;
9345
esac
216 andreas 9346
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9347
$as_echo "$ac_try_echo") >&5
88 andreas 9348
  (eval "$ac_compile") 2>conftest.er1
9349
  ac_status=$?
9350
  grep -v '^ *+' conftest.er1 >conftest.err
9351
  rm -f conftest.er1
9352
  cat conftest.err >&5
216 andreas 9353
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 9354
  (exit $ac_status); } && {
9355
	 test -z "$ac_f77_werror_flag" ||
9356
	 test ! -s conftest.err
9357
       } && test -s conftest.$ac_objext; then
9358
  ac_compiler_gnu=yes
9359
else
216 andreas 9360
  $as_echo "$as_me: failed program was:" >&5
88 andreas 9361
sed 's/^/| /' conftest.$ac_ext >&5
9362
 
9363
	ac_compiler_gnu=no
9364
fi
9365
 
9366
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9367
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
9368
 
9369
fi
216 andreas 9370
{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
9371
$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
88 andreas 9372
ac_ext=$ac_save_ext
9373
ac_test_FFLAGS=${FFLAGS+set}
9374
ac_save_FFLAGS=$FFLAGS
9375
FFLAGS=
216 andreas 9376
{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
9377
$as_echo_n "checking whether $F77 accepts -g... " >&6; }
88 andreas 9378
if test "${ac_cv_prog_f77_g+set}" = set; then
216 andreas 9379
  $as_echo_n "(cached) " >&6
88 andreas 9380
else
9381
  FFLAGS=-g
9382
cat >conftest.$ac_ext <<_ACEOF
9383
      program main
9384
 
9385
      end
9386
_ACEOF
9387
rm -f conftest.$ac_objext
9388
if { (ac_try="$ac_compile"
9389
case "(($ac_try" in
9390
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9391
  *) ac_try_echo=$ac_try;;
9392
esac
216 andreas 9393
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9394
$as_echo "$ac_try_echo") >&5
88 andreas 9395
  (eval "$ac_compile") 2>conftest.er1
9396
  ac_status=$?
9397
  grep -v '^ *+' conftest.er1 >conftest.err
9398
  rm -f conftest.er1
9399
  cat conftest.err >&5
216 andreas 9400
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 9401
  (exit $ac_status); } && {
9402
	 test -z "$ac_f77_werror_flag" ||
9403
	 test ! -s conftest.err
9404
       } && test -s conftest.$ac_objext; then
9405
  ac_cv_prog_f77_g=yes
9406
else
216 andreas 9407
  $as_echo "$as_me: failed program was:" >&5
88 andreas 9408
sed 's/^/| /' conftest.$ac_ext >&5
9409
 
9410
	ac_cv_prog_f77_g=no
9411
fi
9412
 
9413
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9414
 
9415
fi
216 andreas 9416
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
9417
$as_echo "$ac_cv_prog_f77_g" >&6; }
88 andreas 9418
if test "$ac_test_FFLAGS" = set; then
9419
  FFLAGS=$ac_save_FFLAGS
9420
elif test $ac_cv_prog_f77_g = yes; then
9421
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
9422
    FFLAGS="-g -O2"
9423
  else
9424
    FFLAGS="-g"
9425
  fi
9426
else
9427
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
9428
    FFLAGS="-O2"
9429
  else
9430
    FFLAGS=
9431
  fi
9432
fi
9433
 
216 andreas 9434
if test $ac_compiler_gnu = yes; then
9435
  G77=yes
9436
else
9437
  G77=
9438
fi
88 andreas 9439
ac_ext=c
9440
ac_cpp='$CPP $CPPFLAGS'
9441
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9442
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9443
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9444
 
9445
 
9446
 
9447
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
9448
 
9449
# find the maximum length of command line arguments
216 andreas 9450
{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
9451
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
88 andreas 9452
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
216 andreas 9453
  $as_echo_n "(cached) " >&6
88 andreas 9454
else
9455
    i=0
9456
  testring="ABCD"
9457
 
9458
  case $build_os in
9459
  msdosdjgpp*)
9460
    # On DJGPP, this test can blow up pretty badly due to problems in libc
9461
    # (any single argument exceeding 2000 bytes causes a buffer overrun
9462
    # during glob expansion).  Even if it were fixed, the result of this
9463
    # check would be larger than it should be.
9464
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
9465
    ;;
9466
 
9467
  gnu*)
9468
    # Under GNU Hurd, this test is not required because there is
9469
    # no limit to the length of command line arguments.
9470
    # Libtool will interpret -1 as no limit whatsoever
9471
    lt_cv_sys_max_cmd_len=-1;
9472
    ;;
9473
 
9474
  cygwin* | mingw*)
9475
    # On Win9x/ME, this test blows up -- it succeeds, but takes
9476
    # about 5 minutes as the teststring grows exponentially.
9477
    # Worse, since 9x/ME are not pre-emptively multitasking,
9478
    # you end up with a "frozen" computer, even though with patience
9479
    # the test eventually succeeds (with a max line length of 256k).
9480
    # Instead, let's just punt: use the minimum linelength reported by
9481
    # all of the supported platforms: 8192 (on NT/2K/XP).
9482
    lt_cv_sys_max_cmd_len=8192;
9483
    ;;
9484
 
9485
 *)
9486
    # If test is not a shell built-in, we'll probably end up computing a
9487
    # maximum length that is only half of the actual maximum length, but
9488
    # we can't tell.
9489
    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
9490
	       = "XX$testring") >/dev/null 2>&1 &&
9491
	    new_result=`expr "X$testring" : ".*" 2>&1` &&
9492
	    lt_cv_sys_max_cmd_len=$new_result &&
9493
	    test $i != 17 # 1/2 MB should be enough
9494
    do
9495
      i=`expr $i + 1`
9496
      testring=$testring$testring
9497
    done
9498
    testring=
9499
    # Add a significant safety factor because C++ compilers can tack on massive
9500
    # amounts of additional arguments before passing them to the linker.
9501
    # It appears as though 1/2 is a usable value.
9502
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9503
    ;;
9504
  esac
9505
 
9506
fi
9507
 
9508
if test -n $lt_cv_sys_max_cmd_len ; then
216 andreas 9509
  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
9510
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
88 andreas 9511
else
216 andreas 9512
  { $as_echo "$as_me:$LINENO: result: none" >&5
9513
$as_echo "none" >&6; }
88 andreas 9514
fi
9515
 
9516
 
9517
 
9518
 
9519
# Check for command to grab the raw symbol name followed by C symbol from nm.
216 andreas 9520
{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9521
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
88 andreas 9522
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
216 andreas 9523
  $as_echo_n "(cached) " >&6
88 andreas 9524
else
9525
 
9526
# These are sane defaults that work on at least a few old systems.
9527
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9528
 
9529
# Character class describing NM global symbol codes.
9530
symcode='[BCDEGRST]'
9531
 
9532
# Regexp to match symbols that can be accessed directly from C.
9533
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9534
 
9535
# Transform the above into a raw symbol and a C symbol.
9536
symxfrm='\1 \2\3 \3'
9537
 
9538
# Transform an extracted symbol line into a proper C declaration
9539
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9540
 
9541
# Transform an extracted symbol line into symbol name and symbol address
9542
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
9543
 
9544
# Define system-specific variables.
9545
case $host_os in
9546
aix*)
9547
  symcode='[BCDT]'
9548
  ;;
9549
cygwin* | mingw* | pw32*)
9550
  symcode='[ABCDGISTW]'
9551
  ;;
9552
hpux*) # Its linker distinguishes data from code symbols
9553
  if test "$host_cpu" = ia64; then
9554
    symcode='[ABCDEGRST]'
9555
  fi
9556
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9557
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
9558
  ;;
9559
irix* | nonstopux*)
9560
  symcode='[BCDEGRST]'
9561
  ;;
9562
osf*)
9563
  symcode='[BCDEGQRST]'
9564
  ;;
9565
solaris* | sysv5*)
9566
  symcode='[BDT]'
9567
  ;;
9568
sysv4)
9569
  symcode='[DFNSTU]'
9570
  ;;
9571
esac
9572
 
9573
# Handle CRLF in mingw tool chain
9574
opt_cr=
9575
case $build_os in
9576
mingw*)
9577
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9578
  ;;
9579
esac
9580
 
9581
# If we're using GNU nm, then use its standard symbol codes.
9582
case `$NM -V 2>&1` in
9583
*GNU* | *'with BFD'*)
9584
  symcode='[ABCDGISTW]' ;;
9585
esac
9586
 
9587
# Try without a prefix undercore, then with it.
9588
for ac_symprfx in "" "_"; do
9589
 
9590
  # Write the raw and C identifiers.
9591
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
9592
 
9593
  # Check to see that the pipe works correctly.
9594
  pipe_works=no
9595
 
9596
  rm -f conftest*
9597
  cat > conftest.$ac_ext <<EOF
9598
#ifdef __cplusplus
9599
extern "C" {
9600
#endif
9601
char nm_test_var;
9602
void nm_test_func(){}
9603
#ifdef __cplusplus
9604
}
9605
#endif
9606
int main(){nm_test_var='a';nm_test_func();return(0);}
9607
EOF
9608
 
9609
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9610
  (eval $ac_compile) 2>&5
9611
  ac_status=$?
216 andreas 9612
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 9613
  (exit $ac_status); }; then
9614
    # Now try to grab the symbols.
9615
    nlist=conftest.nm
9616
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9617
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9618
  ac_status=$?
216 andreas 9619
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 9620
  (exit $ac_status); } && test -s "$nlist"; then
9621
      # Try sorting and uniquifying the output.
9622
      if sort "$nlist" | uniq > "$nlist"T; then
9623
	mv -f "$nlist"T "$nlist"
9624
      else
9625
	rm -f "$nlist"T
9626
      fi
9627
 
9628
      # Make sure that we snagged all the symbols we need.
9629
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
9630
	if grep ' nm_test_func$' "$nlist" >/dev/null; then
9631
	  cat <<EOF > conftest.$ac_ext
9632
#ifdef __cplusplus
9633
extern "C" {
9634
#endif
9635
 
9636
EOF
9637
	  # Now generate the symbol file.
9638
	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9639
 
9640
	  cat <<EOF >> conftest.$ac_ext
9641
#if defined (__STDC__) && __STDC__
9642
# define lt_ptr_t void *
9643
#else
9644
# define lt_ptr_t char *
9645
# define const
9646
#endif
9647
 
9648
/* The mapping between symbol names and symbols. */
9649
const struct {
9650
  const char *name;
9651
  lt_ptr_t address;
9652
}
9653
lt_preloaded_symbols[] =
9654
{
9655
EOF
9656
	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9657
	  cat <<\EOF >> conftest.$ac_ext
9658
  {0, (lt_ptr_t) 0}
9659
};
9660
 
9661
#ifdef __cplusplus
9662
}
9663
#endif
9664
EOF
9665
	  # Now try linking the two files.
9666
	  mv conftest.$ac_objext conftstm.$ac_objext
9667
	  lt_save_LIBS="$LIBS"
9668
	  lt_save_CFLAGS="$CFLAGS"
9669
	  LIBS="conftstm.$ac_objext"
9670
	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9671
	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9672
  (eval $ac_link) 2>&5
9673
  ac_status=$?
216 andreas 9674
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 9675
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
9676
	    pipe_works=yes
9677
	  fi
9678
	  LIBS="$lt_save_LIBS"
9679
	  CFLAGS="$lt_save_CFLAGS"
9680
	else
9681
	  echo "cannot find nm_test_func in $nlist" >&5
9682
	fi
9683
      else
9684
	echo "cannot find nm_test_var in $nlist" >&5
9685
      fi
9686
    else
9687
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9688
    fi
9689
  else
9690
    echo "$progname: failed program was:" >&5
9691
    cat conftest.$ac_ext >&5
9692
  fi
9693
  rm -f conftest* conftst*
9694
 
9695
  # Do not use the global_symbol_pipe unless it works.
9696
  if test "$pipe_works" = yes; then
9697
    break
9698
  else
9699
    lt_cv_sys_global_symbol_pipe=
9700
  fi
9701
done
9702
 
9703
fi
9704
 
9705
if test -z "$lt_cv_sys_global_symbol_pipe"; then
9706
  lt_cv_sys_global_symbol_to_cdecl=
9707
fi
9708
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
216 andreas 9709
  { $as_echo "$as_me:$LINENO: result: failed" >&5
9710
$as_echo "failed" >&6; }
88 andreas 9711
else
216 andreas 9712
  { $as_echo "$as_me:$LINENO: result: ok" >&5
9713
$as_echo "ok" >&6; }
88 andreas 9714
fi
9715
 
216 andreas 9716
{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
9717
$as_echo_n "checking for objdir... " >&6; }
88 andreas 9718
if test "${lt_cv_objdir+set}" = set; then
216 andreas 9719
  $as_echo_n "(cached) " >&6
88 andreas 9720
else
9721
  rm -f .libs 2>/dev/null
9722
mkdir .libs 2>/dev/null
9723
if test -d .libs; then
9724
  lt_cv_objdir=.libs
9725
else
9726
  # MS-DOS does not allow filenames that begin with a dot.
9727
  lt_cv_objdir=_libs
9728
fi
9729
rmdir .libs 2>/dev/null
9730
fi
216 andreas 9731
{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9732
$as_echo "$lt_cv_objdir" >&6; }
88 andreas 9733
objdir=$lt_cv_objdir
9734
 
9735
 
9736
 
9737
 
9738
 
9739
case $host_os in
9740
aix3*)
9741
  # AIX sometimes has problems with the GCC collect2 program.  For some
9742
  # reason, if we set the COLLECT_NAMES environment variable, the problems
9743
  # vanish in a puff of smoke.
9744
  if test "X${COLLECT_NAMES+set}" != Xset; then
9745
    COLLECT_NAMES=
9746
    export COLLECT_NAMES
9747
  fi
9748
  ;;
9749
esac
9750
 
9751
# Sed substitution that helps us do robust quoting.  It backslashifies
9752
# metacharacters that are still active within double-quoted strings.
9753
Xsed='sed -e s/^X//'
9754
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
9755
 
9756
# Same as above, but do not quote variable references.
9757
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
9758
 
9759
# Sed substitution to delay expansion of an escaped shell variable in a
9760
# double_quote_subst'ed string.
9761
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9762
 
9763
# Sed substitution to avoid accidental globbing in evaled expressions
9764
no_glob_subst='s/\*/\\\*/g'
9765
 
9766
# Constants:
9767
rm="rm -f"
9768
 
9769
# Global variables:
9770
default_ofile=libtool
9771
can_build_shared=yes
9772
 
9773
# All known linkers require a `.a' archive for static linking (except M$VC,
9774
# which needs '.lib').
9775
libext=a
9776
ltmain="$ac_aux_dir/ltmain.sh"
9777
ofile="$default_ofile"
9778
with_gnu_ld="$lt_cv_prog_gnu_ld"
9779
 
9780
if test -n "$ac_tool_prefix"; then
9781
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9782
set dummy ${ac_tool_prefix}ar; ac_word=$2
216 andreas 9783
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9784
$as_echo_n "checking for $ac_word... " >&6; }
88 andreas 9785
if test "${ac_cv_prog_AR+set}" = set; then
216 andreas 9786
  $as_echo_n "(cached) " >&6
88 andreas 9787
else
9788
  if test -n "$AR"; then
9789
  ac_cv_prog_AR="$AR" # Let the user override the test.
9790
else
9791
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9792
for as_dir in $PATH
9793
do
9794
  IFS=$as_save_IFS
9795
  test -z "$as_dir" && as_dir=.
9796
  for ac_exec_ext in '' $ac_executable_extensions; do
9797
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9798
    ac_cv_prog_AR="${ac_tool_prefix}ar"
216 andreas 9799
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
88 andreas 9800
    break 2
9801
  fi
9802
done
9803
done
9804
IFS=$as_save_IFS
9805
 
9806
fi
9807
fi
9808
AR=$ac_cv_prog_AR
9809
if test -n "$AR"; then
216 andreas 9810
  { $as_echo "$as_me:$LINENO: result: $AR" >&5
9811
$as_echo "$AR" >&6; }
88 andreas 9812
else
216 andreas 9813
  { $as_echo "$as_me:$LINENO: result: no" >&5
9814
$as_echo "no" >&6; }
88 andreas 9815
fi
9816
 
9817
 
9818
fi
9819
if test -z "$ac_cv_prog_AR"; then
9820
  ac_ct_AR=$AR
9821
  # Extract the first word of "ar", so it can be a program name with args.
9822
set dummy ar; ac_word=$2
216 andreas 9823
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9824
$as_echo_n "checking for $ac_word... " >&6; }
88 andreas 9825
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
216 andreas 9826
  $as_echo_n "(cached) " >&6
88 andreas 9827
else
9828
  if test -n "$ac_ct_AR"; then
9829
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9830
else
9831
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9832
for as_dir in $PATH
9833
do
9834
  IFS=$as_save_IFS
9835
  test -z "$as_dir" && as_dir=.
9836
  for ac_exec_ext in '' $ac_executable_extensions; do
9837
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9838
    ac_cv_prog_ac_ct_AR="ar"
216 andreas 9839
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
88 andreas 9840
    break 2
9841
  fi
9842
done
9843
done
9844
IFS=$as_save_IFS
9845
 
9846
fi
9847
fi
9848
ac_ct_AR=$ac_cv_prog_ac_ct_AR
9849
if test -n "$ac_ct_AR"; then
216 andreas 9850
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
9851
$as_echo "$ac_ct_AR" >&6; }
88 andreas 9852
else
216 andreas 9853
  { $as_echo "$as_me:$LINENO: result: no" >&5
9854
$as_echo "no" >&6; }
88 andreas 9855
fi
9856
 
9857
  if test "x$ac_ct_AR" = x; then
9858
    AR="false"
9859
  else
9860
    case $cross_compiling:$ac_tool_warned in
9861
yes:)
216 andreas 9862
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9863
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
88 andreas 9864
ac_tool_warned=yes ;;
9865
esac
9866
    AR=$ac_ct_AR
9867
  fi
9868
else
9869
  AR="$ac_cv_prog_AR"
9870
fi
9871
 
9872
if test -n "$ac_tool_prefix"; then
9873
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9874
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
216 andreas 9875
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9876
$as_echo_n "checking for $ac_word... " >&6; }
88 andreas 9877
if test "${ac_cv_prog_RANLIB+set}" = set; then
216 andreas 9878
  $as_echo_n "(cached) " >&6
88 andreas 9879
else
9880
  if test -n "$RANLIB"; then
9881
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9882
else
9883
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9884
for as_dir in $PATH
9885
do
9886
  IFS=$as_save_IFS
9887
  test -z "$as_dir" && as_dir=.
9888
  for ac_exec_ext in '' $ac_executable_extensions; do
9889
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9890
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
216 andreas 9891
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
88 andreas 9892
    break 2
9893
  fi
9894
done
9895
done
9896
IFS=$as_save_IFS
9897
 
9898
fi
9899
fi
9900
RANLIB=$ac_cv_prog_RANLIB
9901
if test -n "$RANLIB"; then
216 andreas 9902
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
9903
$as_echo "$RANLIB" >&6; }
88 andreas 9904
else
216 andreas 9905
  { $as_echo "$as_me:$LINENO: result: no" >&5
9906
$as_echo "no" >&6; }
88 andreas 9907
fi
9908
 
9909
 
9910
fi
9911
if test -z "$ac_cv_prog_RANLIB"; then
9912
  ac_ct_RANLIB=$RANLIB
9913
  # Extract the first word of "ranlib", so it can be a program name with args.
9914
set dummy ranlib; ac_word=$2
216 andreas 9915
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9916
$as_echo_n "checking for $ac_word... " >&6; }
88 andreas 9917
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
216 andreas 9918
  $as_echo_n "(cached) " >&6
88 andreas 9919
else
9920
  if test -n "$ac_ct_RANLIB"; then
9921
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9922
else
9923
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9924
for as_dir in $PATH
9925
do
9926
  IFS=$as_save_IFS
9927
  test -z "$as_dir" && as_dir=.
9928
  for ac_exec_ext in '' $ac_executable_extensions; do
9929
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9930
    ac_cv_prog_ac_ct_RANLIB="ranlib"
216 andreas 9931
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
88 andreas 9932
    break 2
9933
  fi
9934
done
9935
done
9936
IFS=$as_save_IFS
9937
 
9938
fi
9939
fi
9940
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9941
if test -n "$ac_ct_RANLIB"; then
216 andreas 9942
  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
9943
$as_echo "$ac_ct_RANLIB" >&6; }
88 andreas 9944
else
216 andreas 9945
  { $as_echo "$as_me:$LINENO: result: no" >&5
9946
$as_echo "no" >&6; }
88 andreas 9947
fi
9948
 
9949
  if test "x$ac_ct_RANLIB" = x; then
9950
    RANLIB=":"
9951
  else
9952
    case $cross_compiling:$ac_tool_warned in
9953
yes:)
216 andreas 9954
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9955
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
88 andreas 9956
ac_tool_warned=yes ;;
9957
esac
9958
    RANLIB=$ac_ct_RANLIB
9959
  fi
9960
else
9961
  RANLIB="$ac_cv_prog_RANLIB"
9962
fi
9963
 
9964
if test -n "$ac_tool_prefix"; then
9965
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9966
set dummy ${ac_tool_prefix}strip; ac_word=$2
216 andreas 9967
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9968
$as_echo_n "checking for $ac_word... " >&6; }
88 andreas 9969
if test "${ac_cv_prog_STRIP+set}" = set; then
216 andreas 9970
  $as_echo_n "(cached) " >&6
88 andreas 9971
else
9972
  if test -n "$STRIP"; then
9973
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9974
else
9975
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9976
for as_dir in $PATH
9977
do
9978
  IFS=$as_save_IFS
9979
  test -z "$as_dir" && as_dir=.
9980
  for ac_exec_ext in '' $ac_executable_extensions; do
9981
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9982
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
216 andreas 9983
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
88 andreas 9984
    break 2
9985
  fi
9986
done
9987
done
9988
IFS=$as_save_IFS
9989
 
9990
fi
9991
fi
9992
STRIP=$ac_cv_prog_STRIP
9993
if test -n "$STRIP"; then
216 andreas 9994
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
9995
$as_echo "$STRIP" >&6; }
88 andreas 9996
else
216 andreas 9997
  { $as_echo "$as_me:$LINENO: result: no" >&5
9998
$as_echo "no" >&6; }
88 andreas 9999
fi
10000
 
10001
 
10002
fi
10003
if test -z "$ac_cv_prog_STRIP"; then
10004
  ac_ct_STRIP=$STRIP
10005
  # Extract the first word of "strip", so it can be a program name with args.
10006
set dummy strip; ac_word=$2
216 andreas 10007
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10008
$as_echo_n "checking for $ac_word... " >&6; }
88 andreas 10009
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
216 andreas 10010
  $as_echo_n "(cached) " >&6
88 andreas 10011
else
10012
  if test -n "$ac_ct_STRIP"; then
10013
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10014
else
10015
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10016
for as_dir in $PATH
10017
do
10018
  IFS=$as_save_IFS
10019
  test -z "$as_dir" && as_dir=.
10020
  for ac_exec_ext in '' $ac_executable_extensions; do
10021
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10022
    ac_cv_prog_ac_ct_STRIP="strip"
216 andreas 10023
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
88 andreas 10024
    break 2
10025
  fi
10026
done
10027
done
10028
IFS=$as_save_IFS
10029
 
10030
fi
10031
fi
10032
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10033
if test -n "$ac_ct_STRIP"; then
216 andreas 10034
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
10035
$as_echo "$ac_ct_STRIP" >&6; }
88 andreas 10036
else
216 andreas 10037
  { $as_echo "$as_me:$LINENO: result: no" >&5
10038
$as_echo "no" >&6; }
88 andreas 10039
fi
10040
 
10041
  if test "x$ac_ct_STRIP" = x; then
10042
    STRIP=":"
10043
  else
10044
    case $cross_compiling:$ac_tool_warned in
10045
yes:)
216 andreas 10046
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10047
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
88 andreas 10048
ac_tool_warned=yes ;;
10049
esac
10050
    STRIP=$ac_ct_STRIP
10051
  fi
10052
else
10053
  STRIP="$ac_cv_prog_STRIP"
10054
fi
10055
 
10056
 
10057
old_CC="$CC"
10058
old_CFLAGS="$CFLAGS"
10059
 
10060
# Set sane defaults for various variables
10061
test -z "$AR" && AR=ar
10062
test -z "$AR_FLAGS" && AR_FLAGS=cru
10063
test -z "$AS" && AS=as
10064
test -z "$CC" && CC=cc
10065
test -z "$LTCC" && LTCC=$CC
10066
test -z "$DLLTOOL" && DLLTOOL=dlltool
10067
test -z "$LD" && LD=ld
10068
test -z "$LN_S" && LN_S="ln -s"
10069
test -z "$MAGIC_CMD" && MAGIC_CMD=file
10070
test -z "$NM" && NM=nm
10071
test -z "$SED" && SED=sed
10072
test -z "$OBJDUMP" && OBJDUMP=objdump
10073
test -z "$RANLIB" && RANLIB=:
10074
test -z "$STRIP" && STRIP=:
10075
test -z "$ac_objext" && ac_objext=o
10076
 
10077
# Determine commands to create old-style static archives.
10078
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
10079
old_postinstall_cmds='chmod 644 $oldlib'
10080
old_postuninstall_cmds=
10081
 
10082
if test -n "$RANLIB"; then
10083
  case $host_os in
10084
  openbsd*)
10085
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
10086
    ;;
10087
  *)
10088
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
10089
    ;;
10090
  esac
10091
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10092
fi
10093
 
10094
# Only perform the check for file, if the check method requires it
10095
case $deplibs_check_method in
10096
file_magic*)
10097
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
216 andreas 10098
    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
10099
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
88 andreas 10100
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
216 andreas 10101
  $as_echo_n "(cached) " >&6
88 andreas 10102
else
10103
  case $MAGIC_CMD in
10104
[\\/*] |  ?:[\\/]*)
10105
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10106
  ;;
10107
*)
10108
  lt_save_MAGIC_CMD="$MAGIC_CMD"
10109
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10110
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10111
  for ac_dir in $ac_dummy; do
10112
    IFS="$lt_save_ifs"
10113
    test -z "$ac_dir" && ac_dir=.
10114
    if test -f $ac_dir/${ac_tool_prefix}file; then
10115
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10116
      if test -n "$file_magic_test_file"; then
10117
	case $deplibs_check_method in
10118
	"file_magic "*)
10119
	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
10120
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10121
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10122
	    $EGREP "$file_magic_regex" > /dev/null; then
10123
	    :
10124
	  else
10125
	    cat <<EOF 1>&2
10126
 
10127
*** Warning: the command libtool uses to detect shared libraries,
10128
*** $file_magic_cmd, produces output that libtool cannot recognize.
10129
*** The result is that libtool may fail to recognize shared libraries
10130
*** as such.  This will affect the creation of libtool libraries that
10131
*** depend on shared libraries, but programs linked with such libtool
10132
*** libraries will work regardless of this problem.  Nevertheless, you
10133
*** may want to report the problem to your system manager and/or to
10134
*** bug-libtool@gnu.org
10135
 
10136
EOF
10137
	  fi ;;
10138
	esac
10139
      fi
10140
      break
10141
    fi
10142
  done
10143
  IFS="$lt_save_ifs"
10144
  MAGIC_CMD="$lt_save_MAGIC_CMD"
10145
  ;;
10146
esac
10147
fi
10148
 
10149
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10150
if test -n "$MAGIC_CMD"; then
216 andreas 10151
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
10152
$as_echo "$MAGIC_CMD" >&6; }
88 andreas 10153
else
216 andreas 10154
  { $as_echo "$as_me:$LINENO: result: no" >&5
10155
$as_echo "no" >&6; }
88 andreas 10156
fi
10157
 
10158
if test -z "$lt_cv_path_MAGIC_CMD"; then
10159
  if test -n "$ac_tool_prefix"; then
216 andreas 10160
    { $as_echo "$as_me:$LINENO: checking for file" >&5
10161
$as_echo_n "checking for file... " >&6; }
88 andreas 10162
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
216 andreas 10163
  $as_echo_n "(cached) " >&6
88 andreas 10164
else
10165
  case $MAGIC_CMD in
10166
[\\/*] |  ?:[\\/]*)
10167
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10168
  ;;
10169
*)
10170
  lt_save_MAGIC_CMD="$MAGIC_CMD"
10171
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10172
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10173
  for ac_dir in $ac_dummy; do
10174
    IFS="$lt_save_ifs"
10175
    test -z "$ac_dir" && ac_dir=.
10176
    if test -f $ac_dir/file; then
10177
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
10178
      if test -n "$file_magic_test_file"; then
10179
	case $deplibs_check_method in
10180
	"file_magic "*)
10181
	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
10182
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10183
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10184
	    $EGREP "$file_magic_regex" > /dev/null; then
10185
	    :
10186
	  else
10187
	    cat <<EOF 1>&2
10188
 
10189
*** Warning: the command libtool uses to detect shared libraries,
10190
*** $file_magic_cmd, produces output that libtool cannot recognize.
10191
*** The result is that libtool may fail to recognize shared libraries
10192
*** as such.  This will affect the creation of libtool libraries that
10193
*** depend on shared libraries, but programs linked with such libtool
10194
*** libraries will work regardless of this problem.  Nevertheless, you
10195
*** may want to report the problem to your system manager and/or to
10196
*** bug-libtool@gnu.org
10197
 
10198
EOF
10199
	  fi ;;
10200
	esac
10201
      fi
10202
      break
10203
    fi
10204
  done
10205
  IFS="$lt_save_ifs"
10206
  MAGIC_CMD="$lt_save_MAGIC_CMD"
10207
  ;;
10208
esac
10209
fi
10210
 
10211
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10212
if test -n "$MAGIC_CMD"; then
216 andreas 10213
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
10214
$as_echo "$MAGIC_CMD" >&6; }
88 andreas 10215
else
216 andreas 10216
  { $as_echo "$as_me:$LINENO: result: no" >&5
10217
$as_echo "no" >&6; }
88 andreas 10218
fi
10219
 
10220
  else
10221
    MAGIC_CMD=:
10222
  fi
10223
fi
10224
 
10225
  fi
10226
  ;;
10227
esac
10228
 
10229
enable_dlopen=yes
10230
enable_win32_dll=no
10231
 
10232
# Check whether --enable-libtool-lock was given.
10233
if test "${enable_libtool_lock+set}" = set; then
10234
  enableval=$enable_libtool_lock;
10235
fi
10236
 
10237
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10238
 
10239
 
10240
# Check whether --with-pic was given.
10241
if test "${with_pic+set}" = set; then
10242
  withval=$with_pic; pic_mode="$withval"
10243
else
10244
  pic_mode=default
10245
fi
10246
 
10247
test -z "$pic_mode" && pic_mode=default
10248
 
10249
# Use C for the default configuration in the libtool script
10250
tagname=
10251
lt_save_CC="$CC"
10252
ac_ext=c
10253
ac_cpp='$CPP $CPPFLAGS'
10254
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10255
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10256
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10257
 
10258
 
10259
# Source file extension for C test sources.
10260
ac_ext=c
10261
 
10262
# Object file extension for compiled C test sources.
10263
objext=o
10264
objext=$objext
10265
 
10266
# Code to be used in simple compile tests
10267
lt_simple_compile_test_code="int some_variable = 0;\n"
10268
 
10269
# Code to be used in simple link tests
10270
lt_simple_link_test_code='int main(){return(0);}\n'
10271
 
10272
 
10273
# If no C compiler was specified, use CC.
10274
LTCC=${LTCC-"$CC"}
10275
 
10276
# Allow CC to be a program name with arguments.
10277
compiler=$CC
10278
 
10279
 
10280
#
10281
# Check for any special shared library compilation flags.
10282
#
10283
lt_prog_cc_shlib=
10284
if test "$GCC" = no; then
10285
  case $host_os in
10286
  sco3.2v5*)
10287
    lt_prog_cc_shlib='-belf'
10288
    ;;
10289
  esac
10290
fi
10291
if test -n "$lt_prog_cc_shlib"; then
216 andreas 10292
  { $as_echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
10293
$as_echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
88 andreas 10294
  if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then :
10295
  else
216 andreas 10296
    { $as_echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
10297
$as_echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
88 andreas 10298
    lt_cv_prog_cc_can_build_shared=no
10299
  fi
10300
fi
10301
 
10302
 
10303
#
10304
# Check to make sure the static flag actually works.
10305
#
216 andreas 10306
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
10307
$as_echo_n "checking if $compiler static flag $lt_prog_compiler_static works... " >&6; }
88 andreas 10308
if test "${lt_prog_compiler_static_works+set}" = set; then
216 andreas 10309
  $as_echo_n "(cached) " >&6
88 andreas 10310
else
10311
  lt_prog_compiler_static_works=no
10312
   save_LDFLAGS="$LDFLAGS"
10313
   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
10314
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
10315
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10316
     # The compiler can only warn and ignore the option if not recognized
10317
     # So say no if there are warnings
10318
     if test -s conftest.err; then
10319
       # Append any errors to the config.log.
10320
       cat conftest.err 1>&5
10321
     else
10322
       lt_prog_compiler_static_works=yes
10323
     fi
10324
   fi
10325
   $rm conftest*
10326
   LDFLAGS="$save_LDFLAGS"
10327
 
10328
fi
216 andreas 10329
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
10330
$as_echo "$lt_prog_compiler_static_works" >&6; }
88 andreas 10331
 
10332
if test x"$lt_prog_compiler_static_works" = xyes; then
10333
    :
10334
else
10335
    lt_prog_compiler_static=
10336
fi
10337
 
10338
 
10339
 
10340
## CAVEAT EMPTOR:
10341
## There is no encapsulation within the following macros, do not change
10342
## the running order or otherwise move them around unless you know exactly
10343
## what you are doing...
10344
 
10345
lt_prog_compiler_no_builtin_flag=
10346
 
10347
if test "$GCC" = yes; then
10348
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
10349
 
10350
 
216 andreas 10351
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10352
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
88 andreas 10353
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
216 andreas 10354
  $as_echo_n "(cached) " >&6
88 andreas 10355
else
10356
  lt_cv_prog_compiler_rtti_exceptions=no
10357
  ac_outfile=conftest.$ac_objext
10358
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10359
   lt_compiler_flag="-fno-rtti -fno-exceptions"
10360
   # Insert the option either (1) after the last *FLAGS variable, or
10361
   # (2) before a word containing "conftest.", or (3) at the end.
10362
   # Note that $ac_compile itself does not contain backslashes and begins
10363
   # with a dollar sign (not a hyphen), so the echo should work correctly.
10364
   # The option is referenced via a variable to avoid confusing sed.
10365
   lt_compile=`echo "$ac_compile" | $SED \
10366
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10367
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10368
   -e 's:$: $lt_compiler_flag:'`
216 andreas 10369
   (eval echo "\"\$as_me:10369: $lt_compile\"" >&5)
88 andreas 10370
   (eval "$lt_compile" 2>conftest.err)
10371
   ac_status=$?
10372
   cat conftest.err >&5
216 andreas 10373
   echo "$as_me:10373: \$? = $ac_status" >&5
88 andreas 10374
   if (exit $ac_status) && test -s "$ac_outfile"; then
10375
     # The compiler can only warn and ignore the option if not recognized
10376
     # So say no if there are warnings
10377
     if test ! -s conftest.err; then
10378
       lt_cv_prog_compiler_rtti_exceptions=yes
10379
     fi
10380
   fi
10381
   $rm conftest*
10382
 
10383
fi
216 andreas 10384
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10385
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
88 andreas 10386
 
10387
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10388
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10389
else
10390
    :
10391
fi
10392
 
10393
fi
10394
 
10395
lt_prog_compiler_wl=
10396
lt_prog_compiler_pic=
10397
lt_prog_compiler_static=
10398
 
216 andreas 10399
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10400
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
88 andreas 10401
 
10402
  if test "$GCC" = yes; then
10403
    lt_prog_compiler_wl='-Wl,'
10404
    lt_prog_compiler_static='-static'
10405
 
10406
    case $host_os in
10407
      aix*)
10408
      # All AIX code is PIC.
10409
      if test "$host_cpu" = ia64; then
10410
	# AIX 5 now supports IA64 processor
10411
	lt_prog_compiler_static='-Bstatic'
10412
      fi
10413
      ;;
10414
 
10415
    amigaos*)
10416
      # FIXME: we need at least 68020 code to build shared libraries, but
10417
      # adding the `-m68020' flag to GCC prevents building anything better,
10418
      # like `-m68040'.
10419
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10420
      ;;
10421
 
10422
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10423
      # PIC is the default for these OSes.
10424
      ;;
10425
 
10426
    mingw* | pw32* | os2*)
10427
      # This hack is so that the source file can tell whether it is being
10428
      # built for inclusion in a dll (and should export symbols for example).
10429
      lt_prog_compiler_pic='-DDLL_EXPORT'
10430
      ;;
10431
 
10432
    darwin* | rhapsody*)
10433
      # PIC is the default on this platform
10434
      # Common symbols not allowed in MH_DYLIB files
10435
      lt_prog_compiler_pic='-fno-common'
10436
      ;;
10437
 
10438
    msdosdjgpp*)
10439
      # Just because we use GCC doesn't mean we suddenly get shared libraries
10440
      # on systems that don't support them.
10441
      lt_prog_compiler_can_build_shared=no
10442
      enable_shared=no
10443
      ;;
10444
 
10445
    sysv4*MP*)
10446
      if test -d /usr/nec; then
10447
	lt_prog_compiler_pic=-Kconform_pic
10448
      fi
10449
      ;;
10450
 
10451
    hpux*)
10452
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10453
      # not for PA HP-UX.
10454
      case "$host_cpu" in
10455
      hppa*64*|ia64*)
10456
	# +Z the default
10457
	;;
10458
      *)
10459
	lt_prog_compiler_pic='-fPIC'
10460
	;;
10461
      esac
10462
      ;;
10463
 
10464
    *)
10465
      lt_prog_compiler_pic='-fPIC'
10466
      ;;
10467
    esac
10468
  else
10469
    # PORTME Check for flag to pass linker flags through the system compiler.
10470
    case $host_os in
10471
    aix*)
10472
      lt_prog_compiler_wl='-Wl,'
10473
      if test "$host_cpu" = ia64; then
10474
	# AIX 5 now supports IA64 processor
10475
	lt_prog_compiler_static='-Bstatic'
10476
      else
10477
	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10478
      fi
10479
      ;;
10480
 
10481
    mingw* | pw32* | os2*)
10482
      # This hack is so that the source file can tell whether it is being
10483
      # built for inclusion in a dll (and should export symbols for example).
10484
      lt_prog_compiler_pic='-DDLL_EXPORT'
10485
      ;;
10486
 
10487
    hpux9* | hpux10* | hpux11*)
10488
      lt_prog_compiler_wl='-Wl,'
10489
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10490
      # not for PA HP-UX.
10491
      case "$host_cpu" in
10492
      hppa*64*|ia64*)
10493
	# +Z the default
10494
	;;
10495
      *)
10496
	lt_prog_compiler_pic='+Z'
10497
	;;
10498
      esac
10499
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
10500
      lt_prog_compiler_static='${wl}-a ${wl}archive'
10501
      ;;
10502
 
10503
    irix5* | irix6* | nonstopux*)
10504
      lt_prog_compiler_wl='-Wl,'
10505
      # PIC (with -KPIC) is the default.
10506
      lt_prog_compiler_static='-non_shared'
10507
      ;;
10508
 
10509
    newsos6)
10510
      lt_prog_compiler_pic='-KPIC'
10511
      lt_prog_compiler_static='-Bstatic'
10512
      ;;
10513
 
10514
    linux*)
10515
      case $CC in
10516
      icc* | ecc*)
10517
	lt_prog_compiler_wl='-Wl,'
10518
	lt_prog_compiler_pic='-KPIC'
10519
	lt_prog_compiler_static='-static'
10520
        ;;
10521
      ccc*)
10522
        lt_prog_compiler_wl='-Wl,'
10523
        # All Alpha code is PIC.
10524
        lt_prog_compiler_static='-non_shared'
10525
        ;;
10526
      esac
10527
      ;;
10528
 
10529
    osf3* | osf4* | osf5*)
10530
      lt_prog_compiler_wl='-Wl,'
10531
      # All OSF/1 code is PIC.
10532
      lt_prog_compiler_static='-non_shared'
10533
      ;;
10534
 
10535
    sco3.2v5*)
10536
      lt_prog_compiler_pic='-Kpic'
10537
      lt_prog_compiler_static='-dn'
10538
      ;;
10539
 
10540
    solaris*)
10541
      lt_prog_compiler_wl='-Wl,'
10542
      lt_prog_compiler_pic='-KPIC'
10543
      lt_prog_compiler_static='-Bstatic'
10544
      ;;
10545
 
10546
    sunos4*)
10547
      lt_prog_compiler_wl='-Qoption ld '
10548
      lt_prog_compiler_pic='-PIC'
10549
      lt_prog_compiler_static='-Bstatic'
10550
      ;;
10551
 
10552
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10553
      lt_prog_compiler_wl='-Wl,'
10554
      lt_prog_compiler_pic='-KPIC'
10555
      lt_prog_compiler_static='-Bstatic'
10556
      ;;
10557
 
10558
    sysv4*MP*)
10559
      if test -d /usr/nec ;then
10560
	lt_prog_compiler_pic='-Kconform_pic'
10561
	lt_prog_compiler_static='-Bstatic'
10562
      fi
10563
      ;;
10564
 
10565
    uts4*)
10566
      lt_prog_compiler_pic='-pic'
10567
      lt_prog_compiler_static='-Bstatic'
10568
      ;;
10569
 
10570
    *)
10571
      lt_prog_compiler_can_build_shared=no
10572
      ;;
10573
    esac
10574
  fi
10575
 
216 andreas 10576
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
10577
$as_echo "$lt_prog_compiler_pic" >&6; }
88 andreas 10578
 
10579
#
10580
# Check to make sure the PIC flag actually works.
10581
#
10582
if test -n "$lt_prog_compiler_pic"; then
10583
 
216 andreas 10584
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10585
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
88 andreas 10586
if test "${lt_prog_compiler_pic_works+set}" = set; then
216 andreas 10587
  $as_echo_n "(cached) " >&6
88 andreas 10588
else
10589
  lt_prog_compiler_pic_works=no
10590
  ac_outfile=conftest.$ac_objext
10591
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10592
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10593
   # Insert the option either (1) after the last *FLAGS variable, or
10594
   # (2) before a word containing "conftest.", or (3) at the end.
10595
   # Note that $ac_compile itself does not contain backslashes and begins
10596
   # with a dollar sign (not a hyphen), so the echo should work correctly.
10597
   # The option is referenced via a variable to avoid confusing sed.
10598
   lt_compile=`echo "$ac_compile" | $SED \
10599
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10600
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10601
   -e 's:$: $lt_compiler_flag:'`
216 andreas 10602
   (eval echo "\"\$as_me:10602: $lt_compile\"" >&5)
88 andreas 10603
   (eval "$lt_compile" 2>conftest.err)
10604
   ac_status=$?
10605
   cat conftest.err >&5
216 andreas 10606
   echo "$as_me:10606: \$? = $ac_status" >&5
88 andreas 10607
   if (exit $ac_status) && test -s "$ac_outfile"; then
10608
     # The compiler can only warn and ignore the option if not recognized
10609
     # So say no if there are warnings
10610
     if test ! -s conftest.err; then
10611
       lt_prog_compiler_pic_works=yes
10612
     fi
10613
   fi
10614
   $rm conftest*
10615
 
10616
fi
216 andreas 10617
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
10618
$as_echo "$lt_prog_compiler_pic_works" >&6; }
88 andreas 10619
 
10620
if test x"$lt_prog_compiler_pic_works" = xyes; then
10621
    case $lt_prog_compiler_pic in
10622
     "" | " "*) ;;
10623
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10624
     esac
10625
else
10626
    lt_prog_compiler_pic=
10627
     lt_prog_compiler_can_build_shared=no
10628
fi
10629
 
10630
fi
10631
case "$host_os" in
10632
  # For platforms which do not support PIC, -DPIC is meaningless:
10633
  *djgpp*)
10634
    lt_prog_compiler_pic=
10635
    ;;
10636
  *)
10637
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10638
    ;;
10639
esac
10640
 
216 andreas 10641
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10642
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
88 andreas 10643
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
216 andreas 10644
  $as_echo_n "(cached) " >&6
88 andreas 10645
else
10646
  lt_cv_prog_compiler_c_o=no
10647
   $rm -r conftest 2>/dev/null
10648
   mkdir conftest
10649
   cd conftest
10650
   mkdir out
10651
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10652
 
10653
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10654
   # that will create temporary files in the current directory regardless of
10655
   # the output directory.  Thus, making CWD read-only will cause this test
10656
   # to fail, enabling locking or at least warning the user not to do parallel
10657
   # builds.
10658
   chmod -w .
10659
 
10660
   lt_compiler_flag="-o out/conftest2.$ac_objext"
10661
   # Insert the option either (1) after the last *FLAGS variable, or
10662
   # (2) before a word containing "conftest.", or (3) at the end.
10663
   # Note that $ac_compile itself does not contain backslashes and begins
10664
   # with a dollar sign (not a hyphen), so the echo should work correctly.
10665
   lt_compile=`echo "$ac_compile" | $SED \
10666
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10667
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10668
   -e 's:$: $lt_compiler_flag:'`
216 andreas 10669
   (eval echo "\"\$as_me:10669: $lt_compile\"" >&5)
88 andreas 10670
   (eval "$lt_compile" 2>out/conftest.err)
10671
   ac_status=$?
10672
   cat out/conftest.err >&5
216 andreas 10673
   echo "$as_me:10673: \$? = $ac_status" >&5
88 andreas 10674
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10675
   then
10676
     # The compiler can only warn and ignore the option if not recognized
10677
     # So say no if there are warnings
10678
     if test ! -s out/conftest.err; then
10679
       lt_cv_prog_compiler_c_o=yes
10680
     fi
10681
   fi
10682
   chmod u+w .
10683
   $rm conftest* out/*
10684
   rmdir out
10685
   cd ..
10686
   rmdir conftest
10687
   $rm conftest*
10688
 
10689
fi
216 andreas 10690
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10691
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
88 andreas 10692
 
10693
 
10694
hard_links="nottested"
10695
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10696
  # do not overwrite the value of need_locks provided by the user
216 andreas 10697
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10698
$as_echo_n "checking if we can lock with hard links... " >&6; }
88 andreas 10699
  hard_links=yes
10700
  $rm conftest*
10701
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10702
  touch conftest.a
10703
  ln conftest.a conftest.b 2>&5 || hard_links=no
10704
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
216 andreas 10705
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
10706
$as_echo "$hard_links" >&6; }
88 andreas 10707
  if test "$hard_links" = no; then
216 andreas 10708
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10709
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
88 andreas 10710
    need_locks=warn
10711
  fi
10712
else
10713
  need_locks=no
10714
fi
10715
 
216 andreas 10716
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10717
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
88 andreas 10718
 
10719
  runpath_var=
10720
  allow_undefined_flag=
10721
  enable_shared_with_static_runtimes=no
10722
  archive_cmds=
10723
  archive_expsym_cmds=
10724
  old_archive_From_new_cmds=
10725
  old_archive_from_expsyms_cmds=
10726
  export_dynamic_flag_spec=
10727
  whole_archive_flag_spec=
10728
  thread_safe_flag_spec=
10729
  hardcode_libdir_flag_spec=
10730
  hardcode_libdir_flag_spec_ld=
10731
  hardcode_libdir_separator=
10732
  hardcode_direct=no
10733
  hardcode_minus_L=no
10734
  hardcode_shlibpath_var=unsupported
10735
  link_all_deplibs=unknown
10736
  hardcode_automatic=no
10737
  module_cmds=
10738
  module_expsym_cmds=
10739
  always_export_symbols=no
10740
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10741
  # include_expsyms should be a list of space-separated symbols to be *always*
10742
  # included in the symbol list
10743
  include_expsyms=
10744
  # exclude_expsyms can be an extended regexp of symbols to exclude
10745
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
10746
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10747
  # as well as any symbol that contains `d'.
10748
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
10749
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10750
  # platforms (ab)use it in PIC code, but their linkers get confused if
10751
  # the symbol is explicitly referenced.  Since portable code cannot
10752
  # rely on this symbol name, it's probably fine to never include it in
10753
  # preloaded symbol tables.
10754
  extract_expsyms_cmds=
10755
 
10756
  case $host_os in
10757
  cygwin* | mingw* | pw32*)
10758
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10759
    # When not using gcc, we currently assume that we are using
10760
    # Microsoft Visual C++.
10761
    if test "$GCC" != yes; then
10762
      with_gnu_ld=no
10763
    fi
10764
    ;;
10765
  openbsd*)
10766
    with_gnu_ld=no
10767
    ;;
10768
  esac
10769
 
10770
  ld_shlibs=yes
10771
  if test "$with_gnu_ld" = yes; then
10772
    # If archive_cmds runs LD, not CC, wlarc should be empty
10773
    wlarc='${wl}'
10774
 
10775
    # See if GNU ld supports shared libraries.
10776
    case $host_os in
10777
    aix3* | aix4* | aix5*)
10778
      # On AIX/PPC, the GNU linker is very broken
10779
      if test "$host_cpu" != ia64; then
10780
	ld_shlibs=no
10781
	cat <<EOF 1>&2
10782
 
10783
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
10784
*** to be unable to reliably create shared libraries on AIX.
10785
*** Therefore, libtool is disabling shared libraries support.  If you
10786
*** really care for shared libraries, you may want to modify your PATH
10787
*** so that a non-GNU linker is found, and then restart.
10788
 
10789
EOF
10790
      fi
10791
      ;;
10792
 
10793
    amigaos*)
10794
      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)'
10795
      hardcode_libdir_flag_spec='-L$libdir'
10796
      hardcode_minus_L=yes
10797
 
10798
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
10799
      # that the semantics of dynamic libraries on AmigaOS, at least up
10800
      # to version 4, is to share data among multiple programs linked
10801
      # with the same dynamic library.  Since this doesn't match the
10802
      # behavior of shared libraries on other platforms, we can't use
10803
      # them.
10804
      ld_shlibs=no
10805
      ;;
10806
 
10807
    beos*)
10808
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10809
	allow_undefined_flag=unsupported
10810
	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10811
	# support --undefined.  This deserves some investigation.  FIXME
10812
	archive_cmds='$CC -nostart $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
10813
      else
10814
	ld_shlibs=no
10815
      fi
10816
      ;;
10817
 
10818
    cygwin* | mingw* | pw32*)
10819
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10820
      # as there is no search path for DLLs.
10821
      hardcode_libdir_flag_spec='-L$libdir'
10822
      allow_undefined_flag=no
10823
      always_export_symbols=no
10824
      enable_shared_with_static_runtimes=yes
10825
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10826
 
10827
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10828
        archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10829
	# If the export-symbols file already is a .def file (1st line
10830
	# is EXPORTS), use it as is; otherwise, prepend...
10831
	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10832
	  cp $export_symbols $output_objdir/$soname.def;
10833
	else
10834
	  echo EXPORTS > $output_objdir/$soname.def;
10835
	  cat $export_symbols >> $output_objdir/$soname.def;
10836
	fi~
10837
	$CC -shared $output_objdir/$soname.def $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
10838
      else
10839
	ld_shlibs=no
10840
      fi
10841
      ;;
10842
 
10843
    netbsd*)
10844
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10845
	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10846
	wlarc=
10847
      else
10848
	archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
10849
	archive_expsym_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10850
      fi
10851
      ;;
10852
 
10853
    solaris* | sysv5*)
10854
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
10855
	ld_shlibs=no
10856
	cat <<EOF 1>&2
10857
 
10858
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10859
*** create shared libraries on Solaris systems.  Therefore, libtool
10860
*** is disabling shared libraries support.  We urge you to upgrade GNU
10861
*** binutils to release 2.9.1 or newer.  Another option is to modify
10862
*** your PATH or compiler configuration so that the native linker is
10863
*** used, and then restart.
10864
 
10865
EOF
10866
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10867
	archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
10868
	archive_expsym_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10869
      else
10870
	ld_shlibs=no
10871
      fi
10872
      ;;
10873
 
10874
    sunos4*)
10875
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10876
      wlarc=
10877
      hardcode_direct=yes
10878
      hardcode_shlibpath_var=no
10879
      ;;
10880
 
10881
    *)
10882
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10883
	archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
10884
	archive_expsym_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10885
      else
10886
	ld_shlibs=no
10887
      fi
10888
      ;;
10889
    esac
10890
 
10891
    if test "$ld_shlibs" = yes; then
10892
      runpath_var=LD_RUN_PATH
10893
      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
10894
      export_dynamic_flag_spec='${wl}--export-dynamic'
10895
      # ancient GNU ld didn't support --whole-archive et. al.
10896
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
10897
 	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10898
      else
10899
  	whole_archive_flag_spec=
10900
      fi
10901
    fi
10902
  else
10903
    # PORTME fill in a description of your system's linker (not GNU ld)
10904
    case $host_os in
10905
    aix3*)
10906
      allow_undefined_flag=unsupported
10907
      always_export_symbols=yes
10908
      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'
10909
      # Note: this linker hardcodes the directories in LIBPATH if there
10910
      # are no directories specified by -L.
10911
      hardcode_minus_L=yes
10912
      if test "$GCC" = yes && test -z "$link_static_flag"; then
10913
	# Neither direct hardcoding nor static linking is supported with a
10914
	# broken collect2.
10915
	hardcode_direct=unsupported
10916
      fi
10917
      ;;
10918
 
10919
    aix4* | aix5*)
10920
      if test "$host_cpu" = ia64; then
10921
	# On IA64, the linker does run time linking by default, so we don't
10922
	# have to do anything special.
10923
	aix_use_runtimelinking=no
10924
	exp_sym_flag='-Bexport'
10925
	no_entry_flag=""
10926
      else
10927
	# If we're using GNU nm, then we don't want the "-C" option.
10928
	# -C means demangle to AIX nm, but means don't demangle with GNU nm
10929
	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10930
	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
10931
	else
10932
	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
10933
	fi
10934
 
10935
	# KDE requires run time linking.  Make it the default.
10936
	aix_use_runtimelinking=yes
10937
	exp_sym_flag='-bexport'
10938
	no_entry_flag='-bnoentry'
10939
      fi
10940
 
10941
      # When large executables or shared objects are built, AIX ld can
10942
      # have problems creating the table of contents.  If linking a library
10943
      # or program results in "error TOC overflow" add -mminimal-toc to
10944
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10945
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10946
 
10947
      archive_cmds=''
10948
      hardcode_direct=yes
10949
      hardcode_libdir_separator=':'
10950
      link_all_deplibs=yes
10951
 
10952
      if test "$GCC" = yes; then
10953
	case $host_os in aix4.012|aix4.012.*)
10954
	# We only want to do this on AIX 4.2 and lower, the check
10955
	# below for broken collect2 doesn't work under 4.3+
10956
	  collect2name=`${CC} -print-prog-name=collect2`
10957
	  if test -f "$collect2name" && \
10958
  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
10959
	  then
10960
  	  # We have reworked collect2
10961
  	  hardcode_direct=yes
10962
	  else
10963
  	  # We have old collect2
10964
  	  hardcode_direct=unsupported
10965
  	  # It fails to find uninstalled libraries when the uninstalled
10966
  	  # path is not listed in the libpath.  Setting hardcode_minus_L
10967
  	  # to unsupported forces relinking
10968
  	  hardcode_minus_L=yes
10969
  	  hardcode_libdir_flag_spec='-L$libdir'
10970
  	  hardcode_libdir_separator=
10971
	  fi
10972
	esac
10973
	shared_flag='-shared'
10974
      else
10975
	# not using gcc
10976
	if test "$host_cpu" = ia64; then
10977
  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10978
  	# chokes on -Wl,-G. The following line is correct:
10979
	  shared_flag='-G'
10980
	else
10981
  	if test "$aix_use_runtimelinking" = yes; then
10982
	    shared_flag='-qmkshrobj ${wl}-G'
10983
	  else
10984
	    shared_flag='-qmkshrobj'
10985
  	fi
10986
	fi
10987
      fi
10988
 
10989
      # Let the compiler handle the export list.
10990
      always_export_symbols=no
10991
      if test "$aix_use_runtimelinking" = yes; then
10992
	# Warning - without using the other runtime loading flags (-brtl),
10993
	# -berok will link without error, but may produce a broken library.
10994
	allow_undefined_flag='-berok'
10995
       # Determine the default libpath from the value encoded in an empty executable.
10996
	cat >conftest.$ac_ext <<_ACEOF
10997
/* confdefs.h.  */
10998
_ACEOF
10999
cat confdefs.h >>conftest.$ac_ext
11000
cat >>conftest.$ac_ext <<_ACEOF
11001
/* end confdefs.h.  */
11002
 
11003
int
11004
main ()
11005
{
11006
 
11007
  ;
11008
  return 0;
11009
}
11010
_ACEOF
11011
rm -f conftest.$ac_objext conftest$ac_exeext
11012
if { (ac_try="$ac_link"
11013
case "(($ac_try" in
11014
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11015
  *) ac_try_echo=$ac_try;;
11016
esac
216 andreas 11017
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11018
$as_echo "$ac_try_echo") >&5
88 andreas 11019
  (eval "$ac_link") 2>conftest.er1
11020
  ac_status=$?
11021
  grep -v '^ *+' conftest.er1 >conftest.err
11022
  rm -f conftest.er1
11023
  cat conftest.err >&5
216 andreas 11024
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 11025
  (exit $ac_status); } && {
11026
	 test -z "$ac_c_werror_flag" ||
11027
	 test ! -s conftest.err
216 andreas 11028
       } && test -s conftest$ac_exeext && {
11029
	 test "$cross_compiling" = yes ||
11030
	 $as_test_x conftest$ac_exeext
11031
       }; then
88 andreas 11032
 
11033
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11034
}'`
11035
# Check for a 64-bit object if we didn't find anything.
11036
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11037
}'`; fi
11038
else
216 andreas 11039
  $as_echo "$as_me: failed program was:" >&5
88 andreas 11040
sed 's/^/| /' conftest.$ac_ext >&5
11041
 
11042
 
11043
fi
11044
 
216 andreas 11045
rm -rf conftest.dSYM
88 andreas 11046
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11047
      conftest$ac_exeext conftest.$ac_ext
11048
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11049
 
11050
	hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11051
	archive_cmds="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
11052
	archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11053
       else
11054
	if test "$host_cpu" = ia64; then
11055
	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11056
	  allow_undefined_flag="-z nodefs"
11057
	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
11058
	else
11059
	 # Determine the default libpath from the value encoded in an empty executable.
11060
	 cat >conftest.$ac_ext <<_ACEOF
11061
/* confdefs.h.  */
11062
_ACEOF
11063
cat confdefs.h >>conftest.$ac_ext
11064
cat >>conftest.$ac_ext <<_ACEOF
11065
/* end confdefs.h.  */
11066
 
11067
int
11068
main ()
11069
{
11070
 
11071
  ;
11072
  return 0;
11073
}
11074
_ACEOF
11075
rm -f conftest.$ac_objext conftest$ac_exeext
11076
if { (ac_try="$ac_link"
11077
case "(($ac_try" in
11078
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11079
  *) ac_try_echo=$ac_try;;
11080
esac
216 andreas 11081
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11082
$as_echo "$ac_try_echo") >&5
88 andreas 11083
  (eval "$ac_link") 2>conftest.er1
11084
  ac_status=$?
11085
  grep -v '^ *+' conftest.er1 >conftest.err
11086
  rm -f conftest.er1
11087
  cat conftest.err >&5
216 andreas 11088
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 11089
  (exit $ac_status); } && {
11090
	 test -z "$ac_c_werror_flag" ||
11091
	 test ! -s conftest.err
216 andreas 11092
       } && test -s conftest$ac_exeext && {
11093
	 test "$cross_compiling" = yes ||
11094
	 $as_test_x conftest$ac_exeext
11095
       }; then
88 andreas 11096
 
11097
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11098
}'`
11099
# Check for a 64-bit object if we didn't find anything.
11100
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11101
}'`; fi
11102
else
216 andreas 11103
  $as_echo "$as_me: failed program was:" >&5
88 andreas 11104
sed 's/^/| /' conftest.$ac_ext >&5
11105
 
11106
 
11107
fi
11108
 
216 andreas 11109
rm -rf conftest.dSYM
88 andreas 11110
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11111
      conftest$ac_exeext conftest.$ac_ext
11112
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11113
 
11114
	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11115
	  # Warning - without using the other run time loading flags,
11116
	  # -berok will link without error, but may produce a broken library.
11117
	  no_undefined_flag=' ${wl}-bernotok'
11118
	  allow_undefined_flag=' ${wl}-berok'
11119
	  # -bexpall does not export symbols beginning with underscore (_)
11120
	  always_export_symbols=yes
11121
	  # Exported symbols can be pulled into shared objects from archives
11122
	  whole_archive_flag_spec=' '
11123
	  archive_cmds_need_lc=yes
11124
	  # This is similar to how AIX traditionally builds it's shared libraries.
11125
	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11126
	fi
11127
      fi
11128
      ;;
11129
 
11130
    amigaos*)
11131
      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)'
11132
      hardcode_libdir_flag_spec='-L$libdir'
11133
      hardcode_minus_L=yes
11134
      # see comment about different semantics on the GNU ld section
11135
      ld_shlibs=no
11136
      ;;
11137
 
11138
    bsdi4*)
11139
      export_dynamic_flag_spec=-rdynamic
11140
      ;;
11141
 
11142
    cygwin* | mingw* | pw32*)
11143
      # When not using gcc, we currently assume that we are using
11144
      # Microsoft Visual C++.
11145
      # hardcode_libdir_flag_spec is actually meaningless, as there is
11146
      # no search path for DLLs.
11147
      hardcode_libdir_flag_spec=' '
11148
      allow_undefined_flag=no
11149
      # Tell ltmain to make .lib files, not .a files.
11150
      libext=lib
11151
      # Tell ltmain to make .dll files, not .so files.
11152
      shrext=".dll"
11153
      # FIXME: Setting linknames here is a bad hack.
11154
      archive_cmds='$CC -o $lib $compiler_flags $libobjs `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
11155
      # The linker will automatically build a .lib file if we build a DLL.
11156
      old_archive_From_new_cmds='true'
11157
      # FIXME: Should let the user specify the lib program.
11158
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
11159
      fix_srcfile_path='`cygpath -w "$srcfile"`'
11160
      enable_shared_with_static_runtimes=yes
11161
      ;;
11162
 
11163
    darwin* | rhapsody*)
11164
    if test "$GXX" = yes ; then
11165
      archive_cmds_need_lc=no
11166
      case "$host_os" in
11167
      rhapsody* | darwin1.[012])
11168
	allow_undefined_flag='-Wl,-undefined -Wl,suppress'
11169
	;;
11170
      *) # Darwin 1.3 on
11171
	if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11172
	  allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
11173
	else
11174
	  case ${MACOSX_DEPLOYMENT_TARGET} in
11175
	    10.012)
11176
	      allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
11177
	      ;;
11178
	    10.*)
11179
	      allow_undefined_flag='-Wl,-undefined -Wl,dynamic_lookup'
11180
	      ;;
11181
	  esac
11182
	fi
11183
	;;
11184
      esac
11185
    	lt_int_apple_cc_single_mod=no
11186
    	output_verbose_link_cmd='echo'
11187
    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
11188
    	  lt_int_apple_cc_single_mod=yes
11189
    	fi
11190
    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11191
    	  archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
11192
    	else
11193
        archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring'
11194
      fi
11195
      module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
11196
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11197
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11198
          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11199
        else
11200
          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11201
        fi
11202
          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11203
      hardcode_direct=no
11204
      hardcode_automatic=yes
11205
      hardcode_shlibpath_var=unsupported
11206
      whole_archive_flag_spec='-all_load $convenience'
11207
      link_all_deplibs=yes
11208
    else
11209
      ld_shlibs=no
11210
    fi
11211
      ;;
11212
 
11213
    dgux*)
11214
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11215
      hardcode_libdir_flag_spec='-L$libdir'
11216
      hardcode_shlibpath_var=no
11217
      ;;
11218
 
11219
    freebsd1*)
11220
      ld_shlibs=no
11221
      ;;
11222
 
11223
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11224
    # support.  Future versions do this automatically, but an explicit c++rt0.o
11225
    # does not break anything, and helps significantly (at the cost of a little
11226
    # extra space).
11227
    freebsd2.2*)
11228
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11229
      hardcode_libdir_flag_spec='-R$libdir'
11230
      hardcode_direct=yes
11231
      hardcode_shlibpath_var=no
11232
      ;;
11233
 
11234
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11235
    freebsd2*)
11236
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11237
      hardcode_direct=yes
11238
      hardcode_minus_L=yes
11239
      hardcode_shlibpath_var=no
11240
      ;;
11241
 
11242
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11243
    freebsd* | kfreebsd*-gnu)
11244
      archive_cmds='$CC -shared -o $lib $compiler_flags $libobjs $deplibs'
11245
      hardcode_libdir_flag_spec='-R$libdir'
11246
      hardcode_direct=yes
11247
      hardcode_shlibpath_var=no
11248
      ;;
11249
 
11250
    hpux9*)
11251
      if test "$GCC" = yes; then
11252
	archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $libobjs $deplibs~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11253
      else
11254
	archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11255
      fi
11256
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11257
      hardcode_libdir_separator=:
11258
      hardcode_direct=yes
11259
 
11260
      # hardcode_minus_L: Not really in the search PATH,
11261
      # but as the default location of the library.
11262
      hardcode_minus_L=yes
11263
      export_dynamic_flag_spec='${wl}-E'
11264
      ;;
11265
 
11266
    hpux10* | hpux11*)
11267
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11268
	case "$host_cpu" in
11269
	hppa*64*|ia64*)
11270
	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
11271
	  ;;
11272
	*)
11273
	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $libobjs $deplibs'
11274
	  ;;
11275
	esac
11276
      else
11277
	case "$host_cpu" in
11278
	hppa*64*|ia64*)
11279
	  archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
11280
	  ;;
11281
	*)
11282
	  archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11283
	  ;;
11284
	esac
11285
      fi
11286
      if test "$with_gnu_ld" = no; then
11287
	case "$host_cpu" in
11288
	hppa*64*)
11289
	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11290
	  hardcode_libdir_flag_spec_ld='+b $libdir'
11291
	  hardcode_libdir_separator=:
11292
	  hardcode_direct=no
11293
	  hardcode_shlibpath_var=no
11294
	  ;;
11295
	ia64*)
11296
	  hardcode_libdir_flag_spec='-L$libdir'
11297
	  hardcode_direct=no
11298
	  hardcode_shlibpath_var=no
11299
 
11300
	  # hardcode_minus_L: Not really in the search PATH,
11301
	  # but as the default location of the library.
11302
	  hardcode_minus_L=yes
11303
	  ;;
11304
	*)
11305
	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11306
	  hardcode_libdir_separator=:
11307
	  hardcode_direct=yes
11308
	  export_dynamic_flag_spec='${wl}-E'
11309
 
11310
	  # hardcode_minus_L: Not really in the search PATH,
11311
	  # but as the default location of the library.
11312
	  hardcode_minus_L=yes
11313
	  ;;
11314
	esac
11315
      fi
11316
      ;;
11317
 
11318
    irix5* | irix6* | nonstopux*)
11319
      if test "$GCC" = yes; then
11320
	archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11321
      else
11322
	archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11323
	hardcode_libdir_flag_spec_ld='-rpath $libdir'
11324
      fi
11325
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11326
      hardcode_libdir_separator=:
11327
      link_all_deplibs=yes
11328
      ;;
11329
 
11330
    netbsd*)
11331
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11332
	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11333
      else
11334
	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11335
      fi
11336
      hardcode_libdir_flag_spec='-R$libdir'
11337
      hardcode_direct=yes
11338
      hardcode_shlibpath_var=no
11339
      ;;
11340
 
11341
    newsos6)
11342
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11343
      hardcode_direct=yes
11344
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11345
      hardcode_libdir_separator=:
11346
      hardcode_shlibpath_var=no
11347
      ;;
11348
 
11349
    openbsd*)
11350
      hardcode_direct=yes
11351
      hardcode_shlibpath_var=no
11352
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11353
	archive_cmds='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
11354
	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11355
	export_dynamic_flag_spec='${wl}-E'
11356
      else
11357
       case $host_os in
11358
	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11359
	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11360
	   hardcode_libdir_flag_spec='-R$libdir'
11361
	   ;;
11362
	 *)
11363
	   archive_cmds='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
11364
	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11365
	   ;;
11366
       esac
11367
      fi
11368
      ;;
11369
 
11370
    os2*)
11371
      hardcode_libdir_flag_spec='-L$libdir'
11372
      hardcode_minus_L=yes
11373
      allow_undefined_flag=unsupported
11374
      archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $compiler_flags $libobjs $deplibs$output_objdir/$libname.def'
11375
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11376
      ;;
11377
 
11378
    osf3*)
11379
      if test "$GCC" = yes; then
11380
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11381
	archive_cmds='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11382
      else
11383
	allow_undefined_flag=' -expect_unresolved \*'
11384
	archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11385
      fi
11386
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11387
      hardcode_libdir_separator=:
11388
      ;;
11389
 
11390
    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11391
      if test "$GCC" = yes; then
11392
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11393
	archive_cmds='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11394
	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11395
      else
11396
	allow_undefined_flag=' -expect_unresolved \*'
11397
	archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11398
	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
11399
	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
11400
 
11401
	# Both c and cxx compiler support -rpath directly
11402
	hardcode_libdir_flag_spec='-rpath $libdir'
11403
      fi
11404
      hardcode_libdir_separator=:
11405
      ;;
11406
 
11407
    sco3.2v5*)
11408
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11409
      hardcode_shlibpath_var=no
11410
      export_dynamic_flag_spec='${wl}-Bexport'
11411
      runpath_var=LD_RUN_PATH
11412
      hardcode_runpath_var=yes
11413
      ;;
11414
 
11415
    solaris*)
11416
      no_undefined_flag=' -z text'
11417
      if test "$GCC" = yes; then
11418
	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
11419
	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11420
	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs~$rm $lib.exp'
11421
      else
11422
	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11423
	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11424
  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
11425
      fi
11426
      hardcode_libdir_flag_spec='-R$libdir'
11427
      hardcode_shlibpath_var=no
11428
      case $host_os in
11429
      solaris2.[0-5] | solaris2.[0-5].*) ;;
11430
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
11431
	whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
11432
      esac
11433
      link_all_deplibs=yes
11434
      ;;
11435
 
11436
    sunos4*)
11437
      if test "x$host_vendor" = xsequent; then
11438
	# Use $CC to link under sequent, because it throws in some extra .o
11439
	# files that make .init and .fini sections work.
11440
	archive_cmds='$CC -G ${wl}-h $soname -o $lib $compiler_flags $libobjs $deplibs'
11441
      else
11442
	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11443
      fi
11444
      hardcode_libdir_flag_spec='-L$libdir'
11445
      hardcode_direct=yes
11446
      hardcode_minus_L=yes
11447
      hardcode_shlibpath_var=no
11448
      ;;
11449
 
11450
    sysv4)
11451
      case $host_vendor in
11452
	sni)
11453
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11454
	  hardcode_direct=yes # is this really true???
11455
	;;
11456
	siemens)
11457
	  ## LD is ld it makes a PLAMLIB
11458
	  ## CC just makes a GrossModule.
11459
	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11460
	  reload_cmds='$CC -r -o $output$reload_objs'
11461
	  hardcode_direct=no
11462
        ;;
11463
	motorola)
11464
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11465
	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11466
	;;
11467
      esac
11468
      runpath_var='LD_RUN_PATH'
11469
      hardcode_shlibpath_var=no
11470
      ;;
11471
 
11472
    sysv4.3*)
11473
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11474
      hardcode_shlibpath_var=no
11475
      export_dynamic_flag_spec='-Bexport'
11476
      ;;
11477
 
11478
    sysv4*MP*)
11479
      if test -d /usr/nec; then
11480
	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11481
	hardcode_shlibpath_var=no
11482
	runpath_var=LD_RUN_PATH
11483
	hardcode_runpath_var=yes
11484
	ld_shlibs=yes
11485
      fi
11486
      ;;
11487
 
11488
    sysv4.2uw2*)
11489
      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11490
      hardcode_direct=yes
11491
      hardcode_minus_L=no
11492
      hardcode_shlibpath_var=no
11493
      hardcode_runpath_var=yes
11494
      runpath_var=LD_RUN_PATH
11495
      ;;
11496
 
11497
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
11498
      no_undefined_flag='${wl}-z ${wl}text'
11499
      if test "$GCC" = yes; then
11500
	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
11501
      else
11502
	archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
11503
      fi
11504
      runpath_var='LD_RUN_PATH'
11505
      hardcode_shlibpath_var=no
11506
      ;;
11507
 
11508
    sysv5*)
11509
      no_undefined_flag=' -z text'
11510
      # $CC -shared without GNU ld will not create a library from C++
11511
      # object files and a static libstdc++, better avoid it by now
11512
      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11513
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11514
  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
11515
      hardcode_libdir_flag_spec=
11516
      hardcode_shlibpath_var=no
11517
      runpath_var='LD_RUN_PATH'
11518
      ;;
11519
 
11520
    uts4*)
11521
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11522
      hardcode_libdir_flag_spec='-L$libdir'
11523
      hardcode_shlibpath_var=no
11524
      ;;
11525
 
11526
    *)
11527
      ld_shlibs=no
11528
      ;;
11529
    esac
11530
  fi
11531
 
216 andreas 11532
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11533
$as_echo "$ld_shlibs" >&6; }
88 andreas 11534
test "$ld_shlibs" = no && can_build_shared=no
11535
 
11536
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11537
if test "$GCC" = yes; then
11538
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11539
fi
11540
 
11541
#
11542
# Do we need to explicitly link libc?
11543
#
11544
case "x$archive_cmds_need_lc" in
11545
x|xyes)
11546
  # Assume -lc should be added
11547
  archive_cmds_need_lc=yes
11548
 
11549
  if test "$enable_shared" = yes && test "$GCC" = yes; then
11550
    case $archive_cmds in
11551
    *'~'*)
11552
      # FIXME: we may have to deal with multi-command sequences.
11553
      ;;
11554
    '$CC '*)
11555
      # Test whether the compiler implicitly links with -lc since on some
11556
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11557
      # to ld, don't add -lc before -lgcc.
216 andreas 11558
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11559
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
88 andreas 11560
      $rm conftest*
11561
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11562
 
11563
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11564
  (eval $ac_compile) 2>&5
11565
  ac_status=$?
216 andreas 11566
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 11567
  (exit $ac_status); } 2>conftest.err; then
11568
        soname=conftest
11569
        lib=conftest
11570
        libobjs=conftest.$ac_objext
11571
        deplibs=
11572
        wl=$lt_prog_compiler_wl
11573
        compiler_flags=-v
11574
        linker_flags=-v
11575
        verstring=
11576
        output_objdir=.
11577
        libname=conftest
11578
        lt_save_allow_undefined_flag=$allow_undefined_flag
11579
        allow_undefined_flag=
11580
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11581
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11582
  ac_status=$?
216 andreas 11583
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 11584
  (exit $ac_status); }
11585
        then
11586
	  archive_cmds_need_lc=no
11587
        else
11588
	  archive_cmds_need_lc=yes
11589
        fi
11590
        allow_undefined_flag=$lt_save_allow_undefined_flag
11591
      else
11592
        cat conftest.err 1>&5
11593
      fi
11594
      $rm conftest*
216 andreas 11595
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11596
$as_echo "$archive_cmds_need_lc" >&6; }
88 andreas 11597
      ;;
11598
    esac
11599
  fi
11600
  ;;
11601
esac
11602
 
216 andreas 11603
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11604
$as_echo_n "checking dynamic linker characteristics... " >&6; }
88 andreas 11605
library_names_spec=
11606
libname_spec='lib$name'
11607
soname_spec=
11608
shrext=".so"
11609
postinstall_cmds=
11610
postuninstall_cmds=
11611
finish_cmds=
11612
finish_eval=
11613
shlibpath_var=
11614
shlibpath_overrides_runpath=unknown
11615
version_type=none
11616
dynamic_linker="$host_os ld.so"
11617
sys_lib_dlsearch_path_spec="/lib /usr/lib"
11618
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11619
need_lib_prefix=unknown
11620
hardcode_into_libs=no
11621
 
11622
# when you set need_version to no, make sure it does not cause -set_version
11623
# flags to be left without arguments
11624
need_version=unknown
11625
 
11626
case $host_os in
11627
aix3*)
11628
  version_type=linux
11629
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11630
  shlibpath_var=LIBPATH
11631
 
11632
  # AIX 3 has no versioning support, so we append a major version to the name.
11633
  soname_spec='${libname}${release}${shared_ext}$major'
11634
  ;;
11635
 
11636
aix4* | aix5*)
11637
  version_type=linux
11638
  need_lib_prefix=no
11639
  need_version=no
11640
  hardcode_into_libs=yes
11641
  if test "$host_cpu" = ia64; then
11642
    # AIX 5 supports IA64
11643
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11644
    shlibpath_var=LD_LIBRARY_PATH
11645
  else
11646
    # With GCC up to 2.95.x, collect2 would create an import file
11647
    # for dependence libraries.  The import file would start with
11648
    # the line `#! .'.  This would cause the generated library to
11649
    # depend on `.', always an invalid library.  This was fixed in
11650
    # development snapshots of GCC prior to 3.0.
11651
    case $host_os in
11652
      aix4 | aix4.[01] | aix4.[01].*)
11653
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11654
	   echo ' yes '
11655
	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11656
	:
11657
      else
11658
	can_build_shared=no
11659
      fi
11660
      ;;
11661
    esac
11662
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11663
    # soname into executable. Probably we can add versioning support to
11664
    # collect2, so additional links can be useful in future.
11665
    if test "$aix_use_runtimelinking" = yes; then
11666
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11667
      # instead of lib<name>.a to let people know that these are not
11668
      # typical AIX shared libraries.
11669
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11670
    else
11671
      # We preserve .a as extension for shared libraries through AIX4.2
11672
      # and later when we are not doing run time linking.
11673
      library_names_spec='${libname}${release}.a $libname.a'
11674
      soname_spec='${libname}${release}${shared_ext}$major'
11675
    fi
11676
    shlibpath_var=LIBPATH
11677
  fi
11678
  ;;
11679
 
11680
amigaos*)
11681
  library_names_spec='$libname.ixlibrary $libname.a'
11682
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
11683
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
11684
  ;;
11685
 
11686
beos*)
11687
  library_names_spec='${libname}${shared_ext}'
11688
  dynamic_linker="$host_os ld.so"
11689
  shlibpath_var=LIBRARY_PATH
11690
  ;;
11691
 
11692
bsdi4*)
11693
  version_type=linux
11694
  need_version=no
11695
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11696
  soname_spec='${libname}${release}${shared_ext}$major'
11697
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11698
  shlibpath_var=LD_LIBRARY_PATH
11699
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11700
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11701
  # the default ld.so.conf also contains /usr/contrib/lib and
11702
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11703
  # libtool to hard-code these into programs
11704
  ;;
11705
 
11706
cygwin* | mingw* | pw32*)
11707
  version_type=windows
11708
  shrext=".dll"
11709
  need_version=no
11710
  need_lib_prefix=no
11711
 
11712
  case $GCC,$host_os in
11713
  yes,cygwin* | yes,mingw* | yes,pw32*)
11714
    library_names_spec='$libname.dll.a'
11715
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11716
    postinstall_cmds='base_file=`basename \${file}`~
11717
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11718
      dldir=$destdir/`dirname \$dlpath`~
11719
      test -d \$dldir || mkdir -p \$dldir~
11720
      $install_prog $dir/$dlname \$dldir/$dlname'
11721
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11722
      dlpath=$dir/\$dldll~
11723
       $rm \$dlpath'
11724
    shlibpath_overrides_runpath=yes
11725
 
11726
    case $host_os in
11727
    cygwin*)
11728
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11729
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11730
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11731
      ;;
11732
    mingw*)
11733
      # MinGW DLLs use traditional 'lib' prefix
11734
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11735
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11736
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11737
        # It is most probably a Windows format PATH printed by
11738
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
11739
        # path with ; separators, and with drive letters. We can handle the
11740
        # drive letters (cygwin fileutils understands them), so leave them,
11741
        # especially as we might pass files found there to a mingw objdump,
11742
        # which wouldn't understand a cygwinified path. Ahh.
11743
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11744
      else
11745
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11746
      fi
11747
      ;;
11748
    pw32*)
11749
      # pw32 DLLs use 'pw' prefix rather than 'lib'
11750
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11751
      ;;
11752
    esac
11753
    ;;
11754
 
11755
  *)
11756
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11757
    ;;
11758
  esac
11759
  dynamic_linker='Win32 ld.exe'
11760
  # FIXME: first we should search . and the directory the executable is in
11761
  shlibpath_var=PATH
11762
  ;;
11763
 
11764
darwin* | rhapsody*)
11765
  dynamic_linker="$host_os dyld"
11766
  version_type=darwin
11767
  need_lib_prefix=no
11768
  need_version=no
11769
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11770
  soname_spec='${libname}${release}${major}$shared_ext'
11771
  shlibpath_overrides_runpath=yes
11772
  shlibpath_var=DYLD_LIBRARY_PATH
11773
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11774
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11775
  if test "$GCC" = yes; then
11776
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
11777
  else
11778
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11779
  fi
11780
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11781
  ;;
11782
 
11783
dgux*)
11784
  version_type=linux
11785
  need_lib_prefix=no
11786
  need_version=no
11787
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11788
  soname_spec='${libname}${release}${shared_ext}$major'
11789
  shlibpath_var=LD_LIBRARY_PATH
11790
  ;;
11791
 
11792
freebsd1*)
11793
  dynamic_linker=no
11794
  ;;
11795
 
11796
kfreebsd*-gnu*)
11797
  version_type=linux
11798
  need_lib_prefix=no
11799
  need_version=no
11800
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11801
  soname_spec='${libname}${release}${shared_ext}$major'
11802
  shlibpath_var=LD_LIBRARY_PATH
11803
  shlibpath_overrides_runpath=no
11804
  hardcode_into_libs=yes
11805
  dynamic_linker='GNU ld.so'
11806
  ;;
11807
 
11808
freebsd*)
11809
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11810
  version_type=freebsd-$objformat
11811
  case $version_type in
11812
    freebsd-elf*)
11813
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11814
      need_version=no
11815
      need_lib_prefix=no
11816
      ;;
11817
    freebsd-*)
11818
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11819
      need_version=yes
11820
      ;;
11821
  esac
11822
  shlibpath_var=LD_LIBRARY_PATH
11823
  case $host_os in
11824
  freebsd2*)
11825
    shlibpath_overrides_runpath=yes
11826
    ;;
11827
  freebsd3.01* | freebsdelf3.01*)
11828
    shlibpath_overrides_runpath=yes
11829
    hardcode_into_libs=yes
11830
    ;;
11831
  *) # from 3.2 on
11832
    shlibpath_overrides_runpath=no
11833
    hardcode_into_libs=yes
11834
    ;;
11835
  esac
11836
  ;;
11837
 
11838
gnu*)
11839
  version_type=linux
11840
  need_lib_prefix=no
11841
  need_version=no
11842
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11843
  soname_spec='${libname}${release}${shared_ext}$major'
11844
  shlibpath_var=LD_LIBRARY_PATH
11845
  hardcode_into_libs=yes
11846
  ;;
11847
 
11848
hpux9* | hpux10* | hpux11*)
11849
  # Give a soname corresponding to the major version so that dld.sl refuses to
11850
  # link against other versions.
11851
  version_type=sunos
11852
  need_lib_prefix=no
11853
  need_version=no
11854
  case "$host_cpu" in
11855
  ia64*)
11856
    shrext='.so'
11857
    hardcode_into_libs=yes
11858
    dynamic_linker="$host_os dld.so"
11859
    shlibpath_var=LD_LIBRARY_PATH
11860
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11861
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11862
    soname_spec='${libname}${release}${shared_ext}$major'
11863
    if test "X$HPUX_IA64_MODE" = X32; then
11864
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11865
    else
11866
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11867
    fi
11868
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11869
    ;;
11870
   hppa*64*)
11871
     shrext='.sl'
11872
     hardcode_into_libs=yes
11873
     dynamic_linker="$host_os dld.sl"
11874
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11875
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11876
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11877
     soname_spec='${libname}${release}${shared_ext}$major'
11878
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11879
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11880
     ;;
11881
   *)
11882
    shrext='.sl'
11883
    dynamic_linker="$host_os dld.sl"
11884
    shlibpath_var=SHLIB_PATH
11885
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11886
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11887
    soname_spec='${libname}${release}${shared_ext}$major'
11888
    ;;
11889
  esac
11890
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
11891
  postinstall_cmds='chmod 555 $lib'
11892
  ;;
11893
 
11894
irix5* | irix6* | nonstopux*)
11895
  case $host_os in
11896
    nonstopux*) version_type=nonstopux ;;
11897
    *)
11898
	if test "$lt_cv_prog_gnu_ld" = yes; then
11899
		version_type=linux
11900
	else
11901
		version_type=irix
11902
	fi ;;
11903
  esac
11904
  need_lib_prefix=no
11905
  need_version=no
11906
  soname_spec='${libname}${release}${shared_ext}$major'
11907
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11908
  case $host_os in
11909
  irix5* | nonstopux*)
11910
    libsuff= shlibsuff=
11911
    ;;
11912
  *)
11913
    case $LD in # libtool.m4 will add one of these switches to LD
11914
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11915
      libsuff= shlibsuff= libmagic=32-bit;;
11916
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11917
      libsuff=32 shlibsuff=N32 libmagic=N32;;
11918
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11919
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11920
    *) libsuff= shlibsuff= libmagic=never-match;;
11921
    esac
11922
    ;;
11923
  esac
11924
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11925
  shlibpath_overrides_runpath=no
11926
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11927
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11928
  hardcode_into_libs=yes
11929
  ;;
11930
 
11931
# No shared lib support for Linux oldld, aout, or coff.
11932
linux*oldld* | linux*aout* | linux*coff*)
11933
  dynamic_linker=no
11934
  ;;
11935
 
11936
# This must be Linux ELF.
11937
linux*)
11938
  version_type=linux
11939
  need_lib_prefix=no
11940
  need_version=no
11941
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11942
  soname_spec='${libname}${release}${shared_ext}$major'
11943
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11944
  libsuff=
11945
  if test "x$LINUX_64_MODE" = x64; then
11946
    # Some platforms are per default 64-bit, so there's no /lib64
11947
    if test -d /lib64 -a ! -h /lib64; then
11948
      libsuff=64
11949
    fi
11950
  fi
11951
  shlibpath_var=LD_LIBRARY_PATH
11952
  shlibpath_overrides_runpath=no
11953
  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
11954
  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
11955
  # This implies no fast_install, which is unacceptable.
11956
  # Some rework will be needed to allow for fast_install
11957
  # before this can be enabled.
11958
  hardcode_into_libs=yes
11959
 
11960
  # We used to test for /lib/ld.so.1 and disable shared libraries on
11961
  # powerpc, because MkLinux only supported shared libraries with the
11962
  # GNU dynamic linker.  Since this was broken with cross compilers,
11963
  # most powerpc-linux boxes support dynamic linking these days and
11964
  # people can always --disable-shared, the test was removed, and we
11965
  # assume the GNU/Linux dynamic linker is in use.
11966
  dynamic_linker='GNU/Linux ld.so'
11967
  ;;
11968
 
11969
netbsd*)
11970
  version_type=sunos
11971
  need_lib_prefix=no
11972
  need_version=no
11973
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11974
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11975
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11976
    dynamic_linker='NetBSD (a.out) ld.so'
11977
  else
11978
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11979
    soname_spec='${libname}${release}${shared_ext}$major'
11980
    dynamic_linker='NetBSD ld.elf_so'
11981
  fi
11982
  shlibpath_var=LD_LIBRARY_PATH
11983
  shlibpath_overrides_runpath=yes
11984
  hardcode_into_libs=yes
11985
  ;;
11986
 
11987
newsos6)
11988
  version_type=linux
11989
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11990
  shlibpath_var=LD_LIBRARY_PATH
11991
  shlibpath_overrides_runpath=yes
11992
  ;;
11993
 
11994
nto-qnx*)
11995
  version_type=linux
11996
  need_lib_prefix=no
11997
  need_version=no
11998
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11999
  soname_spec='${libname}${release}${shared_ext}$major'
12000
  shlibpath_var=LD_LIBRARY_PATH
12001
  shlibpath_overrides_runpath=yes
12002
  ;;
12003
 
12004
openbsd*)
12005
  version_type=sunos
12006
  need_lib_prefix=no
12007
  need_version=no
12008
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12009
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12010
  shlibpath_var=LD_LIBRARY_PATH
12011
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12012
    case $host_os in
12013
      openbsd2.[89] | openbsd2.[89].*)
12014
	shlibpath_overrides_runpath=no
12015
	;;
12016
      *)
12017
	shlibpath_overrides_runpath=yes
12018
	;;
12019
      esac
12020
  else
12021
    shlibpath_overrides_runpath=yes
12022
  fi
12023
  ;;
12024
 
12025
os2*)
12026
  libname_spec='$name'
12027
  shrext=".dll"
12028
  need_lib_prefix=no
12029
  library_names_spec='$libname${shared_ext} $libname.a'
12030
  dynamic_linker='OS/2 ld.exe'
12031
  shlibpath_var=LIBPATH
12032
  ;;
12033
 
12034
osf3* | osf4* | osf5*)
12035
  version_type=osf
12036
  need_lib_prefix=no
12037
  need_version=no
12038
  soname_spec='${libname}${release}${shared_ext}$major'
12039
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12040
  shlibpath_var=LD_LIBRARY_PATH
12041
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12042
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12043
  ;;
12044
 
12045
sco3.2v5*)
12046
  version_type=osf
12047
  soname_spec='${libname}${release}${shared_ext}$major'
12048
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12049
  shlibpath_var=LD_LIBRARY_PATH
12050
  ;;
12051
 
12052
solaris*)
12053
  version_type=linux
12054
  need_lib_prefix=no
12055
  need_version=no
12056
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12057
  soname_spec='${libname}${release}${shared_ext}$major'
12058
  shlibpath_var=LD_LIBRARY_PATH
12059
  shlibpath_overrides_runpath=yes
12060
  hardcode_into_libs=yes
12061
  # ldd complains unless libraries are executable
12062
  postinstall_cmds='chmod +x $lib'
12063
  ;;
12064
 
12065
sunos4*)
12066
  version_type=sunos
12067
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12068
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12069
  shlibpath_var=LD_LIBRARY_PATH
12070
  shlibpath_overrides_runpath=yes
12071
  if test "$with_gnu_ld" = yes; then
12072
    need_lib_prefix=no
12073
  fi
12074
  need_version=yes
12075
  ;;
12076
 
12077
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12078
  version_type=linux
12079
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12080
  soname_spec='${libname}${release}${shared_ext}$major'
12081
  shlibpath_var=LD_LIBRARY_PATH
12082
  case $host_vendor in
12083
    sni)
12084
      shlibpath_overrides_runpath=no
12085
      need_lib_prefix=no
12086
      export_dynamic_flag_spec='${wl}-Blargedynsym'
12087
      runpath_var=LD_RUN_PATH
12088
      ;;
12089
    siemens)
12090
      need_lib_prefix=no
12091
      ;;
12092
    motorola)
12093
      need_lib_prefix=no
12094
      need_version=no
12095
      shlibpath_overrides_runpath=no
12096
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12097
      ;;
12098
  esac
12099
  ;;
12100
 
12101
sysv4*MP*)
12102
  if test -d /usr/nec ;then
12103
    version_type=linux
12104
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12105
    soname_spec='$libname${shared_ext}.$major'
12106
    shlibpath_var=LD_LIBRARY_PATH
12107
  fi
12108
  ;;
12109
 
12110
uts4*)
12111
  version_type=linux
12112
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12113
  soname_spec='${libname}${release}${shared_ext}$major'
12114
  shlibpath_var=LD_LIBRARY_PATH
12115
  ;;
12116
 
12117
*)
12118
  dynamic_linker=no
12119
  ;;
12120
esac
216 andreas 12121
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12122
$as_echo "$dynamic_linker" >&6; }
88 andreas 12123
test "$dynamic_linker" = no && can_build_shared=no
12124
 
216 andreas 12125
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12126
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
88 andreas 12127
hardcode_action=
12128
if test -n "$hardcode_libdir_flag_spec" || \
12129
   test -n "$runpath_var " || \
12130
   test "X$hardcode_automatic"="Xyes" ; then
12131
 
12132
  # We can hardcode non-existant directories.
12133
  if test "$hardcode_direct" != no &&
12134
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12135
     # have to relink, otherwise we might link with an installed library
12136
     # when we should be linking with a yet-to-be-installed one
12137
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
12138
     test "$hardcode_minus_L" != no; then
12139
    # Linking always hardcodes the temporary library directory.
12140
    hardcode_action=relink
12141
  else
12142
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12143
    hardcode_action=immediate
12144
  fi
12145
else
12146
  # We cannot hardcode anything, or else we can only hardcode existing
12147
  # directories.
12148
  hardcode_action=unsupported
12149
fi
216 andreas 12150
{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
12151
$as_echo "$hardcode_action" >&6; }
88 andreas 12152
 
12153
if test "$hardcode_action" = relink; then
12154
  # Fast installation is not supported
12155
  enable_fast_install=no
12156
elif test "$shlibpath_overrides_runpath" = yes ||
12157
     test "$enable_shared" = no; then
12158
  # Fast installation is not necessary
12159
  enable_fast_install=needless
12160
fi
12161
 
12162
striplib=
12163
old_striplib=
216 andreas 12164
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12165
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
88 andreas 12166
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12167
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12168
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
216 andreas 12169
  { $as_echo "$as_me:$LINENO: result: yes" >&5
12170
$as_echo "yes" >&6; }
88 andreas 12171
else
12172
# FIXME - insert some real tests, host_os isn't really good enough
12173
  case $host_os in
12174
   darwin*)
12175
       if test -n "$STRIP" ; then
12176
         striplib="$STRIP -x"
216 andreas 12177
         { $as_echo "$as_me:$LINENO: result: yes" >&5
12178
$as_echo "yes" >&6; }
88 andreas 12179
       else
216 andreas 12180
  { $as_echo "$as_me:$LINENO: result: no" >&5
12181
$as_echo "no" >&6; }
88 andreas 12182
fi
12183
       ;;
12184
   *)
216 andreas 12185
  { $as_echo "$as_me:$LINENO: result: no" >&5
12186
$as_echo "no" >&6; }
88 andreas 12187
    ;;
12188
  esac
12189
fi
12190
 
12191
if test "x$enable_dlopen" != xyes; then
12192
  enable_dlopen=unknown
12193
  enable_dlopen_self=unknown
12194
  enable_dlopen_self_static=unknown
12195
else
12196
  lt_cv_dlopen=no
12197
  lt_cv_dlopen_libs=
12198
 
12199
  case $host_os in
12200
  beos*)
12201
    lt_cv_dlopen="load_add_on"
12202
    lt_cv_dlopen_libs=
12203
    lt_cv_dlopen_self=yes
12204
    ;;
12205
 
12206
  mingw* | pw32*)
12207
    lt_cv_dlopen="LoadLibrary"
12208
    lt_cv_dlopen_libs=
12209
   ;;
12210
 
12211
  cygwin*)
12212
    lt_cv_dlopen="dlopen"
12213
    lt_cv_dlopen_libs=
12214
   ;;
12215
 
12216
  darwin*)
12217
  # if libdl is installed we need to link against it
216 andreas 12218
    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12219
$as_echo_n "checking for dlopen in -ldl... " >&6; }
88 andreas 12220
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
216 andreas 12221
  $as_echo_n "(cached) " >&6
88 andreas 12222
else
12223
  ac_check_lib_save_LIBS=$LIBS
12224
LIBS="-ldl  $LIBS"
12225
cat >conftest.$ac_ext <<_ACEOF
12226
/* confdefs.h.  */
12227
_ACEOF
12228
cat confdefs.h >>conftest.$ac_ext
12229
cat >>conftest.$ac_ext <<_ACEOF
12230
/* end confdefs.h.  */
12231
 
12232
/* Override any GCC internal prototype to avoid an error.
12233
   Use char because int might match the return type of a GCC
12234
   builtin and then its argument prototype would still apply.  */
12235
#ifdef __cplusplus
12236
extern "C"
12237
#endif
12238
char dlopen ();
12239
int
12240
main ()
12241
{
12242
return dlopen ();
12243
  ;
12244
  return 0;
12245
}
12246
_ACEOF
12247
rm -f conftest.$ac_objext conftest$ac_exeext
12248
if { (ac_try="$ac_link"
12249
case "(($ac_try" in
12250
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12251
  *) ac_try_echo=$ac_try;;
12252
esac
216 andreas 12253
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12254
$as_echo "$ac_try_echo") >&5
88 andreas 12255
  (eval "$ac_link") 2>conftest.er1
12256
  ac_status=$?
12257
  grep -v '^ *+' conftest.er1 >conftest.err
12258
  rm -f conftest.er1
12259
  cat conftest.err >&5
216 andreas 12260
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 12261
  (exit $ac_status); } && {
12262
	 test -z "$ac_c_werror_flag" ||
12263
	 test ! -s conftest.err
216 andreas 12264
       } && test -s conftest$ac_exeext && {
12265
	 test "$cross_compiling" = yes ||
12266
	 $as_test_x conftest$ac_exeext
12267
       }; then
88 andreas 12268
  ac_cv_lib_dl_dlopen=yes
12269
else
216 andreas 12270
  $as_echo "$as_me: failed program was:" >&5
88 andreas 12271
sed 's/^/| /' conftest.$ac_ext >&5
12272
 
12273
	ac_cv_lib_dl_dlopen=no
12274
fi
12275
 
216 andreas 12276
rm -rf conftest.dSYM
88 andreas 12277
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12278
      conftest$ac_exeext conftest.$ac_ext
12279
LIBS=$ac_check_lib_save_LIBS
12280
fi
216 andreas 12281
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12282
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12283
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
88 andreas 12284
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12285
else
12286
 
12287
    lt_cv_dlopen="dyld"
12288
    lt_cv_dlopen_libs=
12289
    lt_cv_dlopen_self=yes
12290
 
12291
fi
12292
 
12293
   ;;
12294
 
12295
  *)
216 andreas 12296
    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
12297
$as_echo_n "checking for shl_load... " >&6; }
88 andreas 12298
if test "${ac_cv_func_shl_load+set}" = set; then
216 andreas 12299
  $as_echo_n "(cached) " >&6
88 andreas 12300
else
12301
  cat >conftest.$ac_ext <<_ACEOF
12302
/* confdefs.h.  */
12303
_ACEOF
12304
cat confdefs.h >>conftest.$ac_ext
12305
cat >>conftest.$ac_ext <<_ACEOF
12306
/* end confdefs.h.  */
12307
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12308
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12309
#define shl_load innocuous_shl_load
12310
 
12311
/* System header to define __stub macros and hopefully few prototypes,
12312
    which can conflict with char shl_load (); below.
12313
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12314
    <limits.h> exists even on freestanding compilers.  */
12315
 
12316
#ifdef __STDC__
12317
# include <limits.h>
12318
#else
12319
# include <assert.h>
12320
#endif
12321
 
12322
#undef shl_load
12323
 
12324
/* Override any GCC internal prototype to avoid an error.
12325
   Use char because int might match the return type of a GCC
12326
   builtin and then its argument prototype would still apply.  */
12327
#ifdef __cplusplus
12328
extern "C"
12329
#endif
12330
char shl_load ();
12331
/* The GNU C library defines this for functions which it implements
12332
    to always fail with ENOSYS.  Some functions are actually named
12333
    something starting with __ and the normal name is an alias.  */
12334
#if defined __stub_shl_load || defined __stub___shl_load
12335
choke me
12336
#endif
12337
 
12338
int
12339
main ()
12340
{
12341
return shl_load ();
12342
  ;
12343
  return 0;
12344
}
12345
_ACEOF
12346
rm -f conftest.$ac_objext conftest$ac_exeext
12347
if { (ac_try="$ac_link"
12348
case "(($ac_try" in
12349
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12350
  *) ac_try_echo=$ac_try;;
12351
esac
216 andreas 12352
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12353
$as_echo "$ac_try_echo") >&5
88 andreas 12354
  (eval "$ac_link") 2>conftest.er1
12355
  ac_status=$?
12356
  grep -v '^ *+' conftest.er1 >conftest.err
12357
  rm -f conftest.er1
12358
  cat conftest.err >&5
216 andreas 12359
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 12360
  (exit $ac_status); } && {
12361
	 test -z "$ac_c_werror_flag" ||
12362
	 test ! -s conftest.err
216 andreas 12363
       } && test -s conftest$ac_exeext && {
12364
	 test "$cross_compiling" = yes ||
12365
	 $as_test_x conftest$ac_exeext
12366
       }; then
88 andreas 12367
  ac_cv_func_shl_load=yes
12368
else
216 andreas 12369
  $as_echo "$as_me: failed program was:" >&5
88 andreas 12370
sed 's/^/| /' conftest.$ac_ext >&5
12371
 
12372
	ac_cv_func_shl_load=no
12373
fi
12374
 
216 andreas 12375
rm -rf conftest.dSYM
88 andreas 12376
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12377
      conftest$ac_exeext conftest.$ac_ext
12378
fi
216 andreas 12379
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12380
$as_echo "$ac_cv_func_shl_load" >&6; }
12381
if test "x$ac_cv_func_shl_load" = x""yes; then
88 andreas 12382
  lt_cv_dlopen="shl_load"
12383
else
216 andreas 12384
  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12385
$as_echo_n "checking for shl_load in -ldld... " >&6; }
88 andreas 12386
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
216 andreas 12387
  $as_echo_n "(cached) " >&6
88 andreas 12388
else
12389
  ac_check_lib_save_LIBS=$LIBS
12390
LIBS="-ldld  $LIBS"
12391
cat >conftest.$ac_ext <<_ACEOF
12392
/* confdefs.h.  */
12393
_ACEOF
12394
cat confdefs.h >>conftest.$ac_ext
12395
cat >>conftest.$ac_ext <<_ACEOF
12396
/* end confdefs.h.  */
12397
 
12398
/* Override any GCC internal prototype to avoid an error.
12399
   Use char because int might match the return type of a GCC
12400
   builtin and then its argument prototype would still apply.  */
12401
#ifdef __cplusplus
12402
extern "C"
12403
#endif
12404
char shl_load ();
12405
int
12406
main ()
12407
{
12408
return shl_load ();
12409
  ;
12410
  return 0;
12411
}
12412
_ACEOF
12413
rm -f conftest.$ac_objext conftest$ac_exeext
12414
if { (ac_try="$ac_link"
12415
case "(($ac_try" in
12416
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12417
  *) ac_try_echo=$ac_try;;
12418
esac
216 andreas 12419
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12420
$as_echo "$ac_try_echo") >&5
88 andreas 12421
  (eval "$ac_link") 2>conftest.er1
12422
  ac_status=$?
12423
  grep -v '^ *+' conftest.er1 >conftest.err
12424
  rm -f conftest.er1
12425
  cat conftest.err >&5
216 andreas 12426
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 12427
  (exit $ac_status); } && {
12428
	 test -z "$ac_c_werror_flag" ||
12429
	 test ! -s conftest.err
216 andreas 12430
       } && test -s conftest$ac_exeext && {
12431
	 test "$cross_compiling" = yes ||
12432
	 $as_test_x conftest$ac_exeext
12433
       }; then
88 andreas 12434
  ac_cv_lib_dld_shl_load=yes
12435
else
216 andreas 12436
  $as_echo "$as_me: failed program was:" >&5
88 andreas 12437
sed 's/^/| /' conftest.$ac_ext >&5
12438
 
12439
	ac_cv_lib_dld_shl_load=no
12440
fi
12441
 
216 andreas 12442
rm -rf conftest.dSYM
88 andreas 12443
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12444
      conftest$ac_exeext conftest.$ac_ext
12445
LIBS=$ac_check_lib_save_LIBS
12446
fi
216 andreas 12447
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12448
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12449
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
88 andreas 12450
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12451
else
216 andreas 12452
  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
12453
$as_echo_n "checking for dlopen... " >&6; }
88 andreas 12454
if test "${ac_cv_func_dlopen+set}" = set; then
216 andreas 12455
  $as_echo_n "(cached) " >&6
88 andreas 12456
else
12457
  cat >conftest.$ac_ext <<_ACEOF
12458
/* confdefs.h.  */
12459
_ACEOF
12460
cat confdefs.h >>conftest.$ac_ext
12461
cat >>conftest.$ac_ext <<_ACEOF
12462
/* end confdefs.h.  */
12463
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12464
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12465
#define dlopen innocuous_dlopen
12466
 
12467
/* System header to define __stub macros and hopefully few prototypes,
12468
    which can conflict with char dlopen (); below.
12469
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12470
    <limits.h> exists even on freestanding compilers.  */
12471
 
12472
#ifdef __STDC__
12473
# include <limits.h>
12474
#else
12475
# include <assert.h>
12476
#endif
12477
 
12478
#undef dlopen
12479
 
12480
/* Override any GCC internal prototype to avoid an error.
12481
   Use char because int might match the return type of a GCC
12482
   builtin and then its argument prototype would still apply.  */
12483
#ifdef __cplusplus
12484
extern "C"
12485
#endif
12486
char dlopen ();
12487
/* The GNU C library defines this for functions which it implements
12488
    to always fail with ENOSYS.  Some functions are actually named
12489
    something starting with __ and the normal name is an alias.  */
12490
#if defined __stub_dlopen || defined __stub___dlopen
12491
choke me
12492
#endif
12493
 
12494
int
12495
main ()
12496
{
12497
return dlopen ();
12498
  ;
12499
  return 0;
12500
}
12501
_ACEOF
12502
rm -f conftest.$ac_objext conftest$ac_exeext
12503
if { (ac_try="$ac_link"
12504
case "(($ac_try" in
12505
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12506
  *) ac_try_echo=$ac_try;;
12507
esac
216 andreas 12508
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12509
$as_echo "$ac_try_echo") >&5
88 andreas 12510
  (eval "$ac_link") 2>conftest.er1
12511
  ac_status=$?
12512
  grep -v '^ *+' conftest.er1 >conftest.err
12513
  rm -f conftest.er1
12514
  cat conftest.err >&5
216 andreas 12515
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 12516
  (exit $ac_status); } && {
12517
	 test -z "$ac_c_werror_flag" ||
12518
	 test ! -s conftest.err
216 andreas 12519
       } && test -s conftest$ac_exeext && {
12520
	 test "$cross_compiling" = yes ||
12521
	 $as_test_x conftest$ac_exeext
12522
       }; then
88 andreas 12523
  ac_cv_func_dlopen=yes
12524
else
216 andreas 12525
  $as_echo "$as_me: failed program was:" >&5
88 andreas 12526
sed 's/^/| /' conftest.$ac_ext >&5
12527
 
12528
	ac_cv_func_dlopen=no
12529
fi
12530
 
216 andreas 12531
rm -rf conftest.dSYM
88 andreas 12532
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12533
      conftest$ac_exeext conftest.$ac_ext
12534
fi
216 andreas 12535
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12536
$as_echo "$ac_cv_func_dlopen" >&6; }
12537
if test "x$ac_cv_func_dlopen" = x""yes; then
88 andreas 12538
  lt_cv_dlopen="dlopen"
12539
else
216 andreas 12540
  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12541
$as_echo_n "checking for dlopen in -ldl... " >&6; }
88 andreas 12542
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
216 andreas 12543
  $as_echo_n "(cached) " >&6
88 andreas 12544
else
12545
  ac_check_lib_save_LIBS=$LIBS
12546
LIBS="-ldl  $LIBS"
12547
cat >conftest.$ac_ext <<_ACEOF
12548
/* confdefs.h.  */
12549
_ACEOF
12550
cat confdefs.h >>conftest.$ac_ext
12551
cat >>conftest.$ac_ext <<_ACEOF
12552
/* end confdefs.h.  */
12553
 
12554
/* Override any GCC internal prototype to avoid an error.
12555
   Use char because int might match the return type of a GCC
12556
   builtin and then its argument prototype would still apply.  */
12557
#ifdef __cplusplus
12558
extern "C"
12559
#endif
12560
char dlopen ();
12561
int
12562
main ()
12563
{
12564
return dlopen ();
12565
  ;
12566
  return 0;
12567
}
12568
_ACEOF
12569
rm -f conftest.$ac_objext conftest$ac_exeext
12570
if { (ac_try="$ac_link"
12571
case "(($ac_try" in
12572
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12573
  *) ac_try_echo=$ac_try;;
12574
esac
216 andreas 12575
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12576
$as_echo "$ac_try_echo") >&5
88 andreas 12577
  (eval "$ac_link") 2>conftest.er1
12578
  ac_status=$?
12579
  grep -v '^ *+' conftest.er1 >conftest.err
12580
  rm -f conftest.er1
12581
  cat conftest.err >&5
216 andreas 12582
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 12583
  (exit $ac_status); } && {
12584
	 test -z "$ac_c_werror_flag" ||
12585
	 test ! -s conftest.err
216 andreas 12586
       } && test -s conftest$ac_exeext && {
12587
	 test "$cross_compiling" = yes ||
12588
	 $as_test_x conftest$ac_exeext
12589
       }; then
88 andreas 12590
  ac_cv_lib_dl_dlopen=yes
12591
else
216 andreas 12592
  $as_echo "$as_me: failed program was:" >&5
88 andreas 12593
sed 's/^/| /' conftest.$ac_ext >&5
12594
 
12595
	ac_cv_lib_dl_dlopen=no
12596
fi
12597
 
216 andreas 12598
rm -rf conftest.dSYM
88 andreas 12599
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12600
      conftest$ac_exeext conftest.$ac_ext
12601
LIBS=$ac_check_lib_save_LIBS
12602
fi
216 andreas 12603
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12604
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12605
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
88 andreas 12606
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12607
else
216 andreas 12608
  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12609
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
88 andreas 12610
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
216 andreas 12611
  $as_echo_n "(cached) " >&6
88 andreas 12612
else
12613
  ac_check_lib_save_LIBS=$LIBS
12614
LIBS="-lsvld  $LIBS"
12615
cat >conftest.$ac_ext <<_ACEOF
12616
/* confdefs.h.  */
12617
_ACEOF
12618
cat confdefs.h >>conftest.$ac_ext
12619
cat >>conftest.$ac_ext <<_ACEOF
12620
/* end confdefs.h.  */
12621
 
12622
/* Override any GCC internal prototype to avoid an error.
12623
   Use char because int might match the return type of a GCC
12624
   builtin and then its argument prototype would still apply.  */
12625
#ifdef __cplusplus
12626
extern "C"
12627
#endif
12628
char dlopen ();
12629
int
12630
main ()
12631
{
12632
return dlopen ();
12633
  ;
12634
  return 0;
12635
}
12636
_ACEOF
12637
rm -f conftest.$ac_objext conftest$ac_exeext
12638
if { (ac_try="$ac_link"
12639
case "(($ac_try" in
12640
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12641
  *) ac_try_echo=$ac_try;;
12642
esac
216 andreas 12643
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12644
$as_echo "$ac_try_echo") >&5
88 andreas 12645
  (eval "$ac_link") 2>conftest.er1
12646
  ac_status=$?
12647
  grep -v '^ *+' conftest.er1 >conftest.err
12648
  rm -f conftest.er1
12649
  cat conftest.err >&5
216 andreas 12650
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 12651
  (exit $ac_status); } && {
12652
	 test -z "$ac_c_werror_flag" ||
12653
	 test ! -s conftest.err
216 andreas 12654
       } && test -s conftest$ac_exeext && {
12655
	 test "$cross_compiling" = yes ||
12656
	 $as_test_x conftest$ac_exeext
12657
       }; then
88 andreas 12658
  ac_cv_lib_svld_dlopen=yes
12659
else
216 andreas 12660
  $as_echo "$as_me: failed program was:" >&5
88 andreas 12661
sed 's/^/| /' conftest.$ac_ext >&5
12662
 
12663
	ac_cv_lib_svld_dlopen=no
12664
fi
12665
 
216 andreas 12666
rm -rf conftest.dSYM
88 andreas 12667
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12668
      conftest$ac_exeext conftest.$ac_ext
12669
LIBS=$ac_check_lib_save_LIBS
12670
fi
216 andreas 12671
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12672
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12673
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
88 andreas 12674
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12675
else
216 andreas 12676
  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12677
$as_echo_n "checking for dld_link in -ldld... " >&6; }
88 andreas 12678
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
216 andreas 12679
  $as_echo_n "(cached) " >&6
88 andreas 12680
else
12681
  ac_check_lib_save_LIBS=$LIBS
12682
LIBS="-ldld  $LIBS"
12683
cat >conftest.$ac_ext <<_ACEOF
12684
/* confdefs.h.  */
12685
_ACEOF
12686
cat confdefs.h >>conftest.$ac_ext
12687
cat >>conftest.$ac_ext <<_ACEOF
12688
/* end confdefs.h.  */
12689
 
12690
/* Override any GCC internal prototype to avoid an error.
12691
   Use char because int might match the return type of a GCC
12692
   builtin and then its argument prototype would still apply.  */
12693
#ifdef __cplusplus
12694
extern "C"
12695
#endif
12696
char dld_link ();
12697
int
12698
main ()
12699
{
12700
return dld_link ();
12701
  ;
12702
  return 0;
12703
}
12704
_ACEOF
12705
rm -f conftest.$ac_objext conftest$ac_exeext
12706
if { (ac_try="$ac_link"
12707
case "(($ac_try" in
12708
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12709
  *) ac_try_echo=$ac_try;;
12710
esac
216 andreas 12711
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12712
$as_echo "$ac_try_echo") >&5
88 andreas 12713
  (eval "$ac_link") 2>conftest.er1
12714
  ac_status=$?
12715
  grep -v '^ *+' conftest.er1 >conftest.err
12716
  rm -f conftest.er1
12717
  cat conftest.err >&5
216 andreas 12718
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 12719
  (exit $ac_status); } && {
12720
	 test -z "$ac_c_werror_flag" ||
12721
	 test ! -s conftest.err
216 andreas 12722
       } && test -s conftest$ac_exeext && {
12723
	 test "$cross_compiling" = yes ||
12724
	 $as_test_x conftest$ac_exeext
12725
       }; then
88 andreas 12726
  ac_cv_lib_dld_dld_link=yes
12727
else
216 andreas 12728
  $as_echo "$as_me: failed program was:" >&5
88 andreas 12729
sed 's/^/| /' conftest.$ac_ext >&5
12730
 
12731
	ac_cv_lib_dld_dld_link=no
12732
fi
12733
 
216 andreas 12734
rm -rf conftest.dSYM
88 andreas 12735
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12736
      conftest$ac_exeext conftest.$ac_ext
12737
LIBS=$ac_check_lib_save_LIBS
12738
fi
216 andreas 12739
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12740
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12741
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
88 andreas 12742
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12743
fi
12744
 
12745
 
12746
fi
12747
 
12748
 
12749
fi
12750
 
12751
 
12752
fi
12753
 
12754
 
12755
fi
12756
 
12757
 
12758
fi
12759
 
12760
    ;;
12761
  esac
12762
 
12763
  if test "x$lt_cv_dlopen" != xno; then
12764
    enable_dlopen=yes
12765
  else
12766
    enable_dlopen=no
12767
  fi
12768
 
12769
  case $lt_cv_dlopen in
12770
  dlopen)
12771
    save_CPPFLAGS="$CPPFLAGS"
12772
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12773
 
12774
    save_LDFLAGS="$LDFLAGS"
12775
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12776
 
12777
    save_LIBS="$LIBS"
12778
    LIBS="$lt_cv_dlopen_libs $LIBS"
12779
 
216 andreas 12780
    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12781
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
88 andreas 12782
if test "${lt_cv_dlopen_self+set}" = set; then
216 andreas 12783
  $as_echo_n "(cached) " >&6
88 andreas 12784
else
12785
  	  if test "$cross_compiling" = yes; then :
12786
  lt_cv_dlopen_self=cross
12787
else
12788
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12789
  lt_status=$lt_dlunknown
12790
  cat > conftest.$ac_ext <<EOF
216 andreas 12791
#line 12791 "configure"
88 andreas 12792
#include "confdefs.h"
12793
 
12794
#if HAVE_DLFCN_H
12795
#include <dlfcn.h>
12796
#endif
12797
 
12798
#include <stdio.h>
12799
 
12800
#ifdef RTLD_GLOBAL
12801
#  define LT_DLGLOBAL		RTLD_GLOBAL
12802
#else
12803
#  ifdef DL_GLOBAL
12804
#    define LT_DLGLOBAL		DL_GLOBAL
12805
#  else
12806
#    define LT_DLGLOBAL		0
12807
#  endif
12808
#endif
12809
 
12810
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12811
   find out it does not work in some platform. */
12812
#ifndef LT_DLLAZY_OR_NOW
12813
#  ifdef RTLD_LAZY
12814
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12815
#  else
12816
#    ifdef DL_LAZY
12817
#      define LT_DLLAZY_OR_NOW		DL_LAZY
12818
#    else
12819
#      ifdef RTLD_NOW
12820
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12821
#      else
12822
#        ifdef DL_NOW
12823
#          define LT_DLLAZY_OR_NOW	DL_NOW
12824
#        else
12825
#          define LT_DLLAZY_OR_NOW	0
12826
#        endif
12827
#      endif
12828
#    endif
12829
#  endif
12830
#endif
12831
 
12832
#ifdef __cplusplus
12833
extern "C" void exit (int);
12834
#endif
12835
 
12836
void fnord() { int i=42;}
12837
int main ()
12838
{
12839
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12840
  int status = $lt_dlunknown;
12841
 
12842
  if (self)
12843
    {
12844
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12845
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12846
      /* dlclose (self); */
12847
    }
12848
 
12849
    exit (status);
12850
}
12851
EOF
12852
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12853
  (eval $ac_link) 2>&5
12854
  ac_status=$?
216 andreas 12855
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 12856
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12857
    (./conftest; exit; ) 2>/dev/null
12858
    lt_status=$?
12859
    case x$lt_status in
12860
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12861
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12862
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12863
    esac
12864
  else :
12865
    # compilation failed
12866
    lt_cv_dlopen_self=no
12867
  fi
12868
fi
12869
rm -fr conftest*
12870
 
12871
 
12872
fi
216 andreas 12873
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12874
$as_echo "$lt_cv_dlopen_self" >&6; }
88 andreas 12875
 
12876
    if test "x$lt_cv_dlopen_self" = xyes; then
12877
      LDFLAGS="$LDFLAGS $link_static_flag"
216 andreas 12878
      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12879
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
88 andreas 12880
if test "${lt_cv_dlopen_self_static+set}" = set; then
216 andreas 12881
  $as_echo_n "(cached) " >&6
88 andreas 12882
else
12883
  	  if test "$cross_compiling" = yes; then :
12884
  lt_cv_dlopen_self_static=cross
12885
else
12886
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12887
  lt_status=$lt_dlunknown
12888
  cat > conftest.$ac_ext <<EOF
216 andreas 12889
#line 12889 "configure"
88 andreas 12890
#include "confdefs.h"
12891
 
12892
#if HAVE_DLFCN_H
12893
#include <dlfcn.h>
12894
#endif
12895
 
12896
#include <stdio.h>
12897
 
12898
#ifdef RTLD_GLOBAL
12899
#  define LT_DLGLOBAL		RTLD_GLOBAL
12900
#else
12901
#  ifdef DL_GLOBAL
12902
#    define LT_DLGLOBAL		DL_GLOBAL
12903
#  else
12904
#    define LT_DLGLOBAL		0
12905
#  endif
12906
#endif
12907
 
12908
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12909
   find out it does not work in some platform. */
12910
#ifndef LT_DLLAZY_OR_NOW
12911
#  ifdef RTLD_LAZY
12912
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12913
#  else
12914
#    ifdef DL_LAZY
12915
#      define LT_DLLAZY_OR_NOW		DL_LAZY
12916
#    else
12917
#      ifdef RTLD_NOW
12918
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12919
#      else
12920
#        ifdef DL_NOW
12921
#          define LT_DLLAZY_OR_NOW	DL_NOW
12922
#        else
12923
#          define LT_DLLAZY_OR_NOW	0
12924
#        endif
12925
#      endif
12926
#    endif
12927
#  endif
12928
#endif
12929
 
12930
#ifdef __cplusplus
12931
extern "C" void exit (int);
12932
#endif
12933
 
12934
void fnord() { int i=42;}
12935
int main ()
12936
{
12937
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12938
  int status = $lt_dlunknown;
12939
 
12940
  if (self)
12941
    {
12942
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12943
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12944
      /* dlclose (self); */
12945
    }
12946
 
12947
    exit (status);
12948
}
12949
EOF
12950
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12951
  (eval $ac_link) 2>&5
12952
  ac_status=$?
216 andreas 12953
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 12954
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12955
    (./conftest; exit; ) 2>/dev/null
12956
    lt_status=$?
12957
    case x$lt_status in
12958
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12959
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12960
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12961
    esac
12962
  else :
12963
    # compilation failed
12964
    lt_cv_dlopen_self_static=no
12965
  fi
12966
fi
12967
rm -fr conftest*
12968
 
12969
 
12970
fi
216 andreas 12971
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12972
$as_echo "$lt_cv_dlopen_self_static" >&6; }
88 andreas 12973
    fi
12974
 
12975
    CPPFLAGS="$save_CPPFLAGS"
12976
    LDFLAGS="$save_LDFLAGS"
12977
    LIBS="$save_LIBS"
12978
    ;;
12979
  esac
12980
 
12981
  case $lt_cv_dlopen_self in
12982
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12983
  *) enable_dlopen_self=unknown ;;
12984
  esac
12985
 
12986
  case $lt_cv_dlopen_self_static in
12987
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12988
  *) enable_dlopen_self_static=unknown ;;
12989
  esac
12990
fi
12991
 
12992
 
12993
# Report which librarie types wil actually be built
216 andreas 12994
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12995
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12996
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
12997
$as_echo "$can_build_shared" >&6; }
88 andreas 12998
 
216 andreas 12999
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13000
$as_echo_n "checking whether to build shared libraries... " >&6; }
88 andreas 13001
test "$can_build_shared" = "no" && enable_shared=no
13002
 
13003
# On AIX, shared libraries and static libraries use the same namespace, and
13004
# are all built from PIC.
13005
case "$host_os" in
13006
aix3*)
13007
  test "$enable_shared" = yes && enable_static=no
13008
  if test -n "$RANLIB"; then
13009
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13010
    postinstall_cmds='$RANLIB $lib'
13011
  fi
13012
  ;;
13013
 
13014
aix4*)
13015
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13016
    test "$enable_shared" = yes && enable_static=no
13017
  fi
13018
  ;;
13019
  darwin* | rhapsody*)
13020
  if test "$GCC" = yes; then
13021
    archive_cmds_need_lc=no
13022
    case "$host_os" in
13023
    rhapsody* | darwin1.[012])
13024
      allow_undefined_flag='-Wl,-undefined -Wl,suppress'
13025
      ;;
13026
    *) # Darwin 1.3 on
13027
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13028
	allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
13029
      else
13030
	case ${MACOSX_DEPLOYMENT_TARGET} in
13031
	  10.012)
13032
	    allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
13033
	    ;;
13034
	  10.*)
13035
	    allow_undefined_flag='-Wl,-undefined -Wl,dynamic_lookup'
13036
	    ;;
13037
	esac
13038
      fi
13039
      ;;
13040
    esac
13041
    output_verbose_link_cmd='echo'
13042
    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
13043
    module_cmds='$CC $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
13044
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13045
    archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag  -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13046
    module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13047
    hardcode_direct=no
13048
    hardcode_automatic=yes
13049
    hardcode_shlibpath_var=unsupported
13050
    whole_archive_flag_spec='-all_load $convenience'
13051
    link_all_deplibs=yes
13052
  else
13053
    ld_shlibs=no
13054
  fi
13055
    ;;
13056
esac
216 andreas 13057
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
13058
$as_echo "$enable_shared" >&6; }
88 andreas 13059
 
216 andreas 13060
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13061
$as_echo_n "checking whether to build static libraries... " >&6; }
88 andreas 13062
# Make sure either enable_shared or enable_static is yes.
13063
test "$enable_shared" = yes || enable_static=yes
216 andreas 13064
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
13065
$as_echo "$enable_static" >&6; }
88 andreas 13066
 
13067
# The else clause should only fire when bootstrapping the
13068
# libtool distribution, otherwise you forgot to ship ltmain.sh
13069
# with your package, and you will get complaints that there are
13070
# no rules to generate ltmain.sh.
13071
if test -f "$ltmain"; then
13072
  # See if we are running on zsh, and set the options which allow our commands through
13073
  # without removal of \ escapes.
13074
  if test -n "${ZSH_VERSION+set}" ; then
13075
    setopt NO_GLOB_SUBST
13076
  fi
13077
  # Now quote all the things that may contain metacharacters while being
13078
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13079
  # variables and quote the copies for generation of the libtool script.
13080
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
13081
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13082
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13083
    deplibs_check_method reload_flag reload_cmds need_locks \
13084
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13085
    lt_cv_sys_global_symbol_to_c_name_address \
13086
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13087
    old_postinstall_cmds old_postuninstall_cmds \
13088
    compiler \
13089
    CC \
13090
    LD \
13091
    lt_prog_compiler_wl \
13092
    lt_prog_compiler_pic \
13093
    lt_prog_compiler_static \
13094
    lt_prog_compiler_no_builtin_flag \
13095
    export_dynamic_flag_spec \
13096
    thread_safe_flag_spec \
13097
    whole_archive_flag_spec \
13098
    enable_shared_with_static_runtimes \
13099
    old_archive_cmds \
13100
    old_archive_from_new_cmds \
13101
    predep_objects \
13102
    postdep_objects \
13103
    predeps \
13104
    postdeps \
13105
    compiler_lib_search_path \
13106
    archive_cmds \
13107
    archive_expsym_cmds \
13108
    postinstall_cmds \
13109
    postuninstall_cmds \
13110
    old_archive_from_expsyms_cmds \
13111
    allow_undefined_flag \
13112
    no_undefined_flag \
13113
    export_symbols_cmds \
13114
    hardcode_libdir_flag_spec \
13115
    hardcode_libdir_flag_spec_ld \
13116
    hardcode_libdir_separator \
13117
    hardcode_automatic \
13118
    module_cmds \
13119
    module_expsym_cmds \
13120
    lt_cv_prog_compiler_c_o \
13121
    exclude_expsyms \
13122
    include_expsyms; do
13123
 
13124
    case $var in
13125
    old_archive_cmds | \
13126
    old_archive_from_new_cmds | \
13127
    archive_cmds | \
13128
    archive_expsym_cmds | \
13129
    module_cmds | \
13130
    module_expsym_cmds | \
13131
    old_archive_from_expsyms_cmds | \
13132
    export_symbols_cmds | \
13133
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13134
    postinstall_cmds | postuninstall_cmds | \
13135
    old_postinstall_cmds | old_postuninstall_cmds | \
13136
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13137
      # Double-quote double-evaled strings.
13138
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13139
      ;;
13140
    *)
13141
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13142
      ;;
13143
    esac
13144
  done
13145
 
13146
  case $lt_echo in
13147
  *'\$0 --fallback-echo"')
13148
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13149
    ;;
13150
  esac
13151
 
13152
cfgfile="${ofile}T"
13153
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
13154
  $rm -f "$cfgfile"
216 andreas 13155
  { $as_echo "$as_me:$LINENO: creating $ofile" >&5
13156
$as_echo "$as_me: creating $ofile" >&6;}
88 andreas 13157
 
13158
  cat <<__EOF__ >> "$cfgfile"
13159
#! $SHELL
13160
 
13161
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13162
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
13163
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13164
#
13165
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
13166
# Free Software Foundation, Inc.
13167
#
13168
# This file is part of GNU Libtool:
13169
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
13170
#
13171
# This program is free software; you can redistribute it and/or modify
13172
# it under the terms of the GNU General Public License as published by
13173
# the Free Software Foundation; either version 2 of the License, or
13174
# (at your option) any later version.
13175
#
13176
# This program is distributed in the hope that it will be useful, but
13177
# WITHOUT ANY WARRANTY; without even the implied warranty of
13178
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13179
# General Public License for more details.
13180
#
13181
# You should have received a copy of the GNU General Public License
13182
# along with this program; if not, write to the Free Software
13183
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13184
#
13185
# As a special exception to the GNU General Public License, if you
13186
# distribute this file as part of a program that contains a
13187
# configuration script generated by Autoconf, you may include it under
13188
# the same distribution terms that you use for the rest of that program.
13189
 
13190
# A sed program that does not truncate output.
13191
SED=$lt_SED
13192
 
13193
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13194
Xsed="$SED -e s/^X//"
13195
 
13196
# The HP-UX ksh and POSIX shell print the target directory to stdout
13197
# if CDPATH is set.
13198
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
13199
 
13200
# The names of the tagged configurations supported by this script.
13201
available_tags=
13202
 
13203
# ### BEGIN LIBTOOL CONFIG
13204
 
13205
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13206
 
13207
# Shell to use when invoking shell scripts.
13208
SHELL=$lt_SHELL
13209
 
13210
# Whether or not to build shared libraries.
13211
build_libtool_libs=$enable_shared
13212
 
13213
# Whether or not to build static libraries.
13214
build_old_libs=$enable_static
13215
 
13216
# Whether or not to add -lc for building shared libraries.
13217
build_libtool_need_lc=$archive_cmds_need_lc
13218
 
13219
# Whether or not to disallow shared libs when runtime libs are static
13220
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13221
 
13222
# Whether or not to optimize for fast installation.
13223
fast_install=$enable_fast_install
13224
 
13225
# The host system.
13226
host_alias=$host_alias
13227
host=$host
13228
 
13229
# An echo program that does not interpret backslashes.
13230
echo=$lt_echo
13231
 
13232
# The archiver.
13233
AR=$lt_AR
13234
AR_FLAGS=$lt_AR_FLAGS
13235
 
13236
# A C compiler.
13237
LTCC=$lt_LTCC
13238
 
13239
# A language-specific compiler.
13240
CC=$lt_compiler
13241
 
13242
# Is the compiler the GNU C compiler?
13243
with_gcc=$GCC
13244
 
13245
# An ERE matcher.
13246
EGREP=$lt_EGREP
13247
 
13248
# The linker used to build libraries.
13249
LD=$lt_LD
13250
 
13251
# Whether we need hard or soft links.
13252
LN_S=$lt_LN_S
13253
 
13254
# A BSD-compatible nm program.
13255
NM=$lt_NM
13256
 
13257
# A symbol stripping program
13258
STRIP=$STRIP
13259
 
13260
# Used to examine libraries when file_magic_cmd begins "file"
13261
MAGIC_CMD=$MAGIC_CMD
13262
 
13263
# Used on cygwin: DLL creation program.
13264
DLLTOOL="$DLLTOOL"
13265
 
13266
# Used on cygwin: object dumper.
13267
OBJDUMP="$OBJDUMP"
13268
 
13269
# Used on cygwin: assembler.
13270
AS="$AS"
13271
 
13272
# The name of the directory that contains temporary libtool files.
13273
objdir=$objdir
13274
 
13275
# How to create reloadable object files.
13276
reload_flag=$lt_reload_flag
13277
reload_cmds=$lt_reload_cmds
13278
 
13279
# How to pass a linker flag through the compiler.
13280
wl=$lt_lt_prog_compiler_wl
13281
 
13282
# Object file suffix (normally "o").
13283
objext="$ac_objext"
13284
 
13285
# Old archive suffix (normally "a").
13286
libext="$libext"
13287
 
13288
# Shared library suffix (normally ".so").
13289
shrext='$shrext'
13290
 
13291
# Executable file suffix (normally "").
13292
exeext="$exeext"
13293
 
13294
# Additional compiler flags for building library objects.
13295
pic_flag=$lt_lt_prog_compiler_pic
13296
pic_mode=$pic_mode
13297
 
13298
# What is the maximum length of a command?
13299
max_cmd_len=$lt_cv_sys_max_cmd_len
13300
 
13301
# Does compiler simultaneously support -c and -o options?
13302
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13303
 
13304
# Must we lock files when doing compilation ?
13305
need_locks=$lt_need_locks
13306
 
13307
# Do we need the lib prefix for modules?
13308
need_lib_prefix=$need_lib_prefix
13309
 
13310
# Do we need a version for libraries?
13311
need_version=$need_version
13312
 
13313
# Whether dlopen is supported.
13314
dlopen_support=$enable_dlopen
13315
 
13316
# Whether dlopen of programs is supported.
13317
dlopen_self=$enable_dlopen_self
13318
 
13319
# Whether dlopen of statically linked programs is supported.
13320
dlopen_self_static=$enable_dlopen_self_static
13321
 
13322
# Compiler flag to prevent dynamic linking.
13323
link_static_flag=$lt_lt_prog_compiler_static
13324
 
13325
# Compiler flag to turn off builtin functions.
13326
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13327
 
13328
# Compiler flag to allow reflexive dlopens.
13329
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13330
 
13331
# Compiler flag to generate shared objects directly from archives.
13332
whole_archive_flag_spec=$lt_whole_archive_flag_spec
13333
 
13334
# Compiler flag to generate thread-safe objects.
13335
thread_safe_flag_spec=$lt_thread_safe_flag_spec
13336
 
13337
# Library versioning type.
13338
version_type=$version_type
13339
 
13340
# Format of library name prefix.
13341
libname_spec=$lt_libname_spec
13342
 
13343
# List of archive names.  First name is the real one, the rest are links.
13344
# The last name is the one that the linker finds with -lNAME.
13345
library_names_spec=$lt_library_names_spec
13346
 
13347
# The coded name of the library, if different from the real name.
13348
soname_spec=$lt_soname_spec
13349
 
13350
# Commands used to build and install an old-style archive.
13351
RANLIB=$lt_RANLIB
13352
old_archive_cmds=$lt_old_archive_cmds
13353
old_postinstall_cmds=$lt_old_postinstall_cmds
13354
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13355
 
13356
# Create an old-style archive from a shared archive.
13357
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13358
 
13359
# Create a temporary old-style archive to link instead of a shared archive.
13360
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13361
 
13362
# Commands used to build and install a shared archive.
13363
archive_cmds=$lt_archive_cmds
13364
archive_expsym_cmds=$lt_archive_expsym_cmds
13365
postinstall_cmds=$lt_postinstall_cmds
13366
postuninstall_cmds=$lt_postuninstall_cmds
13367
 
13368
# Commands used to build a loadable module (assumed same as above if empty)
13369
module_cmds=$lt_module_cmds
13370
module_expsym_cmds=$lt_module_expsym_cmds
13371
 
13372
# Commands to strip libraries.
13373
old_striplib=$lt_old_striplib
13374
striplib=$lt_striplib
13375
 
13376
# Dependencies to place before the objects being linked to create a
13377
# shared library.
13378
predep_objects=$lt_predep_objects
13379
 
13380
# Dependencies to place after the objects being linked to create a
13381
# shared library.
13382
postdep_objects=$lt_postdep_objects
13383
 
13384
# Dependencies to place before the objects being linked to create a
13385
# shared library.
13386
predeps=$lt_predeps
13387
 
13388
# Dependencies to place after the objects being linked to create a
13389
# shared library.
13390
postdeps=$lt_postdeps
13391
 
13392
# The library search path used internally by the compiler when linking
13393
# a shared library.
13394
compiler_lib_search_path=$lt_compiler_lib_search_path
13395
 
13396
# Method to check whether dependent libraries are shared objects.
13397
deplibs_check_method=$lt_deplibs_check_method
13398
 
13399
# Command to use when deplibs_check_method == file_magic.
13400
file_magic_cmd=$lt_file_magic_cmd
13401
 
13402
# Flag that allows shared libraries with undefined symbols to be built.
13403
allow_undefined_flag=$lt_allow_undefined_flag
13404
 
13405
# Flag that forces no undefined symbols.
13406
no_undefined_flag=$lt_no_undefined_flag
13407
 
13408
# Commands used to finish a libtool library installation in a directory.
13409
finish_cmds=$lt_finish_cmds
13410
 
13411
# Same as above, but a single script fragment to be evaled but not shown.
13412
finish_eval=$lt_finish_eval
13413
 
13414
# Take the output of nm and produce a listing of raw symbols and C names.
13415
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13416
 
13417
# Transform the output of nm in a proper C declaration
13418
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13419
 
13420
# Transform the output of nm in a C name address pair
13421
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13422
 
13423
# This is the shared library runtime path variable.
13424
runpath_var=$runpath_var
13425
 
13426
# This is the shared library path variable.
13427
shlibpath_var=$shlibpath_var
13428
 
13429
# Is shlibpath searched before the hard-coded library search path?
13430
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13431
 
13432
# How to hardcode a shared library path into an executable.
13433
hardcode_action=$hardcode_action
13434
 
13435
# Whether we should hardcode library paths into libraries.
13436
hardcode_into_libs=$hardcode_into_libs
13437
 
13438
# Flag to hardcode \$libdir into a binary during linking.
13439
# This must work even if \$libdir does not exist.
13440
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13441
 
13442
# If ld is used when linking, flag to hardcode \$libdir into
13443
# a binary during linking. This must work even if \$libdir does
13444
# not exist.
13445
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13446
 
13447
# Whether we need a single -rpath flag with a separated argument.
13448
hardcode_libdir_separator=$lt_hardcode_libdir_separator
13449
 
13450
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13451
# resulting binary.
13452
hardcode_direct=$hardcode_direct
13453
 
13454
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13455
# resulting binary.
13456
hardcode_minus_L=$hardcode_minus_L
13457
 
13458
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13459
# the resulting binary.
13460
hardcode_shlibpath_var=$hardcode_shlibpath_var
13461
 
13462
# Set to yes if building a shared library automatically hardcodes DIR into the library
13463
# and all subsequent libraries and executables linked against it.
13464
hardcode_automatic=$hardcode_automatic
13465
 
13466
# Variables whose values should be saved in libtool wrapper scripts and
13467
# restored at relink time.
13468
variables_saved_for_relink="$variables_saved_for_relink"
13469
 
13470
# Whether libtool must link a program against all its dependency libraries.
13471
link_all_deplibs=$link_all_deplibs
13472
 
13473
# Compile-time system search path for libraries
13474
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13475
 
13476
# Run-time system search path for libraries
13477
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13478
 
13479
# Fix the shell variable \$srcfile for the compiler.
13480
fix_srcfile_path="$fix_srcfile_path"
13481
 
13482
# Set to yes if exported symbols are required.
13483
always_export_symbols=$always_export_symbols
13484
 
13485
# The commands to list exported symbols.
13486
export_symbols_cmds=$lt_export_symbols_cmds
13487
 
13488
# The commands to extract the exported symbol list from a shared archive.
13489
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13490
 
13491
# Symbols that should not be listed in the preloaded symbols.
13492
exclude_expsyms=$lt_exclude_expsyms
13493
 
13494
# Symbols that must always be exported.
13495
include_expsyms=$lt_include_expsyms
13496
 
13497
# ### END LIBTOOL CONFIG
13498
 
13499
__EOF__
13500
 
13501
 
13502
  case $host_os in
13503
  aix3*)
13504
    cat <<\EOF >> "$cfgfile"
13505
 
13506
# AIX sometimes has problems with the GCC collect2 program.  For some
13507
# reason, if we set the COLLECT_NAMES environment variable, the problems
13508
# vanish in a puff of smoke.
13509
if test "X${COLLECT_NAMES+set}" != Xset; then
13510
  COLLECT_NAMES=
13511
  export COLLECT_NAMES
13512
fi
13513
EOF
13514
    ;;
13515
  esac
13516
 
13517
  # We use sed instead of cat because bash on DJGPP gets confused if
13518
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13519
  # text mode, it properly converts lines to CR/LF.  This bash problem
13520
  # is reportedly fixed, but why not run on old versions too?
13521
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
13522
 
13523
  mv -f "$cfgfile" "$ofile" || \
13524
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13525
  chmod +x "$ofile"
13526
 
13527
else
13528
  # If there is no Makefile yet, we rely on a make rule to execute
13529
  # `config.status --recheck' to rerun these tests and create the
13530
  # libtool script then.
13531
  test -f Makefile && make "$ltmain"
13532
fi
13533
 
13534
 
13535
ac_ext=c
13536
ac_cpp='$CPP $CPPFLAGS'
13537
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13538
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13539
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13540
 
13541
CC="$lt_save_CC"
13542
 
13543
 
13544
# Check whether --with-tags was given.
13545
if test "${with_tags+set}" = set; then
13546
  withval=$with_tags; tagnames="$withval"
13547
fi
13548
 
13549
 
13550
if test -f "$ltmain" && test -n "$tagnames"; then
13551
  if test ! -f "${ofile}"; then
216 andreas 13552
    { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
13553
$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
88 andreas 13554
  fi
13555
 
13556
  if test -z "$LTCC"; then
13557
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
13558
    if test -z "$LTCC"; then
216 andreas 13559
      { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
13560
$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
88 andreas 13561
    else
216 andreas 13562
      { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
13563
$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
88 andreas 13564
    fi
13565
  fi
13566
 
13567
  # Extract list of available tagged configurations in $ofile.
13568
  # Note that this assumes the entire list is on one line.
13569
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
13570
 
13571
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13572
  for tagname in $tagnames; do
13573
    IFS="$lt_save_ifs"
13574
    # Check whether tagname contains only valid characters
13575
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
13576
    "") ;;
216 andreas 13577
    *)  { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
13578
$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
88 andreas 13579
   { (exit 1); exit 1; }; }
13580
	;;
13581
    esac
13582
 
13583
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
13584
    then
216 andreas 13585
      { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
13586
$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
88 andreas 13587
   { (exit 1); exit 1; }; }
13588
    fi
13589
 
13590
    # Update the list of available tags.
13591
    if test -n "$tagname"; then
13592
      echo appending configuration tag \"$tagname\" to $ofile
13593
 
13594
      case $tagname in
13595
      CXX)
13596
	if test -n "$CXX" && test "X$CXX" != "Xno"; then
13597
	  ac_ext=cpp
13598
ac_cpp='$CXXCPP $CPPFLAGS'
13599
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13600
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13601
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13602
 
13603
 
13604
 
13605
 
13606
archive_cmds_need_lc_CXX=no
13607
allow_undefined_flag_CXX=
13608
always_export_symbols_CXX=no
13609
archive_expsym_cmds_CXX=
13610
export_dynamic_flag_spec_CXX=
13611
hardcode_direct_CXX=no
13612
hardcode_libdir_flag_spec_CXX=
13613
hardcode_libdir_flag_spec_ld_CXX=
13614
hardcode_libdir_separator_CXX=
13615
hardcode_minus_L_CXX=no
13616
hardcode_automatic_CXX=no
13617
module_cmds_CXX=
13618
module_expsym_cmds_CXX=
13619
link_all_deplibs_CXX=unknown
13620
old_archive_cmds_CXX=$old_archive_cmds
13621
no_undefined_flag_CXX=
13622
whole_archive_flag_spec_CXX=
13623
enable_shared_with_static_runtimes_CXX=no
13624
 
13625
# Dependencies to place before and after the object being linked:
13626
predep_objects_CXX=
13627
postdep_objects_CXX=
13628
predeps_CXX=
13629
postdeps_CXX=
13630
compiler_lib_search_path_CXX=
13631
 
13632
# Source file extension for C++ test sources.
13633
ac_ext=cc
13634
 
13635
# Object file extension for compiled C++ test sources.
13636
objext=o
13637
objext_CXX=$objext
13638
 
13639
# Code to be used in simple compile tests
13640
lt_simple_compile_test_code="int some_variable = 0;\n"
13641
 
13642
# Code to be used in simple link tests
13643
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
13644
 
13645
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13646
 
13647
# If no C compiler was specified, use CC.
13648
LTCC=${LTCC-"$CC"}
13649
 
13650
# Allow CC to be a program name with arguments.
13651
compiler=$CC
13652
 
13653
 
13654
# Allow CC to be a program name with arguments.
13655
lt_save_CC=$CC
13656
lt_save_LD=$LD
13657
lt_save_GCC=$GCC
13658
GCC=$GXX
13659
lt_save_with_gnu_ld=$with_gnu_ld
13660
lt_save_path_LD=$lt_cv_path_LD
13661
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13662
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13663
else
13664
  unset lt_cv_prog_gnu_ld
13665
fi
13666
if test -n "${lt_cv_path_LDCXX+set}"; then
13667
  lt_cv_path_LD=$lt_cv_path_LDCXX
13668
else
13669
  unset lt_cv_path_LD
13670
fi
13671
test -z "${LDCXX+set}" || LD=$LDCXX
13672
CC=${CXX-"c++"}
13673
compiler=$CC
13674
compiler_CXX=$CC
13675
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13676
 
13677
# We don't want -fno-exception wen compiling C++ code, so set the
13678
# no_builtin_flag separately
13679
if test "$GXX" = yes; then
13680
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13681
else
13682
  lt_prog_compiler_no_builtin_flag_CXX=
13683
fi
13684
 
13685
if test "$GXX" = yes; then
13686
  # Set up default GNU C++ configuration
13687
 
13688
 
13689
# Check whether --with-gnu-ld was given.
13690
if test "${with_gnu_ld+set}" = set; then
13691
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13692
else
13693
  with_gnu_ld=no
13694
fi
13695
 
13696
ac_prog=ld
13697
if test "$GCC" = yes; then
13698
  # Check if gcc -print-prog-name=ld gives a path.
216 andreas 13699
  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13700
$as_echo_n "checking for ld used by $CC... " >&6; }
88 andreas 13701
  case $host in
13702
  *-*-mingw*)
13703
    # gcc leaves a trailing carriage return which upsets mingw
13704
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13705
  *)
13706
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13707
  esac
13708
  case $ac_prog in
13709
    # Accept absolute paths.
13710
    [\\/]* | ?:[\\/]*)
13711
      re_direlt='/[^/][^/]*/\.\./'
13712
      # Canonicalize the pathname of ld
13713
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
13714
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13715
	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
13716
      done
13717
      test -z "$LD" && LD="$ac_prog"
13718
      ;;
13719
  "")
13720
    # If it fails, then pretend we aren't using GCC.
13721
    ac_prog=ld
13722
    ;;
13723
  *)
13724
    # If it is relative, then search for the first ld in PATH.
13725
    with_gnu_ld=unknown
13726
    ;;
13727
  esac
13728
elif test "$with_gnu_ld" = yes; then
216 andreas 13729
  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
13730
$as_echo_n "checking for GNU ld... " >&6; }
88 andreas 13731
else
216 andreas 13732
  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13733
$as_echo_n "checking for non-GNU ld... " >&6; }
88 andreas 13734
fi
13735
if test "${lt_cv_path_LD+set}" = set; then
216 andreas 13736
  $as_echo_n "(cached) " >&6
88 andreas 13737
else
13738
  if test -z "$LD"; then
13739
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13740
  for ac_dir in $PATH; do
13741
    IFS="$lt_save_ifs"
13742
    test -z "$ac_dir" && ac_dir=.
13743
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13744
      lt_cv_path_LD="$ac_dir/$ac_prog"
13745
      # Check to see if the program is GNU ld.  I'd rather use --version,
13746
      # but apparently some GNU ld's only accept -v.
13747
      # Break only if it was the GNU/non-GNU ld that we prefer.
13748
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13749
      *GNU* | *'with BFD'*)
13750
	test "$with_gnu_ld" != no && break
13751
	;;
13752
      *)
13753
	test "$with_gnu_ld" != yes && break
13754
	;;
13755
      esac
13756
    fi
13757
  done
13758
  IFS="$lt_save_ifs"
13759
else
13760
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
13761
fi
13762
fi
13763
 
13764
LD="$lt_cv_path_LD"
13765
if test -n "$LD"; then
216 andreas 13766
  { $as_echo "$as_me:$LINENO: result: $LD" >&5
13767
$as_echo "$LD" >&6; }
88 andreas 13768
else
216 andreas 13769
  { $as_echo "$as_me:$LINENO: result: no" >&5
13770
$as_echo "no" >&6; }
88 andreas 13771
fi
216 andreas 13772
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13773
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
88 andreas 13774
   { (exit 1); exit 1; }; }
216 andreas 13775
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13776
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
88 andreas 13777
if test "${lt_cv_prog_gnu_ld+set}" = set; then
216 andreas 13778
  $as_echo_n "(cached) " >&6
88 andreas 13779
else
13780
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13781
case `$LD -v 2>&1 </dev/null` in
13782
*GNU* | *'with BFD'*)
13783
  lt_cv_prog_gnu_ld=yes
13784
  ;;
13785
*)
13786
  lt_cv_prog_gnu_ld=no
13787
  ;;
13788
esac
13789
fi
216 andreas 13790
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13791
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
88 andreas 13792
with_gnu_ld=$lt_cv_prog_gnu_ld
13793
 
13794
 
13795
 
13796
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
13797
  # archiving commands below assume that GNU ld is being used.
13798
  if test "$with_gnu_ld" = yes; then
13799
    archive_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib'
13800
    archive_expsym_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13801
 
13802
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13803
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13804
 
13805
    # If archive_cmds runs LD, not CC, wlarc should be empty
13806
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13807
    #     investigate it a little bit more. (MM)
13808
    wlarc='${wl}'
13809
 
13810
    # ancient GNU ld didn't support --whole-archive et. al.
13811
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
13812
	grep 'no-whole-archive' > /dev/null; then
13813
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13814
    else
13815
      whole_archive_flag_spec_CXX=
13816
    fi
13817
  else
13818
    with_gnu_ld=no
13819
    wlarc=
13820
 
13821
    # A generic and very simple default shared library creation
13822
    # command for GNU C++ for the case where it uses the native
13823
    # linker, instead of GNU ld.  If possible, this setting should
13824
    # overridden to take advantage of the native linker features on
13825
    # the platform it is being used on.
13826
    archive_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -o $lib'
13827
  fi
13828
 
13829
  # Commands to make compiler produce verbose output that lists
13830
  # what "hidden" libraries, object files and flags are used when
13831
  # linking a shared library.
13832
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13833
 
13834
else
13835
  GXX=no
13836
  with_gnu_ld=no
13837
  wlarc=
13838
fi
13839
 
13840
# PORTME: fill in a description of your system's C++ link characteristics
216 andreas 13841
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13842
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
88 andreas 13843
ld_shlibs_CXX=yes
13844
case $host_os in
13845
  aix3*)
13846
    # FIXME: insert proper C++ library support
13847
    ld_shlibs_CXX=no
13848
    ;;
13849
  aix4* | aix5*)
13850
    if test "$host_cpu" = ia64; then
13851
      # On IA64, the linker does run time linking by default, so we don't
13852
      # have to do anything special.
13853
      aix_use_runtimelinking=no
13854
      exp_sym_flag='-Bexport'
13855
      no_entry_flag=""
13856
    else
13857
      # KDE requires run time linking.  Make it the default.
13858
      aix_use_runtimelinking=yes
13859
      exp_sym_flag='-bexport'
13860
      no_entry_flag='-bnoentry'
13861
    fi
13862
 
13863
    # When large executables or shared objects are built, AIX ld can
13864
    # have problems creating the table of contents.  If linking a library
13865
    # or program results in "error TOC overflow" add -mminimal-toc to
13866
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13867
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13868
 
13869
    archive_cmds_CXX=''
13870
    hardcode_direct_CXX=yes
13871
    hardcode_libdir_separator_CXX=':'
13872
    link_all_deplibs_CXX=yes
13873
 
13874
    if test "$GXX" = yes; then
13875
      case $host_os in aix4.012|aix4.012.*)
13876
      # We only want to do this on AIX 4.2 and lower, the check
13877
      # below for broken collect2 doesn't work under 4.3+
13878
	collect2name=`${CC} -print-prog-name=collect2`
13879
	if test -f "$collect2name" && \
13880
	   strings "$collect2name" | grep resolve_lib_name >/dev/null
13881
	then
13882
	  # We have reworked collect2
13883
	  hardcode_direct_CXX=yes
13884
	else
13885
	  # We have old collect2
13886
	  hardcode_direct_CXX=unsupported
13887
	  # It fails to find uninstalled libraries when the uninstalled
13888
	  # path is not listed in the libpath.  Setting hardcode_minus_L
13889
	  # to unsupported forces relinking
13890
	  hardcode_minus_L_CXX=yes
13891
	  hardcode_libdir_flag_spec_CXX='-L$libdir'
13892
	  hardcode_libdir_separator_CXX=
13893
	fi
13894
      esac
13895
      shared_flag='-shared'
13896
    else
13897
      # not using gcc
13898
      if test "$host_cpu" = ia64; then
13899
	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13900
	# chokes on -Wl,-G. The following line is correct:
13901
	shared_flag='-G'
13902
      else
13903
	if test "$aix_use_runtimelinking" = yes; then
13904
	  shared_flag='-qmkshrobj ${wl}-G'
13905
	else
13906
	  shared_flag='-qmkshrobj'
13907
	fi
13908
      fi
13909
    fi
13910
 
13911
    # Let the compiler handle the export list.
13912
    always_export_symbols_CXX=no
13913
    if test "$aix_use_runtimelinking" = yes; then
13914
      # Warning - without using the other runtime loading flags (-brtl),
13915
      # -berok will link without error, but may produce a broken library.
13916
      allow_undefined_flag_CXX='-berok'
13917
      # Determine the default libpath from the value encoded in an empty executable.
13918
      cat >conftest.$ac_ext <<_ACEOF
13919
/* confdefs.h.  */
13920
_ACEOF
13921
cat confdefs.h >>conftest.$ac_ext
13922
cat >>conftest.$ac_ext <<_ACEOF
13923
/* end confdefs.h.  */
13924
 
13925
int
13926
main ()
13927
{
13928
 
13929
  ;
13930
  return 0;
13931
}
13932
_ACEOF
13933
rm -f conftest.$ac_objext conftest$ac_exeext
13934
if { (ac_try="$ac_link"
13935
case "(($ac_try" in
13936
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13937
  *) ac_try_echo=$ac_try;;
13938
esac
216 andreas 13939
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13940
$as_echo "$ac_try_echo") >&5
88 andreas 13941
  (eval "$ac_link") 2>conftest.er1
13942
  ac_status=$?
13943
  grep -v '^ *+' conftest.er1 >conftest.err
13944
  rm -f conftest.er1
13945
  cat conftest.err >&5
216 andreas 13946
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 13947
  (exit $ac_status); } && {
13948
	 test -z "$ac_cxx_werror_flag" ||
13949
	 test ! -s conftest.err
216 andreas 13950
       } && test -s conftest$ac_exeext && {
13951
	 test "$cross_compiling" = yes ||
13952
	 $as_test_x conftest$ac_exeext
13953
       }; then
88 andreas 13954
 
13955
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13956
}'`
13957
# Check for a 64-bit object if we didn't find anything.
13958
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13959
}'`; fi
13960
else
216 andreas 13961
  $as_echo "$as_me: failed program was:" >&5
88 andreas 13962
sed 's/^/| /' conftest.$ac_ext >&5
13963
 
13964
 
13965
fi
13966
 
216 andreas 13967
rm -rf conftest.dSYM
88 andreas 13968
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13969
      conftest$ac_exeext conftest.$ac_ext
13970
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13971
 
13972
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13973
 
13974
      archive_cmds_CXX="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
13975
      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13976
     else
13977
      if test "$host_cpu" = ia64; then
13978
	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13979
	allow_undefined_flag_CXX="-z nodefs"
13980
	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13981
      else
13982
	# Determine the default libpath from the value encoded in an empty executable.
13983
	cat >conftest.$ac_ext <<_ACEOF
13984
/* confdefs.h.  */
13985
_ACEOF
13986
cat confdefs.h >>conftest.$ac_ext
13987
cat >>conftest.$ac_ext <<_ACEOF
13988
/* end confdefs.h.  */
13989
 
13990
int
13991
main ()
13992
{
13993
 
13994
  ;
13995
  return 0;
13996
}
13997
_ACEOF
13998
rm -f conftest.$ac_objext conftest$ac_exeext
13999
if { (ac_try="$ac_link"
14000
case "(($ac_try" in
14001
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14002
  *) ac_try_echo=$ac_try;;
14003
esac
216 andreas 14004
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14005
$as_echo "$ac_try_echo") >&5
88 andreas 14006
  (eval "$ac_link") 2>conftest.er1
14007
  ac_status=$?
14008
  grep -v '^ *+' conftest.er1 >conftest.err
14009
  rm -f conftest.er1
14010
  cat conftest.err >&5
216 andreas 14011
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 14012
  (exit $ac_status); } && {
14013
	 test -z "$ac_cxx_werror_flag" ||
14014
	 test ! -s conftest.err
216 andreas 14015
       } && test -s conftest$ac_exeext && {
14016
	 test "$cross_compiling" = yes ||
14017
	 $as_test_x conftest$ac_exeext
14018
       }; then
88 andreas 14019
 
14020
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14021
}'`
14022
# Check for a 64-bit object if we didn't find anything.
14023
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14024
}'`; fi
14025
else
216 andreas 14026
  $as_echo "$as_me: failed program was:" >&5
88 andreas 14027
sed 's/^/| /' conftest.$ac_ext >&5
14028
 
14029
 
14030
fi
14031
 
216 andreas 14032
rm -rf conftest.dSYM
88 andreas 14033
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14034
      conftest$ac_exeext conftest.$ac_ext
14035
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14036
 
14037
	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14038
	# Warning - without using the other run time loading flags,
14039
	# -berok will link without error, but may produce a broken library.
14040
	no_undefined_flag_CXX=' ${wl}-bernotok'
14041
	allow_undefined_flag_CXX=' ${wl}-berok'
14042
	# -bexpall does not export symbols beginning with underscore (_)
14043
	always_export_symbols_CXX=yes
14044
	# Exported symbols can be pulled into shared objects from archives
14045
	whole_archive_flag_spec_CXX=' '
14046
	archive_cmds_need_lc_CXX=yes
14047
	# This is similar to how AIX traditionally builds it's shared libraries.
14048
	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14049
      fi
14050
    fi
14051
    ;;
14052
  chorus*)
14053
    case $cc_basename in
14054
      *)
14055
	# FIXME: insert proper C++ library support
14056
	ld_shlibs_CXX=no
14057
	;;
14058
    esac
14059
    ;;
14060
 
14061
  cygwin* | mingw* | pw32*)
14062
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14063
    # as there is no search path for DLLs.
14064
    hardcode_libdir_flag_spec_CXX='-L$libdir'
14065
    allow_undefined_flag_CXX=no
14066
    always_export_symbols_CXX=no
14067
    enable_shared_with_static_runtimes_CXX=yes
14068
 
14069
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14070
      archive_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14071
      # If the export-symbols file already is a .def file (1st line
14072
      # is EXPORTS), use it as is; otherwise, prepend...
14073
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14074
	cp $export_symbols $output_objdir/$soname.def;
14075
      else
14076
	echo EXPORTS > $output_objdir/$soname.def;
14077
	cat $export_symbols >> $output_objdir/$soname.def;
14078
      fi~
14079
      $CC -shared -nostdlib $output_objdir/$soname.def $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14080
    else
14081
      ld_shlibs_CXX=no
14082
    fi
14083
  ;;
14084
 
14085
  darwin* | rhapsody*)
14086
  if test "$GXX" = yes; then
14087
    archive_cmds_need_lc_CXX=no
14088
    case "$host_os" in
14089
    rhapsody* | darwin1.[012])
14090
      allow_undefined_flag_CXX='-Wl,-undefined -Wl,suppress'
14091
      ;;
14092
    *) # Darwin 1.3 on
14093
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14094
	allow_undefined_flag_CXX='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
14095
      else
14096
	case ${MACOSX_DEPLOYMENT_TARGET} in
14097
	  10.012)
14098
	    allow_undefined_flag_CXX='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
14099
	    ;;
14100
	  10.*)
14101
	    allow_undefined_flag_CXX='-Wl,-undefined -Wl,dynamic_lookup'
14102
	    ;;
14103
	esac
14104
      fi
14105
      ;;
14106
    esac
14107
    lt_int_apple_cc_single_mod=no
14108
    output_verbose_link_cmd='echo'
14109
    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14110
      lt_int_apple_cc_single_mod=yes
14111
    fi
14112
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14113
      archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
14114
    else
14115
      archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring'
14116
    fi
14117
    module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
14118
 
14119
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14120
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14121
      archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14122
    else
14123
      archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14124
    fi
14125
    module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14126
    hardcode_direct_CXX=no
14127
    hardcode_automatic_CXX=yes
14128
    hardcode_shlibpath_var_CXX=unsupported
14129
    whole_archive_flag_spec_CXX='-all_load $convenience'
14130
    link_all_deplibs_CXX=yes
14131
  else
14132
    ld_shlibs_CXX=no
14133
  fi
14134
    ;;
14135
 
14136
  dgux*)
14137
    case $cc_basename in
14138
      ec++)
14139
	# FIXME: insert proper C++ library support
14140
	ld_shlibs_CXX=no
14141
	;;
14142
      ghcx)
14143
	# Green Hills C++ Compiler
14144
	# FIXME: insert proper C++ library support
14145
	ld_shlibs_CXX=no
14146
	;;
14147
      *)
14148
	# FIXME: insert proper C++ library support
14149
	ld_shlibs_CXX=no
14150
	;;
14151
    esac
14152
    ;;
14153
  freebsd12*)
14154
    # C++ shared libraries reported to be fairly broken before switch to ELF
14155
    ld_shlibs_CXX=no
14156
    ;;
14157
  freebsd-elf*)
14158
    archive_cmds_need_lc_CXX=no
14159
    ;;
14160
  freebsd* | kfreebsd*-gnu)
14161
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14162
    # conventions
14163
    ld_shlibs_CXX=yes
14164
    ;;
14165
  gnu*)
14166
    ;;
14167
  hpux9*)
14168
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14169
    hardcode_libdir_separator_CXX=:
14170
    export_dynamic_flag_spec_CXX='${wl}-E'
14171
    hardcode_direct_CXX=yes
14172
    hardcode_minus_L_CXX=yes # Not in the search PATH,
14173
				# but as the default
14174
				# location of the library.
14175
 
14176
    case $cc_basename in
14177
    CC)
14178
      # FIXME: insert proper C++ library support
14179
      ld_shlibs_CXX=no
14180
      ;;
14181
    aCC)
14182
      archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14183
      # Commands to make compiler produce verbose output that lists
14184
      # what "hidden" libraries, object files and flags are used when
14185
      # linking a shared library.
14186
      #
14187
      # There doesn't appear to be a way to prevent this compiler from
14188
      # explicitly linking system object files so we need to strip them
14189
      # from the output so that they don't get included in the library
14190
      # dependencies.
14191
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
14192
      ;;
14193
    *)
14194
      if test "$GXX" = yes; then
14195
        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14196
      else
14197
        # FIXME: insert proper C++ library support
14198
        ld_shlibs_CXX=no
14199
      fi
14200
      ;;
14201
    esac
14202
    ;;
14203
  hpux10*|hpux11*)
14204
    if test $with_gnu_ld = no; then
14205
      case "$host_cpu" in
14206
      hppa*64*)
14207
	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14208
	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
14209
	hardcode_libdir_separator_CXX=:
14210
        ;;
14211
      ia64*)
14212
	hardcode_libdir_flag_spec_CXX='-L$libdir'
14213
        ;;
14214
      *)
14215
	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14216
	hardcode_libdir_separator_CXX=:
14217
	export_dynamic_flag_spec_CXX='${wl}-E'
14218
        ;;
14219
      esac
14220
    fi
14221
    case "$host_cpu" in
14222
    hppa*64*)
14223
      hardcode_direct_CXX=no
14224
      hardcode_shlibpath_var_CXX=no
14225
      ;;
14226
    ia64*)
14227
      hardcode_direct_CXX=no
14228
      hardcode_shlibpath_var_CXX=no
14229
      hardcode_minus_L_CXX=yes # Not in the search PATH,
14230
					      # but as the default
14231
					      # location of the library.
14232
      ;;
14233
    *)
14234
      hardcode_direct_CXX=yes
14235
      hardcode_minus_L_CXX=yes # Not in the search PATH,
14236
					      # but as the default
14237
					      # location of the library.
14238
      ;;
14239
    esac
14240
 
14241
    case $cc_basename in
14242
      CC)
14243
	# FIXME: insert proper C++ library support
14244
	ld_shlibs_CXX=no
14245
	;;
14246
      aCC)
14247
	case "$host_cpu" in
14248
	hppa*64*|ia64*)
14249
	  archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
14250
	  ;;
14251
	*)
14252
	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects'
14253
	  ;;
14254
	esac
14255
	# Commands to make compiler produce verbose output that lists
14256
	# what "hidden" libraries, object files and flags are used when
14257
	# linking a shared library.
14258
	#
14259
	# There doesn't appear to be a way to prevent this compiler from
14260
	# explicitly linking system object files so we need to strip them
14261
	# from the output so that they don't get included in the library
14262
	# dependencies.
14263
	output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
14264
	;;
14265
      *)
14266
	if test "$GXX" = yes; then
14267
	  if test $with_gnu_ld = no; then
14268
	    case "$host_cpu" in
14269
	    ia64*|hppa*64*)
14270
	      archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
14271
	      ;;
14272
	    *)
14273
	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects'
14274
	      ;;
14275
	    esac
14276
	  fi
14277
	else
14278
	  # FIXME: insert proper C++ library support
14279
	  ld_shlibs_CXX=no
14280
	fi
14281
	;;
14282
    esac
14283
    ;;
14284
  irix5* | irix6*)
14285
    case $cc_basename in
14286
      CC)
14287
	# SGI C++
14288
	archive_cmds_CXX='$CC -shared -all -multigot $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
14289
 
14290
	# Archives containing C++ object files must be created using
14291
	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14292
	# necessary to make sure instantiated templates are included
14293
	# in the archive.
14294
	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14295
	;;
14296
      *)
14297
	if test "$GXX" = yes; then
14298
	  if test "$with_gnu_ld" = no; then
14299
	    archive_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
14300
	  else
14301
	    archive_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
14302
	  fi
14303
	fi
14304
	link_all_deplibs_CXX=yes
14305
	;;
14306
    esac
14307
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14308
    hardcode_libdir_separator_CXX=:
14309
    ;;
14310
  linux*)
14311
    case $cc_basename in
14312
      KCC)
14313
	# Kuck and Associates, Inc. (KAI) C++ Compiler
14314
 
14315
	# KCC will only create a shared library if the output file
14316
	# ends with ".so" (or ".sl" for HP-UX), so rename the library
14317
	# to its proper name (with version) after linking.
14318
	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib; mv \$templib $lib'
14319
	archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
14320
	# Commands to make compiler produce verbose output that lists
14321
	# what "hidden" libraries, object files and flags are used when
14322
	# linking a shared library.
14323
	#
14324
	# There doesn't appear to be a way to prevent this compiler from
14325
	# explicitly linking system object files so we need to strip them
14326
	# from the output so that they don't get included in the library
14327
	# dependencies.
14328
	output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
14329
 
14330
	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
14331
	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14332
 
14333
	# Archives containing C++ object files must be created using
14334
	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
14335
	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14336
	;;
14337
      icpc)
14338
	# Intel C++
14339
	with_gnu_ld=yes
14340
	archive_cmds_need_lc_CXX=no
14341
	archive_cmds_CXX='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib'
14342
	archive_expsym_cmds_CXX='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14343
	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14344
	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14345
	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14346
	;;
14347
      cxx)
14348
	# Compaq C++
14349
	archive_cmds_CXX='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib'
14350
	archive_expsym_cmds_CXX='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
14351
 
14352
	runpath_var=LD_RUN_PATH
14353
	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14354
	hardcode_libdir_separator_CXX=:
14355
 
14356
	# Commands to make compiler produce verbose output that lists
14357
	# what "hidden" libraries, object files and flags are used when
14358
	# linking a shared library.
14359
	#
14360
	# There doesn't appear to be a way to prevent this compiler from
14361
	# explicitly linking system object files so we need to strip them
14362
	# from the output so that they don't get included in the library
14363
	# dependencies.
14364
	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
14365
	;;
14366
    esac
14367
    ;;
14368
  lynxos*)
14369
    # FIXME: insert proper C++ library support
14370
    ld_shlibs_CXX=no
14371
    ;;
14372
  m88k*)
14373
    # FIXME: insert proper C++ library support
14374
    ld_shlibs_CXX=no
14375
    ;;
14376
  mvs*)
14377
    case $cc_basename in
14378
      cxx)
14379
	# FIXME: insert proper C++ library support
14380
	ld_shlibs_CXX=no
14381
	;;
14382
      *)
14383
	# FIXME: insert proper C++ library support
14384
	ld_shlibs_CXX=no
14385
	;;
14386
    esac
14387
    ;;
14388
  netbsd*)
14389
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14390
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14391
      wlarc=
14392
      hardcode_libdir_flag_spec_CXX='-R$libdir'
14393
      hardcode_direct_CXX=yes
14394
      hardcode_shlibpath_var_CXX=no
14395
    fi
14396
    # Workaround some broken pre-1.5 toolchains
14397
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14398
    ;;
14399
  osf3*)
14400
    case $cc_basename in
14401
      KCC)
14402
	# Kuck and Associates, Inc. (KAI) C++ Compiler
14403
 
14404
	# KCC will only create a shared library if the output file
14405
	# ends with ".so" (or ".sl" for HP-UX), so rename the library
14406
	# to its proper name (with version) after linking.
14407
	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib; mv \$templib $lib'
14408
 
14409
	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14410
	hardcode_libdir_separator_CXX=:
14411
 
14412
	# Archives containing C++ object files must be created using
14413
	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
14414
	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14415
 
14416
	;;
14417
      RCC)
14418
	# Rational C++ 2.4.1
14419
	# FIXME: insert proper C++ library support
14420
	ld_shlibs_CXX=no
14421
	;;
14422
      cxx)
14423
	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14424
	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
14425
 
14426
	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14427
	hardcode_libdir_separator_CXX=:
14428
 
14429
	# Commands to make compiler produce verbose output that lists
14430
	# what "hidden" libraries, object files and flags are used when
14431
	# linking a shared library.
14432
	#
14433
	# There doesn't appear to be a way to prevent this compiler from
14434
	# explicitly linking system object files so we need to strip them
14435
	# from the output so that they don't get included in the library
14436
	# dependencies.
14437
	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
14438
	;;
14439
      *)
14440
	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14441
	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14442
	  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
14443
 
14444
	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14445
	  hardcode_libdir_separator_CXX=:
14446
 
14447
	  # Commands to make compiler produce verbose output that lists
14448
	  # what "hidden" libraries, object files and flags are used when
14449
	  # linking a shared library.
14450
	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
14451
 
14452
	else
14453
	  # FIXME: insert proper C++ library support
14454
	  ld_shlibs_CXX=no
14455
	fi
14456
	;;
14457
    esac
14458
    ;;
14459
  osf4* | osf5*)
14460
    case $cc_basename in
14461
      KCC)
14462
	# Kuck and Associates, Inc. (KAI) C++ Compiler
14463
 
14464
	# KCC will only create a shared library if the output file
14465
	# ends with ".so" (or ".sl" for HP-UX), so rename the library
14466
	# to its proper name (with version) after linking.
14467
	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib; mv \$templib $lib'
14468
 
14469
	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14470
	hardcode_libdir_separator_CXX=:
14471
 
14472
	# Archives containing C++ object files must be created using
14473
	# the KAI C++ compiler.
14474
	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
14475
	;;
14476
      RCC)
14477
	# Rational C++ 2.4.1
14478
	# FIXME: insert proper C++ library support
14479
	ld_shlibs_CXX=no
14480
	;;
14481
      cxx)
14482
	allow_undefined_flag_CXX=' -expect_unresolved \*'
14483
	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
14484
	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14485
	  echo "-hidden">> $lib.exp~
14486
	  $CC -shared$allow_undefined_flag $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version	$verstring` -update_registry $objdir/so_locations -o $lib~
14487
	  $rm $lib.exp'
14488
 
14489
	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14490
	hardcode_libdir_separator_CXX=:
14491
 
14492
	# Commands to make compiler produce verbose output that lists
14493
	# what "hidden" libraries, object files and flags are used when
14494
	# linking a shared library.
14495
	#
14496
	# There doesn't appear to be a way to prevent this compiler from
14497
	# explicitly linking system object files so we need to strip them
14498
	# from the output so that they don't get included in the library
14499
	# dependencies.
14500
	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
14501
	;;
14502
      *)
14503
	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14504
	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14505
	 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
14506
 
14507
	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14508
	  hardcode_libdir_separator_CXX=:
14509
 
14510
	  # Commands to make compiler produce verbose output that lists
14511
	  # what "hidden" libraries, object files and flags are used when
14512
	  # linking a shared library.
14513
	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
14514
 
14515
	else
14516
	  # FIXME: insert proper C++ library support
14517
	  ld_shlibs_CXX=no
14518
	fi
14519
	;;
14520
    esac
14521
    ;;
14522
  psos*)
14523
    # FIXME: insert proper C++ library support
14524
    ld_shlibs_CXX=no
14525
    ;;
14526
  sco*)
14527
    archive_cmds_need_lc_CXX=no
14528
    case $cc_basename in
14529
      CC)
14530
	# FIXME: insert proper C++ library support
14531
	ld_shlibs_CXX=no
14532
	;;
14533
      *)
14534
	# FIXME: insert proper C++ library support
14535
	ld_shlibs_CXX=no
14536
	;;
14537
    esac
14538
    ;;
14539
  sunos4*)
14540
    case $cc_basename in
14541
      CC)
14542
	# Sun C++ 4.x
14543
	# FIXME: insert proper C++ library support
14544
	ld_shlibs_CXX=no
14545
	;;
14546
      lcc)
14547
	# Lucid
14548
	# FIXME: insert proper C++ library support
14549
	ld_shlibs_CXX=no
14550
	;;
14551
      *)
14552
	# FIXME: insert proper C++ library support
14553
	ld_shlibs_CXX=no
14554
	;;
14555
    esac
14556
    ;;
14557
  solaris*)
14558
    case $cc_basename in
14559
      CC)
14560
	# Sun C++ 4.2, 5.x and Centerline C++
14561
	no_undefined_flag_CXX=' -zdefs'
14562
	archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects'
14563
	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14564
	$CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~$rm $lib.exp'
14565
 
14566
	hardcode_libdir_flag_spec_CXX='-R$libdir'
14567
	hardcode_shlibpath_var_CXX=no
14568
	case $host_os in
14569
	  solaris2.0-5 | solaris2.0-5.*) ;;
14570
	  *)
14571
	    # The C++ compiler is used as linker so we must use $wl
14572
	    # flag to pass the commands to the underlying system
14573
	    # linker.
14574
	    # Supported since Solaris 2.6 (maybe 2.5.1?)
14575
	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14576
	    ;;
14577
	esac
14578
	link_all_deplibs_CXX=yes
14579
 
14580
	# Commands to make compiler produce verbose output that lists
14581
	# what "hidden" libraries, object files and flags are used when
14582
	# linking a shared library.
14583
	#
14584
	# There doesn't appear to be a way to prevent this compiler from
14585
	# explicitly linking system object files so we need to strip them
14586
	# from the output so that they don't get included in the library
14587
	# dependencies.
14588
	output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
14589
 
14590
	# Archives containing C++ object files must be created using
14591
	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
14592
	# necessary to make sure instantiated templates are included
14593
	# in the archive.
14594
	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14595
	;;
14596
      gcx)
14597
	# Green Hills C++ Compiler
14598
	archive_cmds_CXX='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib'
14599
 
14600
	# The C++ compiler must be used to create the archive.
14601
	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14602
	;;
14603
      *)
14604
	# GNU C++ compiler with Solaris linker
14605
	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14606
	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14607
	  if $CC --version | grep -v '^2\.7' > /dev/null; then
14608
	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib'
14609
	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14610
		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~$rm $lib.exp'
14611
 
14612
	    # Commands to make compiler produce verbose output that lists
14613
	    # what "hidden" libraries, object files and flags are used when
14614
	    # linking a shared library.
14615
	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
14616
	  else
14617
	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
14618
	    # platform.
14619
	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib'
14620
	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14621
		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~$rm $lib.exp'
14622
 
14623
	    # Commands to make compiler produce verbose output that lists
14624
	    # what "hidden" libraries, object files and flags are used when
14625
	    # linking a shared library.
14626
	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
14627
	  fi
14628
 
14629
	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14630
	fi
14631
	;;
14632
    esac
14633
    ;;
14634
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14635
    archive_cmds_need_lc_CXX=no
14636
    ;;
14637
  tandem*)
14638
    case $cc_basename in
14639
      NCC)
14640
	# NonStop-UX NCC 3.20
14641
	# FIXME: insert proper C++ library support
14642
	ld_shlibs_CXX=no
14643
	;;
14644
      *)
14645
	# FIXME: insert proper C++ library support
14646
	ld_shlibs_CXX=no
14647
	;;
14648
    esac
14649
    ;;
14650
  vxworks*)
14651
    # FIXME: insert proper C++ library support
14652
    ld_shlibs_CXX=no
14653
    ;;
14654
  *)
14655
    # FIXME: insert proper C++ library support
14656
    ld_shlibs_CXX=no
14657
    ;;
14658
esac
216 andreas 14659
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14660
$as_echo "$ld_shlibs_CXX" >&6; }
88 andreas 14661
test "$ld_shlibs_CXX" = no && can_build_shared=no
14662
 
14663
GCC_CXX="$GXX"
14664
LD_CXX="$LD"
14665
 
14666
## CAVEAT EMPTOR:
14667
## There is no encapsulation within the following macros, do not change
14668
## the running order or otherwise move them around unless you know exactly
14669
## what you are doing...
14670
 
14671
cat > conftest.$ac_ext <<EOF
14672
class Foo
14673
{
14674
public:
14675
  Foo (void) { a = 0; }
14676
private:
14677
  int a;
14678
};
14679
EOF
14680
 
14681
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14682
  (eval $ac_compile) 2>&5
14683
  ac_status=$?
216 andreas 14684
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 14685
  (exit $ac_status); }; then
14686
  # Parse the compiler output and extract the necessary
14687
  # objects, libraries and library flags.
14688
 
14689
  # Sentinel used to keep track of whether or not we are before
14690
  # the conftest object file.
14691
  pre_test_object_deps_done=no
14692
 
14693
  # The `*' in the case matches for architectures that use `case' in
14694
  # $output_verbose_cmd can trigger glob expansion during the loop
14695
  # eval without this substitution.
14696
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
14697
 
14698
  for p in `eval $output_verbose_link_cmd`; do
14699
    case $p in
14700
 
14701
    -L* | -R* | -l*)
14702
       # Some compilers place space between "-{L,R}" and the path.
14703
       # Remove the space.
14704
       if test $p = "-L" \
14705
	  || test $p = "-R"; then
14706
	 prev=$p
14707
	 continue
14708
       else
14709
	 prev=
14710
       fi
14711
 
14712
       if test "$pre_test_object_deps_done" = no; then
14713
	 case $p in
14714
	 -L* | -R*)
14715
	   # Internal compiler library paths should come after those
14716
	   # provided the user.  The postdeps already come after the
14717
	   # user supplied libs so there is no need to process them.
14718
	   if test -z "$compiler_lib_search_path_CXX"; then
14719
	     compiler_lib_search_path_CXX="${prev}${p}"
14720
	   else
14721
	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14722
	   fi
14723
	   ;;
14724
	 # The "-l" case would never come before the object being
14725
	 # linked, so don't bother handling this case.
14726
	 esac
14727
       else
14728
	 if test -z "$postdeps_CXX"; then
14729
	   postdeps_CXX="${prev}${p}"
14730
	 else
14731
	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14732
	 fi
14733
       fi
14734
       ;;
14735
 
14736
    *.$objext|*.$libext)
14737
       # This assumes that the test object file only shows up
14738
       # once in the compiler output.
14739
       if test "$p" = "conftest.$objext"; then
14740
	 pre_test_object_deps_done=yes
14741
	 continue
14742
       fi
14743
 
14744
       if test "$pre_test_object_deps_done" = no; then
14745
	 if test -z "$predep_objects_CXX"; then
14746
	   predep_objects_CXX="$p"
14747
	 else
14748
	   predep_objects_CXX="$predep_objects_CXX $p"
14749
	 fi
14750
       else
14751
	 if test -z "$postdep_objects_CXX"; then
14752
	   postdep_objects_CXX="$p"
14753
	 else
14754
	   postdep_objects_CXX="$postdep_objects_CXX $p"
14755
	 fi
14756
       fi
14757
       ;;
14758
 
14759
    *) ;; # Ignore the rest.
14760
 
14761
    esac
14762
  done
14763
 
14764
  # Clean up.
14765
  rm -f a.out a.exe
14766
else
14767
  echo "libtool.m4: error: problem compiling CXX test program"
14768
fi
14769
 
14770
$rm -f confest.$objext
14771
 
14772
case " $postdeps_CXX " in
14773
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14774
esac
14775
 
14776
lt_prog_compiler_wl_CXX=
14777
lt_prog_compiler_pic_CXX=
14778
lt_prog_compiler_static_CXX=
14779
 
216 andreas 14780
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14781
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
88 andreas 14782
 
14783
  # C++ specific cases for pic, static, wl, etc.
14784
  if test "$GXX" = yes; then
14785
    lt_prog_compiler_wl_CXX='-Wl,'
14786
    lt_prog_compiler_static_CXX='-static'
14787
 
14788
    case $host_os in
14789
    aix*)
14790
      # All AIX code is PIC.
14791
      if test "$host_cpu" = ia64; then
14792
	# AIX 5 now supports IA64 processor
14793
	lt_prog_compiler_static_CXX='-Bstatic'
14794
      fi
14795
      ;;
14796
    amigaos*)
14797
      # FIXME: we need at least 68020 code to build shared libraries, but
14798
      # adding the `-m68020' flag to GCC prevents building anything better,
14799
      # like `-m68040'.
14800
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14801
      ;;
14802
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14803
      # PIC is the default for these OSes.
14804
      ;;
14805
    mingw* | os2* | pw32*)
14806
      # This hack is so that the source file can tell whether it is being
14807
      # built for inclusion in a dll (and should export symbols for example).
14808
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14809
      ;;
14810
    darwin* | rhapsody*)
14811
      # PIC is the default on this platform
14812
      # Common symbols not allowed in MH_DYLIB files
14813
      lt_prog_compiler_pic_CXX='-fno-common'
14814
      ;;
14815
    *djgpp*)
14816
      # DJGPP does not support shared libraries at all
14817
      lt_prog_compiler_pic_CXX=
14818
      ;;
14819
    sysv4*MP*)
14820
      if test -d /usr/nec; then
14821
	lt_prog_compiler_pic_CXX=-Kconform_pic
14822
      fi
14823
      ;;
14824
    hpux*)
14825
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14826
      # not for PA HP-UX.
14827
      case "$host_cpu" in
14828
      hppa*64*|ia64*)
14829
	;;
14830
      *)
14831
	lt_prog_compiler_pic_CXX='-fPIC'
14832
	;;
14833
      esac
14834
      ;;
14835
    *)
14836
      lt_prog_compiler_pic_CXX='-fPIC'
14837
      ;;
14838
    esac
14839
  else
14840
    case $host_os in
14841
      aix4* | aix5*)
14842
	# All AIX code is PIC.
14843
	if test "$host_cpu" = ia64; then
14844
	  # AIX 5 now supports IA64 processor
14845
	  lt_prog_compiler_static_CXX='-Bstatic'
14846
	else
14847
	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14848
	fi
14849
	;;
14850
      chorus*)
14851
	case $cc_basename in
14852
	cxch68)
14853
	  # Green Hills C++ Compiler
14854
	  # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14855
	  ;;
14856
	esac
14857
	;;
14858
      dgux*)
14859
	case $cc_basename in
14860
	  ec++)
14861
	    lt_prog_compiler_pic_CXX='-KPIC'
14862
	    ;;
14863
	  ghcx)
14864
	    # Green Hills C++ Compiler
14865
	    lt_prog_compiler_pic_CXX='-pic'
14866
	    ;;
14867
	  *)
14868
	    ;;
14869
	esac
14870
	;;
14871
      freebsd* | kfreebsd*-gnu)
14872
	# FreeBSD uses GNU C++
14873
	;;
14874
      hpux9* | hpux10* | hpux11*)
14875
	case $cc_basename in
14876
	  CC)
14877
	    lt_prog_compiler_wl_CXX='-Wl,'
14878
	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
14879
	    if test "$host_cpu" != ia64; then
14880
	      lt_prog_compiler_pic_CXX='+Z'
14881
	    fi
14882
	    ;;
14883
	  aCC)
14884
	    lt_prog_compiler_wl_CXX='-Wl,'
14885
	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
14886
	    case "$host_cpu" in
14887
	    hppa*64*|ia64*)
14888
	      # +Z the default
14889
	      ;;
14890
	    *)
14891
	      lt_prog_compiler_pic_CXX='+Z'
14892
	      ;;
14893
	    esac
14894
	    ;;
14895
	  *)
14896
	    ;;
14897
	esac
14898
	;;
14899
      irix5* | irix6* | nonstopux*)
14900
	case $cc_basename in
14901
	  CC)
14902
	    lt_prog_compiler_wl_CXX='-Wl,'
14903
	    lt_prog_compiler_static_CXX='-non_shared'
14904
	    # CC pic flag -KPIC is the default.
14905
	    ;;
14906
	  *)
14907
	    ;;
14908
	esac
14909
	;;
14910
      linux*)
14911
	case $cc_basename in
14912
	  KCC)
14913
	    # KAI C++ Compiler
14914
	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14915
	    lt_prog_compiler_pic_CXX='-fPIC'
14916
	    ;;
14917
	  icpc)
14918
	    # Intel C++
14919
	    lt_prog_compiler_wl_CXX='-Wl,'
14920
	    lt_prog_compiler_pic_CXX='-KPIC'
14921
	    lt_prog_compiler_static_CXX='-static'
14922
	    ;;
14923
	  cxx)
14924
	    # Compaq C++
14925
	    # Make sure the PIC flag is empty.  It appears that all Alpha
14926
	    # Linux and Compaq Tru64 Unix objects are PIC.
14927
	    lt_prog_compiler_pic_CXX=
14928
	    lt_prog_compiler_static_CXX='-non_shared'
14929
	    ;;
14930
	  *)
14931
	    ;;
14932
	esac
14933
	;;
14934
      lynxos*)
14935
	;;
14936
      m88k*)
14937
	;;
14938
      mvs*)
14939
	case $cc_basename in
14940
	  cxx)
14941
	    lt_prog_compiler_pic_CXX='-W c,exportall'
14942
	    ;;
14943
	  *)
14944
	    ;;
14945
	esac
14946
	;;
14947
      netbsd*)
14948
	;;
14949
      osf3* | osf4* | osf5*)
14950
	case $cc_basename in
14951
	  KCC)
14952
	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14953
	    ;;
14954
	  RCC)
14955
	    # Rational C++ 2.4.1
14956
	    lt_prog_compiler_pic_CXX='-pic'
14957
	    ;;
14958
	  cxx)
14959
	    # Digital/Compaq C++
14960
	    lt_prog_compiler_wl_CXX='-Wl,'
14961
	    # Make sure the PIC flag is empty.  It appears that all Alpha
14962
	    # Linux and Compaq Tru64 Unix objects are PIC.
14963
	    lt_prog_compiler_pic_CXX=
14964
	    lt_prog_compiler_static_CXX='-non_shared'
14965
	    ;;
14966
	  *)
14967
	    ;;
14968
	esac
14969
	;;
14970
      psos*)
14971
	;;
14972
      sco*)
14973
	case $cc_basename in
14974
	  CC)
14975
	    lt_prog_compiler_pic_CXX='-fPIC'
14976
	    ;;
14977
	  *)
14978
	    ;;
14979
	esac
14980
	;;
14981
      solaris*)
14982
	case $cc_basename in
14983
	  CC)
14984
	    # Sun C++ 4.2, 5.x and Centerline C++
14985
	    lt_prog_compiler_pic_CXX='-KPIC'
14986
	    lt_prog_compiler_static_CXX='-Bstatic'
14987
	    lt_prog_compiler_wl_CXX='-Qoption ld '
14988
	    ;;
14989
	  gcx)
14990
	    # Green Hills C++ Compiler
14991
	    lt_prog_compiler_pic_CXX='-PIC'
14992
	    ;;
14993
	  *)
14994
	    ;;
14995
	esac
14996
	;;
14997
      sunos4*)
14998
	case $cc_basename in
14999
	  CC)
15000
	    # Sun C++ 4.x
15001
	    lt_prog_compiler_pic_CXX='-pic'
15002
	    lt_prog_compiler_static_CXX='-Bstatic'
15003
	    ;;
15004
	  lcc)
15005
	    # Lucid
15006
	    lt_prog_compiler_pic_CXX='-pic'
15007
	    ;;
15008
	  *)
15009
	    ;;
15010
	esac
15011
	;;
15012
      tandem*)
15013
	case $cc_basename in
15014
	  NCC)
15015
	    # NonStop-UX NCC 3.20
15016
	    lt_prog_compiler_pic_CXX='-KPIC'
15017
	    ;;
15018
	  *)
15019
	    ;;
15020
	esac
15021
	;;
15022
      unixware*)
15023
	;;
15024
      vxworks*)
15025
	;;
15026
      *)
15027
	lt_prog_compiler_can_build_shared_CXX=no
15028
	;;
15029
    esac
15030
  fi
15031
 
216 andreas 15032
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
15033
$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
88 andreas 15034
 
15035
#
15036
# Check to make sure the PIC flag actually works.
15037
#
15038
if test -n "$lt_prog_compiler_pic_CXX"; then
15039
 
216 andreas 15040
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15041
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
88 andreas 15042
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
216 andreas 15043
  $as_echo_n "(cached) " >&6
88 andreas 15044
else
15045
  lt_prog_compiler_pic_works_CXX=no
15046
  ac_outfile=conftest.$ac_objext
15047
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15048
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15049
   # Insert the option either (1) after the last *FLAGS variable, or
15050
   # (2) before a word containing "conftest.", or (3) at the end.
15051
   # Note that $ac_compile itself does not contain backslashes and begins
15052
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15053
   # The option is referenced via a variable to avoid confusing sed.
15054
   lt_compile=`echo "$ac_compile" | $SED \
15055
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15056
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15057
   -e 's:$: $lt_compiler_flag:'`
216 andreas 15058
   (eval echo "\"\$as_me:15058: $lt_compile\"" >&5)
88 andreas 15059
   (eval "$lt_compile" 2>conftest.err)
15060
   ac_status=$?
15061
   cat conftest.err >&5
216 andreas 15062
   echo "$as_me:15062: \$? = $ac_status" >&5
88 andreas 15063
   if (exit $ac_status) && test -s "$ac_outfile"; then
15064
     # The compiler can only warn and ignore the option if not recognized
15065
     # So say no if there are warnings
15066
     if test ! -s conftest.err; then
15067
       lt_prog_compiler_pic_works_CXX=yes
15068
     fi
15069
   fi
15070
   $rm conftest*
15071
 
15072
fi
216 andreas 15073
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
15074
$as_echo "$lt_prog_compiler_pic_works_CXX" >&6; }
88 andreas 15075
 
15076
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
15077
    case $lt_prog_compiler_pic_CXX in
15078
     "" | " "*) ;;
15079
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15080
     esac
15081
else
15082
    lt_prog_compiler_pic_CXX=
15083
     lt_prog_compiler_can_build_shared_CXX=no
15084
fi
15085
 
15086
fi
15087
case "$host_os" in
15088
  # For platforms which do not support PIC, -DPIC is meaningless:
15089
  *djgpp*)
15090
    lt_prog_compiler_pic_CXX=
15091
    ;;
15092
  *)
15093
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15094
    ;;
15095
esac
15096
 
216 andreas 15097
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15098
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
88 andreas 15099
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
216 andreas 15100
  $as_echo_n "(cached) " >&6
88 andreas 15101
else
15102
  lt_cv_prog_compiler_c_o_CXX=no
15103
   $rm -r conftest 2>/dev/null
15104
   mkdir conftest
15105
   cd conftest
15106
   mkdir out
15107
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15108
 
15109
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15110
   # that will create temporary files in the current directory regardless of
15111
   # the output directory.  Thus, making CWD read-only will cause this test
15112
   # to fail, enabling locking or at least warning the user not to do parallel
15113
   # builds.
15114
   chmod -w .
15115
 
15116
   lt_compiler_flag="-o out/conftest2.$ac_objext"
15117
   # Insert the option either (1) after the last *FLAGS variable, or
15118
   # (2) before a word containing "conftest.", or (3) at the end.
15119
   # Note that $ac_compile itself does not contain backslashes and begins
15120
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15121
   lt_compile=`echo "$ac_compile" | $SED \
15122
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15123
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15124
   -e 's:$: $lt_compiler_flag:'`
216 andreas 15125
   (eval echo "\"\$as_me:15125: $lt_compile\"" >&5)
88 andreas 15126
   (eval "$lt_compile" 2>out/conftest.err)
15127
   ac_status=$?
15128
   cat out/conftest.err >&5
216 andreas 15129
   echo "$as_me:15129: \$? = $ac_status" >&5
88 andreas 15130
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15131
   then
15132
     # The compiler can only warn and ignore the option if not recognized
15133
     # So say no if there are warnings
15134
     if test ! -s out/conftest.err; then
15135
       lt_cv_prog_compiler_c_o_CXX=yes
15136
     fi
15137
   fi
15138
   chmod u+w .
15139
   $rm conftest* out/*
15140
   rmdir out
15141
   cd ..
15142
   rmdir conftest
15143
   $rm conftest*
15144
 
15145
fi
216 andreas 15146
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15147
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
88 andreas 15148
 
15149
 
15150
hard_links="nottested"
15151
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15152
  # do not overwrite the value of need_locks provided by the user
216 andreas 15153
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15154
$as_echo_n "checking if we can lock with hard links... " >&6; }
88 andreas 15155
  hard_links=yes
15156
  $rm conftest*
15157
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15158
  touch conftest.a
15159
  ln conftest.a conftest.b 2>&5 || hard_links=no
15160
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
216 andreas 15161
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
15162
$as_echo "$hard_links" >&6; }
88 andreas 15163
  if test "$hard_links" = no; then
216 andreas 15164
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15165
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
88 andreas 15166
    need_locks=warn
15167
  fi
15168
else
15169
  need_locks=no
15170
fi
15171
 
216 andreas 15172
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15173
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
88 andreas 15174
 
15175
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15176
  case $host_os in
15177
  aix4* | aix5*)
15178
    # If we're using GNU nm, then we don't want the "-C" option.
15179
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
15180
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15181
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15182
    else
15183
      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15184
    fi
15185
    ;;
15186
  pw32*)
15187
    export_symbols_cmds_CXX="$ltdll_cmds"
15188
  ;;
15189
  cygwin* | mingw*)
15190
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15191
  ;;
15192
  *)
15193
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15194
  ;;
15195
  esac
15196
 
216 andreas 15197
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15198
$as_echo "$ld_shlibs_CXX" >&6; }
88 andreas 15199
test "$ld_shlibs_CXX" = no && can_build_shared=no
15200
 
15201
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15202
if test "$GCC" = yes; then
15203
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15204
fi
15205
 
15206
#
15207
# Do we need to explicitly link libc?
15208
#
15209
case "x$archive_cmds_need_lc_CXX" in
15210
x|xyes)
15211
  # Assume -lc should be added
15212
  archive_cmds_need_lc_CXX=yes
15213
 
15214
  if test "$enable_shared" = yes && test "$GCC" = yes; then
15215
    case $archive_cmds_CXX in
15216
    *'~'*)
15217
      # FIXME: we may have to deal with multi-command sequences.
15218
      ;;
15219
    '$CC '*)
15220
      # Test whether the compiler implicitly links with -lc since on some
15221
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15222
      # to ld, don't add -lc before -lgcc.
216 andreas 15223
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15224
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
88 andreas 15225
      $rm conftest*
15226
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15227
 
15228
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15229
  (eval $ac_compile) 2>&5
15230
  ac_status=$?
216 andreas 15231
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 15232
  (exit $ac_status); } 2>conftest.err; then
15233
        soname=conftest
15234
        lib=conftest
15235
        libobjs=conftest.$ac_objext
15236
        deplibs=
15237
        wl=$lt_prog_compiler_wl_CXX
15238
        compiler_flags=-v
15239
        linker_flags=-v
15240
        verstring=
15241
        output_objdir=.
15242
        libname=conftest
15243
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15244
        allow_undefined_flag_CXX=
15245
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15246
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15247
  ac_status=$?
216 andreas 15248
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 15249
  (exit $ac_status); }
15250
        then
15251
	  archive_cmds_need_lc_CXX=no
15252
        else
15253
	  archive_cmds_need_lc_CXX=yes
15254
        fi
15255
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15256
      else
15257
        cat conftest.err 1>&5
15258
      fi
15259
      $rm conftest*
216 andreas 15260
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15261
$as_echo "$archive_cmds_need_lc_CXX" >&6; }
88 andreas 15262
      ;;
15263
    esac
15264
  fi
15265
  ;;
15266
esac
15267
 
216 andreas 15268
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15269
$as_echo_n "checking dynamic linker characteristics... " >&6; }
88 andreas 15270
library_names_spec=
15271
libname_spec='lib$name'
15272
soname_spec=
15273
shrext=".so"
15274
postinstall_cmds=
15275
postuninstall_cmds=
15276
finish_cmds=
15277
finish_eval=
15278
shlibpath_var=
15279
shlibpath_overrides_runpath=unknown
15280
version_type=none
15281
dynamic_linker="$host_os ld.so"
15282
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15283
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15284
need_lib_prefix=unknown
15285
hardcode_into_libs=no
15286
 
15287
# when you set need_version to no, make sure it does not cause -set_version
15288
# flags to be left without arguments
15289
need_version=unknown
15290
 
15291
case $host_os in
15292
aix3*)
15293
  version_type=linux
15294
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15295
  shlibpath_var=LIBPATH
15296
 
15297
  # AIX 3 has no versioning support, so we append a major version to the name.
15298
  soname_spec='${libname}${release}${shared_ext}$major'
15299
  ;;
15300
 
15301
aix4* | aix5*)
15302
  version_type=linux
15303
  need_lib_prefix=no
15304
  need_version=no
15305
  hardcode_into_libs=yes
15306
  if test "$host_cpu" = ia64; then
15307
    # AIX 5 supports IA64
15308
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15309
    shlibpath_var=LD_LIBRARY_PATH
15310
  else
15311
    # With GCC up to 2.95.x, collect2 would create an import file
15312
    # for dependence libraries.  The import file would start with
15313
    # the line `#! .'.  This would cause the generated library to
15314
    # depend on `.', always an invalid library.  This was fixed in
15315
    # development snapshots of GCC prior to 3.0.
15316
    case $host_os in
15317
      aix4 | aix4.[01] | aix4.[01].*)
15318
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15319
	   echo ' yes '
15320
	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15321
	:
15322
      else
15323
	can_build_shared=no
15324
      fi
15325
      ;;
15326
    esac
15327
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15328
    # soname into executable. Probably we can add versioning support to
15329
    # collect2, so additional links can be useful in future.
15330
    if test "$aix_use_runtimelinking" = yes; then
15331
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15332
      # instead of lib<name>.a to let people know that these are not
15333
      # typical AIX shared libraries.
15334
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15335
    else
15336
      # We preserve .a as extension for shared libraries through AIX4.2
15337
      # and later when we are not doing run time linking.
15338
      library_names_spec='${libname}${release}.a $libname.a'
15339
      soname_spec='${libname}${release}${shared_ext}$major'
15340
    fi
15341
    shlibpath_var=LIBPATH
15342
  fi
15343
  ;;
15344
 
15345
amigaos*)
15346
  library_names_spec='$libname.ixlibrary $libname.a'
15347
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15348
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
15349
  ;;
15350
 
15351
beos*)
15352
  library_names_spec='${libname}${shared_ext}'
15353
  dynamic_linker="$host_os ld.so"
15354
  shlibpath_var=LIBRARY_PATH
15355
  ;;
15356
 
15357
bsdi4*)
15358
  version_type=linux
15359
  need_version=no
15360
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15361
  soname_spec='${libname}${release}${shared_ext}$major'
15362
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15363
  shlibpath_var=LD_LIBRARY_PATH
15364
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15365
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15366
  # the default ld.so.conf also contains /usr/contrib/lib and
15367
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15368
  # libtool to hard-code these into programs
15369
  ;;
15370
 
15371
cygwin* | mingw* | pw32*)
15372
  version_type=windows
15373
  shrext=".dll"
15374
  need_version=no
15375
  need_lib_prefix=no
15376
 
15377
  case $GCC,$host_os in
15378
  yes,cygwin* | yes,mingw* | yes,pw32*)
15379
    library_names_spec='$libname.dll.a'
15380
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15381
    postinstall_cmds='base_file=`basename \${file}`~
15382
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15383
      dldir=$destdir/`dirname \$dlpath`~
15384
      test -d \$dldir || mkdir -p \$dldir~
15385
      $install_prog $dir/$dlname \$dldir/$dlname'
15386
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15387
      dlpath=$dir/\$dldll~
15388
       $rm \$dlpath'
15389
    shlibpath_overrides_runpath=yes
15390
 
15391
    case $host_os in
15392
    cygwin*)
15393
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15394
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15395
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15396
      ;;
15397
    mingw*)
15398
      # MinGW DLLs use traditional 'lib' prefix
15399
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15400
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15401
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15402
        # It is most probably a Windows format PATH printed by
15403
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15404
        # path with ; separators, and with drive letters. We can handle the
15405
        # drive letters (cygwin fileutils understands them), so leave them,
15406
        # especially as we might pass files found there to a mingw objdump,
15407
        # which wouldn't understand a cygwinified path. Ahh.
15408
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15409
      else
15410
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15411
      fi
15412
      ;;
15413
    pw32*)
15414
      # pw32 DLLs use 'pw' prefix rather than 'lib'
15415
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15416
      ;;
15417
    esac
15418
    ;;
15419
 
15420
  *)
15421
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15422
    ;;
15423
  esac
15424
  dynamic_linker='Win32 ld.exe'
15425
  # FIXME: first we should search . and the directory the executable is in
15426
  shlibpath_var=PATH
15427
  ;;
15428
 
15429
darwin* | rhapsody*)
15430
  dynamic_linker="$host_os dyld"
15431
  version_type=darwin
15432
  need_lib_prefix=no
15433
  need_version=no
15434
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15435
  soname_spec='${libname}${release}${major}$shared_ext'
15436
  shlibpath_overrides_runpath=yes
15437
  shlibpath_var=DYLD_LIBRARY_PATH
15438
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
15439
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15440
  if test "$GCC" = yes; then
15441
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15442
  else
15443
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15444
  fi
15445
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15446
  ;;
15447
 
15448
dgux*)
15449
  version_type=linux
15450
  need_lib_prefix=no
15451
  need_version=no
15452
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15453
  soname_spec='${libname}${release}${shared_ext}$major'
15454
  shlibpath_var=LD_LIBRARY_PATH
15455
  ;;
15456
 
15457
freebsd1*)
15458
  dynamic_linker=no
15459
  ;;
15460
 
15461
kfreebsd*-gnu*)
15462
  version_type=linux
15463
  need_lib_prefix=no
15464
  need_version=no
15465
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15466
  soname_spec='${libname}${release}${shared_ext}$major'
15467
  shlibpath_var=LD_LIBRARY_PATH
15468
  shlibpath_overrides_runpath=no
15469
  hardcode_into_libs=yes
15470
  dynamic_linker='GNU ld.so'
15471
  ;;
15472
 
15473
freebsd*)
15474
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15475
  version_type=freebsd-$objformat
15476
  case $version_type in
15477
    freebsd-elf*)
15478
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15479
      need_version=no
15480
      need_lib_prefix=no
15481
      ;;
15482
    freebsd-*)
15483
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15484
      need_version=yes
15485
      ;;
15486
  esac
15487
  shlibpath_var=LD_LIBRARY_PATH
15488
  case $host_os in
15489
  freebsd2*)
15490
    shlibpath_overrides_runpath=yes
15491
    ;;
15492
  freebsd3.01* | freebsdelf3.01*)
15493
    shlibpath_overrides_runpath=yes
15494
    hardcode_into_libs=yes
15495
    ;;
15496
  *) # from 3.2 on
15497
    shlibpath_overrides_runpath=no
15498
    hardcode_into_libs=yes
15499
    ;;
15500
  esac
15501
  ;;
15502
 
15503
gnu*)
15504
  version_type=linux
15505
  need_lib_prefix=no
15506
  need_version=no
15507
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15508
  soname_spec='${libname}${release}${shared_ext}$major'
15509
  shlibpath_var=LD_LIBRARY_PATH
15510
  hardcode_into_libs=yes
15511
  ;;
15512
 
15513
hpux9* | hpux10* | hpux11*)
15514
  # Give a soname corresponding to the major version so that dld.sl refuses to
15515
  # link against other versions.
15516
  version_type=sunos
15517
  need_lib_prefix=no
15518
  need_version=no
15519
  case "$host_cpu" in
15520
  ia64*)
15521
    shrext='.so'
15522
    hardcode_into_libs=yes
15523
    dynamic_linker="$host_os dld.so"
15524
    shlibpath_var=LD_LIBRARY_PATH
15525
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15526
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15527
    soname_spec='${libname}${release}${shared_ext}$major'
15528
    if test "X$HPUX_IA64_MODE" = X32; then
15529
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15530
    else
15531
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15532
    fi
15533
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15534
    ;;
15535
   hppa*64*)
15536
     shrext='.sl'
15537
     hardcode_into_libs=yes
15538
     dynamic_linker="$host_os dld.sl"
15539
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15540
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15541
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15542
     soname_spec='${libname}${release}${shared_ext}$major'
15543
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15544
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15545
     ;;
15546
   *)
15547
    shrext='.sl'
15548
    dynamic_linker="$host_os dld.sl"
15549
    shlibpath_var=SHLIB_PATH
15550
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15551
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15552
    soname_spec='${libname}${release}${shared_ext}$major'
15553
    ;;
15554
  esac
15555
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15556
  postinstall_cmds='chmod 555 $lib'
15557
  ;;
15558
 
15559
irix5* | irix6* | nonstopux*)
15560
  case $host_os in
15561
    nonstopux*) version_type=nonstopux ;;
15562
    *)
15563
	if test "$lt_cv_prog_gnu_ld" = yes; then
15564
		version_type=linux
15565
	else
15566
		version_type=irix
15567
	fi ;;
15568
  esac
15569
  need_lib_prefix=no
15570
  need_version=no
15571
  soname_spec='${libname}${release}${shared_ext}$major'
15572
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15573
  case $host_os in
15574
  irix5* | nonstopux*)
15575
    libsuff= shlibsuff=
15576
    ;;
15577
  *)
15578
    case $LD in # libtool.m4 will add one of these switches to LD
15579
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15580
      libsuff= shlibsuff= libmagic=32-bit;;
15581
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15582
      libsuff=32 shlibsuff=N32 libmagic=N32;;
15583
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15584
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15585
    *) libsuff= shlibsuff= libmagic=never-match;;
15586
    esac
15587
    ;;
15588
  esac
15589
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15590
  shlibpath_overrides_runpath=no
15591
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15592
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15593
  hardcode_into_libs=yes
15594
  ;;
15595
 
15596
# No shared lib support for Linux oldld, aout, or coff.
15597
linux*oldld* | linux*aout* | linux*coff*)
15598
  dynamic_linker=no
15599
  ;;
15600
 
15601
# This must be Linux ELF.
15602
linux*)
15603
  version_type=linux
15604
  need_lib_prefix=no
15605
  need_version=no
15606
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15607
  soname_spec='${libname}${release}${shared_ext}$major'
15608
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15609
  libsuff=
15610
  if test "x$LINUX_64_MODE" = x64; then
15611
    # Some platforms are per default 64-bit, so there's no /lib64
15612
    if test -d /lib64 -a ! -h /lib64; then
15613
      libsuff=64
15614
    fi
15615
  fi
15616
  shlibpath_var=LD_LIBRARY_PATH
15617
  shlibpath_overrides_runpath=no
15618
  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
15619
  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15620
  # This implies no fast_install, which is unacceptable.
15621
  # Some rework will be needed to allow for fast_install
15622
  # before this can be enabled.
15623
  hardcode_into_libs=yes
15624
 
15625
  # We used to test for /lib/ld.so.1 and disable shared libraries on
15626
  # powerpc, because MkLinux only supported shared libraries with the
15627
  # GNU dynamic linker.  Since this was broken with cross compilers,
15628
  # most powerpc-linux boxes support dynamic linking these days and
15629
  # people can always --disable-shared, the test was removed, and we
15630
  # assume the GNU/Linux dynamic linker is in use.
15631
  dynamic_linker='GNU/Linux ld.so'
15632
  ;;
15633
 
15634
netbsd*)
15635
  version_type=sunos
15636
  need_lib_prefix=no
15637
  need_version=no
15638
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15639
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15640
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15641
    dynamic_linker='NetBSD (a.out) ld.so'
15642
  else
15643
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
15644
    soname_spec='${libname}${release}${shared_ext}$major'
15645
    dynamic_linker='NetBSD ld.elf_so'
15646
  fi
15647
  shlibpath_var=LD_LIBRARY_PATH
15648
  shlibpath_overrides_runpath=yes
15649
  hardcode_into_libs=yes
15650
  ;;
15651
 
15652
newsos6)
15653
  version_type=linux
15654
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15655
  shlibpath_var=LD_LIBRARY_PATH
15656
  shlibpath_overrides_runpath=yes
15657
  ;;
15658
 
15659
nto-qnx*)
15660
  version_type=linux
15661
  need_lib_prefix=no
15662
  need_version=no
15663
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15664
  soname_spec='${libname}${release}${shared_ext}$major'
15665
  shlibpath_var=LD_LIBRARY_PATH
15666
  shlibpath_overrides_runpath=yes
15667
  ;;
15668
 
15669
openbsd*)
15670
  version_type=sunos
15671
  need_lib_prefix=no
15672
  need_version=no
15673
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15674
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15675
  shlibpath_var=LD_LIBRARY_PATH
15676
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15677
    case $host_os in
15678
      openbsd2.[89] | openbsd2.[89].*)
15679
	shlibpath_overrides_runpath=no
15680
	;;
15681
      *)
15682
	shlibpath_overrides_runpath=yes
15683
	;;
15684
      esac
15685
  else
15686
    shlibpath_overrides_runpath=yes
15687
  fi
15688
  ;;
15689
 
15690
os2*)
15691
  libname_spec='$name'
15692
  shrext=".dll"
15693
  need_lib_prefix=no
15694
  library_names_spec='$libname${shared_ext} $libname.a'
15695
  dynamic_linker='OS/2 ld.exe'
15696
  shlibpath_var=LIBPATH
15697
  ;;
15698
 
15699
osf3* | osf4* | osf5*)
15700
  version_type=osf
15701
  need_lib_prefix=no
15702
  need_version=no
15703
  soname_spec='${libname}${release}${shared_ext}$major'
15704
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15705
  shlibpath_var=LD_LIBRARY_PATH
15706
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15707
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15708
  ;;
15709
 
15710
sco3.2v5*)
15711
  version_type=osf
15712
  soname_spec='${libname}${release}${shared_ext}$major'
15713
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15714
  shlibpath_var=LD_LIBRARY_PATH
15715
  ;;
15716
 
15717
solaris*)
15718
  version_type=linux
15719
  need_lib_prefix=no
15720
  need_version=no
15721
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15722
  soname_spec='${libname}${release}${shared_ext}$major'
15723
  shlibpath_var=LD_LIBRARY_PATH
15724
  shlibpath_overrides_runpath=yes
15725
  hardcode_into_libs=yes
15726
  # ldd complains unless libraries are executable
15727
  postinstall_cmds='chmod +x $lib'
15728
  ;;
15729
 
15730
sunos4*)
15731
  version_type=sunos
15732
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15733
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15734
  shlibpath_var=LD_LIBRARY_PATH
15735
  shlibpath_overrides_runpath=yes
15736
  if test "$with_gnu_ld" = yes; then
15737
    need_lib_prefix=no
15738
  fi
15739
  need_version=yes
15740
  ;;
15741
 
15742
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15743
  version_type=linux
15744
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15745
  soname_spec='${libname}${release}${shared_ext}$major'
15746
  shlibpath_var=LD_LIBRARY_PATH
15747
  case $host_vendor in
15748
    sni)
15749
      shlibpath_overrides_runpath=no
15750
      need_lib_prefix=no
15751
      export_dynamic_flag_spec='${wl}-Blargedynsym'
15752
      runpath_var=LD_RUN_PATH
15753
      ;;
15754
    siemens)
15755
      need_lib_prefix=no
15756
      ;;
15757
    motorola)
15758
      need_lib_prefix=no
15759
      need_version=no
15760
      shlibpath_overrides_runpath=no
15761
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15762
      ;;
15763
  esac
15764
  ;;
15765
 
15766
sysv4*MP*)
15767
  if test -d /usr/nec ;then
15768
    version_type=linux
15769
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15770
    soname_spec='$libname${shared_ext}.$major'
15771
    shlibpath_var=LD_LIBRARY_PATH
15772
  fi
15773
  ;;
15774
 
15775
uts4*)
15776
  version_type=linux
15777
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15778
  soname_spec='${libname}${release}${shared_ext}$major'
15779
  shlibpath_var=LD_LIBRARY_PATH
15780
  ;;
15781
 
15782
*)
15783
  dynamic_linker=no
15784
  ;;
15785
esac
216 andreas 15786
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15787
$as_echo "$dynamic_linker" >&6; }
88 andreas 15788
test "$dynamic_linker" = no && can_build_shared=no
15789
 
216 andreas 15790
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15791
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
88 andreas 15792
hardcode_action_CXX=
15793
if test -n "$hardcode_libdir_flag_spec_CXX" || \
15794
   test -n "$runpath_var CXX" || \
15795
   test "X$hardcode_automatic_CXX"="Xyes" ; then
15796
 
15797
  # We can hardcode non-existant directories.
15798
  if test "$hardcode_direct_CXX" != no &&
15799
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15800
     # have to relink, otherwise we might link with an installed library
15801
     # when we should be linking with a yet-to-be-installed one
15802
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15803
     test "$hardcode_minus_L_CXX" != no; then
15804
    # Linking always hardcodes the temporary library directory.
15805
    hardcode_action_CXX=relink
15806
  else
15807
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15808
    hardcode_action_CXX=immediate
15809
  fi
15810
else
15811
  # We cannot hardcode anything, or else we can only hardcode existing
15812
  # directories.
15813
  hardcode_action_CXX=unsupported
15814
fi
216 andreas 15815
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15816
$as_echo "$hardcode_action_CXX" >&6; }
88 andreas 15817
 
15818
if test "$hardcode_action_CXX" = relink; then
15819
  # Fast installation is not supported
15820
  enable_fast_install=no
15821
elif test "$shlibpath_overrides_runpath" = yes ||
15822
     test "$enable_shared" = no; then
15823
  # Fast installation is not necessary
15824
  enable_fast_install=needless
15825
fi
15826
 
15827
striplib=
15828
old_striplib=
216 andreas 15829
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15830
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
88 andreas 15831
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15832
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15833
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
216 andreas 15834
  { $as_echo "$as_me:$LINENO: result: yes" >&5
15835
$as_echo "yes" >&6; }
88 andreas 15836
else
15837
# FIXME - insert some real tests, host_os isn't really good enough
15838
  case $host_os in
15839
   darwin*)
15840
       if test -n "$STRIP" ; then
15841
         striplib="$STRIP -x"
216 andreas 15842
         { $as_echo "$as_me:$LINENO: result: yes" >&5
15843
$as_echo "yes" >&6; }
88 andreas 15844
       else
216 andreas 15845
  { $as_echo "$as_me:$LINENO: result: no" >&5
15846
$as_echo "no" >&6; }
88 andreas 15847
fi
15848
       ;;
15849
   *)
216 andreas 15850
  { $as_echo "$as_me:$LINENO: result: no" >&5
15851
$as_echo "no" >&6; }
88 andreas 15852
    ;;
15853
  esac
15854
fi
15855
 
15856
if test "x$enable_dlopen" != xyes; then
15857
  enable_dlopen=unknown
15858
  enable_dlopen_self=unknown
15859
  enable_dlopen_self_static=unknown
15860
else
15861
  lt_cv_dlopen=no
15862
  lt_cv_dlopen_libs=
15863
 
15864
  case $host_os in
15865
  beos*)
15866
    lt_cv_dlopen="load_add_on"
15867
    lt_cv_dlopen_libs=
15868
    lt_cv_dlopen_self=yes
15869
    ;;
15870
 
15871
  mingw* | pw32*)
15872
    lt_cv_dlopen="LoadLibrary"
15873
    lt_cv_dlopen_libs=
15874
   ;;
15875
 
15876
  cygwin*)
15877
    lt_cv_dlopen="dlopen"
15878
    lt_cv_dlopen_libs=
15879
   ;;
15880
 
15881
  darwin*)
15882
  # if libdl is installed we need to link against it
216 andreas 15883
    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15884
$as_echo_n "checking for dlopen in -ldl... " >&6; }
88 andreas 15885
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
216 andreas 15886
  $as_echo_n "(cached) " >&6
88 andreas 15887
else
15888
  ac_check_lib_save_LIBS=$LIBS
15889
LIBS="-ldl  $LIBS"
15890
cat >conftest.$ac_ext <<_ACEOF
15891
/* confdefs.h.  */
15892
_ACEOF
15893
cat confdefs.h >>conftest.$ac_ext
15894
cat >>conftest.$ac_ext <<_ACEOF
15895
/* end confdefs.h.  */
15896
 
15897
/* Override any GCC internal prototype to avoid an error.
15898
   Use char because int might match the return type of a GCC
15899
   builtin and then its argument prototype would still apply.  */
15900
#ifdef __cplusplus
15901
extern "C"
15902
#endif
15903
char dlopen ();
15904
int
15905
main ()
15906
{
15907
return dlopen ();
15908
  ;
15909
  return 0;
15910
}
15911
_ACEOF
15912
rm -f conftest.$ac_objext conftest$ac_exeext
15913
if { (ac_try="$ac_link"
15914
case "(($ac_try" in
15915
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15916
  *) ac_try_echo=$ac_try;;
15917
esac
216 andreas 15918
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15919
$as_echo "$ac_try_echo") >&5
88 andreas 15920
  (eval "$ac_link") 2>conftest.er1
15921
  ac_status=$?
15922
  grep -v '^ *+' conftest.er1 >conftest.err
15923
  rm -f conftest.er1
15924
  cat conftest.err >&5
216 andreas 15925
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 15926
  (exit $ac_status); } && {
15927
	 test -z "$ac_cxx_werror_flag" ||
15928
	 test ! -s conftest.err
216 andreas 15929
       } && test -s conftest$ac_exeext && {
15930
	 test "$cross_compiling" = yes ||
15931
	 $as_test_x conftest$ac_exeext
15932
       }; then
88 andreas 15933
  ac_cv_lib_dl_dlopen=yes
15934
else
216 andreas 15935
  $as_echo "$as_me: failed program was:" >&5
88 andreas 15936
sed 's/^/| /' conftest.$ac_ext >&5
15937
 
15938
	ac_cv_lib_dl_dlopen=no
15939
fi
15940
 
216 andreas 15941
rm -rf conftest.dSYM
88 andreas 15942
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15943
      conftest$ac_exeext conftest.$ac_ext
15944
LIBS=$ac_check_lib_save_LIBS
15945
fi
216 andreas 15946
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15947
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15948
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
88 andreas 15949
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15950
else
15951
 
15952
    lt_cv_dlopen="dyld"
15953
    lt_cv_dlopen_libs=
15954
    lt_cv_dlopen_self=yes
15955
 
15956
fi
15957
 
15958
   ;;
15959
 
15960
  *)
216 andreas 15961
    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
15962
$as_echo_n "checking for shl_load... " >&6; }
88 andreas 15963
if test "${ac_cv_func_shl_load+set}" = set; then
216 andreas 15964
  $as_echo_n "(cached) " >&6
88 andreas 15965
else
15966
  cat >conftest.$ac_ext <<_ACEOF
15967
/* confdefs.h.  */
15968
_ACEOF
15969
cat confdefs.h >>conftest.$ac_ext
15970
cat >>conftest.$ac_ext <<_ACEOF
15971
/* end confdefs.h.  */
15972
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
15973
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15974
#define shl_load innocuous_shl_load
15975
 
15976
/* System header to define __stub macros and hopefully few prototypes,
15977
    which can conflict with char shl_load (); below.
15978
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15979
    <limits.h> exists even on freestanding compilers.  */
15980
 
15981
#ifdef __STDC__
15982
# include <limits.h>
15983
#else
15984
# include <assert.h>
15985
#endif
15986
 
15987
#undef shl_load
15988
 
15989
/* Override any GCC internal prototype to avoid an error.
15990
   Use char because int might match the return type of a GCC
15991
   builtin and then its argument prototype would still apply.  */
15992
#ifdef __cplusplus
15993
extern "C"
15994
#endif
15995
char shl_load ();
15996
/* The GNU C library defines this for functions which it implements
15997
    to always fail with ENOSYS.  Some functions are actually named
15998
    something starting with __ and the normal name is an alias.  */
15999
#if defined __stub_shl_load || defined __stub___shl_load
16000
choke me
16001
#endif
16002
 
16003
int
16004
main ()
16005
{
16006
return shl_load ();
16007
  ;
16008
  return 0;
16009
}
16010
_ACEOF
16011
rm -f conftest.$ac_objext conftest$ac_exeext
16012
if { (ac_try="$ac_link"
16013
case "(($ac_try" in
16014
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16015
  *) ac_try_echo=$ac_try;;
16016
esac
216 andreas 16017
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16018
$as_echo "$ac_try_echo") >&5
88 andreas 16019
  (eval "$ac_link") 2>conftest.er1
16020
  ac_status=$?
16021
  grep -v '^ *+' conftest.er1 >conftest.err
16022
  rm -f conftest.er1
16023
  cat conftest.err >&5
216 andreas 16024
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 16025
  (exit $ac_status); } && {
16026
	 test -z "$ac_cxx_werror_flag" ||
16027
	 test ! -s conftest.err
216 andreas 16028
       } && test -s conftest$ac_exeext && {
16029
	 test "$cross_compiling" = yes ||
16030
	 $as_test_x conftest$ac_exeext
16031
       }; then
88 andreas 16032
  ac_cv_func_shl_load=yes
16033
else
216 andreas 16034
  $as_echo "$as_me: failed program was:" >&5
88 andreas 16035
sed 's/^/| /' conftest.$ac_ext >&5
16036
 
16037
	ac_cv_func_shl_load=no
16038
fi
16039
 
216 andreas 16040
rm -rf conftest.dSYM
88 andreas 16041
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16042
      conftest$ac_exeext conftest.$ac_ext
16043
fi
216 andreas 16044
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16045
$as_echo "$ac_cv_func_shl_load" >&6; }
16046
if test "x$ac_cv_func_shl_load" = x""yes; then
88 andreas 16047
  lt_cv_dlopen="shl_load"
16048
else
216 andreas 16049
  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16050
$as_echo_n "checking for shl_load in -ldld... " >&6; }
88 andreas 16051
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
216 andreas 16052
  $as_echo_n "(cached) " >&6
88 andreas 16053
else
16054
  ac_check_lib_save_LIBS=$LIBS
16055
LIBS="-ldld  $LIBS"
16056
cat >conftest.$ac_ext <<_ACEOF
16057
/* confdefs.h.  */
16058
_ACEOF
16059
cat confdefs.h >>conftest.$ac_ext
16060
cat >>conftest.$ac_ext <<_ACEOF
16061
/* end confdefs.h.  */
16062
 
16063
/* Override any GCC internal prototype to avoid an error.
16064
   Use char because int might match the return type of a GCC
16065
   builtin and then its argument prototype would still apply.  */
16066
#ifdef __cplusplus
16067
extern "C"
16068
#endif
16069
char shl_load ();
16070
int
16071
main ()
16072
{
16073
return shl_load ();
16074
  ;
16075
  return 0;
16076
}
16077
_ACEOF
16078
rm -f conftest.$ac_objext conftest$ac_exeext
16079
if { (ac_try="$ac_link"
16080
case "(($ac_try" in
16081
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16082
  *) ac_try_echo=$ac_try;;
16083
esac
216 andreas 16084
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16085
$as_echo "$ac_try_echo") >&5
88 andreas 16086
  (eval "$ac_link") 2>conftest.er1
16087
  ac_status=$?
16088
  grep -v '^ *+' conftest.er1 >conftest.err
16089
  rm -f conftest.er1
16090
  cat conftest.err >&5
216 andreas 16091
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 16092
  (exit $ac_status); } && {
16093
	 test -z "$ac_cxx_werror_flag" ||
16094
	 test ! -s conftest.err
216 andreas 16095
       } && test -s conftest$ac_exeext && {
16096
	 test "$cross_compiling" = yes ||
16097
	 $as_test_x conftest$ac_exeext
16098
       }; then
88 andreas 16099
  ac_cv_lib_dld_shl_load=yes
16100
else
216 andreas 16101
  $as_echo "$as_me: failed program was:" >&5
88 andreas 16102
sed 's/^/| /' conftest.$ac_ext >&5
16103
 
16104
	ac_cv_lib_dld_shl_load=no
16105
fi
16106
 
216 andreas 16107
rm -rf conftest.dSYM
88 andreas 16108
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16109
      conftest$ac_exeext conftest.$ac_ext
16110
LIBS=$ac_check_lib_save_LIBS
16111
fi
216 andreas 16112
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16113
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16114
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
88 andreas 16115
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16116
else
216 andreas 16117
  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
16118
$as_echo_n "checking for dlopen... " >&6; }
88 andreas 16119
if test "${ac_cv_func_dlopen+set}" = set; then
216 andreas 16120
  $as_echo_n "(cached) " >&6
88 andreas 16121
else
16122
  cat >conftest.$ac_ext <<_ACEOF
16123
/* confdefs.h.  */
16124
_ACEOF
16125
cat confdefs.h >>conftest.$ac_ext
16126
cat >>conftest.$ac_ext <<_ACEOF
16127
/* end confdefs.h.  */
16128
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16129
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16130
#define dlopen innocuous_dlopen
16131
 
16132
/* System header to define __stub macros and hopefully few prototypes,
16133
    which can conflict with char dlopen (); below.
16134
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16135
    <limits.h> exists even on freestanding compilers.  */
16136
 
16137
#ifdef __STDC__
16138
# include <limits.h>
16139
#else
16140
# include <assert.h>
16141
#endif
16142
 
16143
#undef dlopen
16144
 
16145
/* Override any GCC internal prototype to avoid an error.
16146
   Use char because int might match the return type of a GCC
16147
   builtin and then its argument prototype would still apply.  */
16148
#ifdef __cplusplus
16149
extern "C"
16150
#endif
16151
char dlopen ();
16152
/* The GNU C library defines this for functions which it implements
16153
    to always fail with ENOSYS.  Some functions are actually named
16154
    something starting with __ and the normal name is an alias.  */
16155
#if defined __stub_dlopen || defined __stub___dlopen
16156
choke me
16157
#endif
16158
 
16159
int
16160
main ()
16161
{
16162
return dlopen ();
16163
  ;
16164
  return 0;
16165
}
16166
_ACEOF
16167
rm -f conftest.$ac_objext conftest$ac_exeext
16168
if { (ac_try="$ac_link"
16169
case "(($ac_try" in
16170
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16171
  *) ac_try_echo=$ac_try;;
16172
esac
216 andreas 16173
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16174
$as_echo "$ac_try_echo") >&5
88 andreas 16175
  (eval "$ac_link") 2>conftest.er1
16176
  ac_status=$?
16177
  grep -v '^ *+' conftest.er1 >conftest.err
16178
  rm -f conftest.er1
16179
  cat conftest.err >&5
216 andreas 16180
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 16181
  (exit $ac_status); } && {
16182
	 test -z "$ac_cxx_werror_flag" ||
16183
	 test ! -s conftest.err
216 andreas 16184
       } && test -s conftest$ac_exeext && {
16185
	 test "$cross_compiling" = yes ||
16186
	 $as_test_x conftest$ac_exeext
16187
       }; then
88 andreas 16188
  ac_cv_func_dlopen=yes
16189
else
216 andreas 16190
  $as_echo "$as_me: failed program was:" >&5
88 andreas 16191
sed 's/^/| /' conftest.$ac_ext >&5
16192
 
16193
	ac_cv_func_dlopen=no
16194
fi
16195
 
216 andreas 16196
rm -rf conftest.dSYM
88 andreas 16197
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16198
      conftest$ac_exeext conftest.$ac_ext
16199
fi
216 andreas 16200
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16201
$as_echo "$ac_cv_func_dlopen" >&6; }
16202
if test "x$ac_cv_func_dlopen" = x""yes; then
88 andreas 16203
  lt_cv_dlopen="dlopen"
16204
else
216 andreas 16205
  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16206
$as_echo_n "checking for dlopen in -ldl... " >&6; }
88 andreas 16207
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
216 andreas 16208
  $as_echo_n "(cached) " >&6
88 andreas 16209
else
16210
  ac_check_lib_save_LIBS=$LIBS
16211
LIBS="-ldl  $LIBS"
16212
cat >conftest.$ac_ext <<_ACEOF
16213
/* confdefs.h.  */
16214
_ACEOF
16215
cat confdefs.h >>conftest.$ac_ext
16216
cat >>conftest.$ac_ext <<_ACEOF
16217
/* end confdefs.h.  */
16218
 
16219
/* Override any GCC internal prototype to avoid an error.
16220
   Use char because int might match the return type of a GCC
16221
   builtin and then its argument prototype would still apply.  */
16222
#ifdef __cplusplus
16223
extern "C"
16224
#endif
16225
char dlopen ();
16226
int
16227
main ()
16228
{
16229
return dlopen ();
16230
  ;
16231
  return 0;
16232
}
16233
_ACEOF
16234
rm -f conftest.$ac_objext conftest$ac_exeext
16235
if { (ac_try="$ac_link"
16236
case "(($ac_try" in
16237
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16238
  *) ac_try_echo=$ac_try;;
16239
esac
216 andreas 16240
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16241
$as_echo "$ac_try_echo") >&5
88 andreas 16242
  (eval "$ac_link") 2>conftest.er1
16243
  ac_status=$?
16244
  grep -v '^ *+' conftest.er1 >conftest.err
16245
  rm -f conftest.er1
16246
  cat conftest.err >&5
216 andreas 16247
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 16248
  (exit $ac_status); } && {
16249
	 test -z "$ac_cxx_werror_flag" ||
16250
	 test ! -s conftest.err
216 andreas 16251
       } && test -s conftest$ac_exeext && {
16252
	 test "$cross_compiling" = yes ||
16253
	 $as_test_x conftest$ac_exeext
16254
       }; then
88 andreas 16255
  ac_cv_lib_dl_dlopen=yes
16256
else
216 andreas 16257
  $as_echo "$as_me: failed program was:" >&5
88 andreas 16258
sed 's/^/| /' conftest.$ac_ext >&5
16259
 
16260
	ac_cv_lib_dl_dlopen=no
16261
fi
16262
 
216 andreas 16263
rm -rf conftest.dSYM
88 andreas 16264
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16265
      conftest$ac_exeext conftest.$ac_ext
16266
LIBS=$ac_check_lib_save_LIBS
16267
fi
216 andreas 16268
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16269
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16270
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
88 andreas 16271
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16272
else
216 andreas 16273
  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16274
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
88 andreas 16275
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
216 andreas 16276
  $as_echo_n "(cached) " >&6
88 andreas 16277
else
16278
  ac_check_lib_save_LIBS=$LIBS
16279
LIBS="-lsvld  $LIBS"
16280
cat >conftest.$ac_ext <<_ACEOF
16281
/* confdefs.h.  */
16282
_ACEOF
16283
cat confdefs.h >>conftest.$ac_ext
16284
cat >>conftest.$ac_ext <<_ACEOF
16285
/* end confdefs.h.  */
16286
 
16287
/* Override any GCC internal prototype to avoid an error.
16288
   Use char because int might match the return type of a GCC
16289
   builtin and then its argument prototype would still apply.  */
16290
#ifdef __cplusplus
16291
extern "C"
16292
#endif
16293
char dlopen ();
16294
int
16295
main ()
16296
{
16297
return dlopen ();
16298
  ;
16299
  return 0;
16300
}
16301
_ACEOF
16302
rm -f conftest.$ac_objext conftest$ac_exeext
16303
if { (ac_try="$ac_link"
16304
case "(($ac_try" in
16305
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16306
  *) ac_try_echo=$ac_try;;
16307
esac
216 andreas 16308
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16309
$as_echo "$ac_try_echo") >&5
88 andreas 16310
  (eval "$ac_link") 2>conftest.er1
16311
  ac_status=$?
16312
  grep -v '^ *+' conftest.er1 >conftest.err
16313
  rm -f conftest.er1
16314
  cat conftest.err >&5
216 andreas 16315
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 16316
  (exit $ac_status); } && {
16317
	 test -z "$ac_cxx_werror_flag" ||
16318
	 test ! -s conftest.err
216 andreas 16319
       } && test -s conftest$ac_exeext && {
16320
	 test "$cross_compiling" = yes ||
16321
	 $as_test_x conftest$ac_exeext
16322
       }; then
88 andreas 16323
  ac_cv_lib_svld_dlopen=yes
16324
else
216 andreas 16325
  $as_echo "$as_me: failed program was:" >&5
88 andreas 16326
sed 's/^/| /' conftest.$ac_ext >&5
16327
 
16328
	ac_cv_lib_svld_dlopen=no
16329
fi
16330
 
216 andreas 16331
rm -rf conftest.dSYM
88 andreas 16332
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16333
      conftest$ac_exeext conftest.$ac_ext
16334
LIBS=$ac_check_lib_save_LIBS
16335
fi
216 andreas 16336
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16337
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16338
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
88 andreas 16339
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16340
else
216 andreas 16341
  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16342
$as_echo_n "checking for dld_link in -ldld... " >&6; }
88 andreas 16343
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
216 andreas 16344
  $as_echo_n "(cached) " >&6
88 andreas 16345
else
16346
  ac_check_lib_save_LIBS=$LIBS
16347
LIBS="-ldld  $LIBS"
16348
cat >conftest.$ac_ext <<_ACEOF
16349
/* confdefs.h.  */
16350
_ACEOF
16351
cat confdefs.h >>conftest.$ac_ext
16352
cat >>conftest.$ac_ext <<_ACEOF
16353
/* end confdefs.h.  */
16354
 
16355
/* Override any GCC internal prototype to avoid an error.
16356
   Use char because int might match the return type of a GCC
16357
   builtin and then its argument prototype would still apply.  */
16358
#ifdef __cplusplus
16359
extern "C"
16360
#endif
16361
char dld_link ();
16362
int
16363
main ()
16364
{
16365
return dld_link ();
16366
  ;
16367
  return 0;
16368
}
16369
_ACEOF
16370
rm -f conftest.$ac_objext conftest$ac_exeext
16371
if { (ac_try="$ac_link"
16372
case "(($ac_try" in
16373
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16374
  *) ac_try_echo=$ac_try;;
16375
esac
216 andreas 16376
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16377
$as_echo "$ac_try_echo") >&5
88 andreas 16378
  (eval "$ac_link") 2>conftest.er1
16379
  ac_status=$?
16380
  grep -v '^ *+' conftest.er1 >conftest.err
16381
  rm -f conftest.er1
16382
  cat conftest.err >&5
216 andreas 16383
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 16384
  (exit $ac_status); } && {
16385
	 test -z "$ac_cxx_werror_flag" ||
16386
	 test ! -s conftest.err
216 andreas 16387
       } && test -s conftest$ac_exeext && {
16388
	 test "$cross_compiling" = yes ||
16389
	 $as_test_x conftest$ac_exeext
16390
       }; then
88 andreas 16391
  ac_cv_lib_dld_dld_link=yes
16392
else
216 andreas 16393
  $as_echo "$as_me: failed program was:" >&5
88 andreas 16394
sed 's/^/| /' conftest.$ac_ext >&5
16395
 
16396
	ac_cv_lib_dld_dld_link=no
16397
fi
16398
 
216 andreas 16399
rm -rf conftest.dSYM
88 andreas 16400
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16401
      conftest$ac_exeext conftest.$ac_ext
16402
LIBS=$ac_check_lib_save_LIBS
16403
fi
216 andreas 16404
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16405
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16406
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
88 andreas 16407
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16408
fi
16409
 
16410
 
16411
fi
16412
 
16413
 
16414
fi
16415
 
16416
 
16417
fi
16418
 
16419
 
16420
fi
16421
 
16422
 
16423
fi
16424
 
16425
    ;;
16426
  esac
16427
 
16428
  if test "x$lt_cv_dlopen" != xno; then
16429
    enable_dlopen=yes
16430
  else
16431
    enable_dlopen=no
16432
  fi
16433
 
16434
  case $lt_cv_dlopen in
16435
  dlopen)
16436
    save_CPPFLAGS="$CPPFLAGS"
16437
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16438
 
16439
    save_LDFLAGS="$LDFLAGS"
16440
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16441
 
16442
    save_LIBS="$LIBS"
16443
    LIBS="$lt_cv_dlopen_libs $LIBS"
16444
 
216 andreas 16445
    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16446
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
88 andreas 16447
if test "${lt_cv_dlopen_self+set}" = set; then
216 andreas 16448
  $as_echo_n "(cached) " >&6
88 andreas 16449
else
16450
  	  if test "$cross_compiling" = yes; then :
16451
  lt_cv_dlopen_self=cross
16452
else
16453
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16454
  lt_status=$lt_dlunknown
16455
  cat > conftest.$ac_ext <<EOF
216 andreas 16456
#line 16456 "configure"
88 andreas 16457
#include "confdefs.h"
16458
 
16459
#if HAVE_DLFCN_H
16460
#include <dlfcn.h>
16461
#endif
16462
 
16463
#include <stdio.h>
16464
 
16465
#ifdef RTLD_GLOBAL
16466
#  define LT_DLGLOBAL		RTLD_GLOBAL
16467
#else
16468
#  ifdef DL_GLOBAL
16469
#    define LT_DLGLOBAL		DL_GLOBAL
16470
#  else
16471
#    define LT_DLGLOBAL		0
16472
#  endif
16473
#endif
16474
 
16475
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16476
   find out it does not work in some platform. */
16477
#ifndef LT_DLLAZY_OR_NOW
16478
#  ifdef RTLD_LAZY
16479
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
16480
#  else
16481
#    ifdef DL_LAZY
16482
#      define LT_DLLAZY_OR_NOW		DL_LAZY
16483
#    else
16484
#      ifdef RTLD_NOW
16485
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
16486
#      else
16487
#        ifdef DL_NOW
16488
#          define LT_DLLAZY_OR_NOW	DL_NOW
16489
#        else
16490
#          define LT_DLLAZY_OR_NOW	0
16491
#        endif
16492
#      endif
16493
#    endif
16494
#  endif
16495
#endif
16496
 
16497
#ifdef __cplusplus
16498
extern "C" void exit (int);
16499
#endif
16500
 
16501
void fnord() { int i=42;}
16502
int main ()
16503
{
16504
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16505
  int status = $lt_dlunknown;
16506
 
16507
  if (self)
16508
    {
16509
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16510
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16511
      /* dlclose (self); */
16512
    }
16513
 
16514
    exit (status);
16515
}
16516
EOF
16517
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16518
  (eval $ac_link) 2>&5
16519
  ac_status=$?
216 andreas 16520
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 16521
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16522
    (./conftest; exit; ) 2>/dev/null
16523
    lt_status=$?
16524
    case x$lt_status in
16525
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16526
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16527
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
16528
    esac
16529
  else :
16530
    # compilation failed
16531
    lt_cv_dlopen_self=no
16532
  fi
16533
fi
16534
rm -fr conftest*
16535
 
16536
 
16537
fi
216 andreas 16538
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
16539
$as_echo "$lt_cv_dlopen_self" >&6; }
88 andreas 16540
 
16541
    if test "x$lt_cv_dlopen_self" = xyes; then
16542
      LDFLAGS="$LDFLAGS $link_static_flag"
216 andreas 16543
      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
16544
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
88 andreas 16545
if test "${lt_cv_dlopen_self_static+set}" = set; then
216 andreas 16546
  $as_echo_n "(cached) " >&6
88 andreas 16547
else
16548
  	  if test "$cross_compiling" = yes; then :
16549
  lt_cv_dlopen_self_static=cross
16550
else
16551
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16552
  lt_status=$lt_dlunknown
16553
  cat > conftest.$ac_ext <<EOF
216 andreas 16554
#line 16554 "configure"
88 andreas 16555
#include "confdefs.h"
16556
 
16557
#if HAVE_DLFCN_H
16558
#include <dlfcn.h>
16559
#endif
16560
 
16561
#include <stdio.h>
16562
 
16563
#ifdef RTLD_GLOBAL
16564
#  define LT_DLGLOBAL		RTLD_GLOBAL
16565
#else
16566
#  ifdef DL_GLOBAL
16567
#    define LT_DLGLOBAL		DL_GLOBAL
16568
#  else
16569
#    define LT_DLGLOBAL		0
16570
#  endif
16571
#endif
16572
 
16573
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16574
   find out it does not work in some platform. */
16575
#ifndef LT_DLLAZY_OR_NOW
16576
#  ifdef RTLD_LAZY
16577
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
16578
#  else
16579
#    ifdef DL_LAZY
16580
#      define LT_DLLAZY_OR_NOW		DL_LAZY
16581
#    else
16582
#      ifdef RTLD_NOW
16583
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
16584
#      else
16585
#        ifdef DL_NOW
16586
#          define LT_DLLAZY_OR_NOW	DL_NOW
16587
#        else
16588
#          define LT_DLLAZY_OR_NOW	0
16589
#        endif
16590
#      endif
16591
#    endif
16592
#  endif
16593
#endif
16594
 
16595
#ifdef __cplusplus
16596
extern "C" void exit (int);
16597
#endif
16598
 
16599
void fnord() { int i=42;}
16600
int main ()
16601
{
16602
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16603
  int status = $lt_dlunknown;
16604
 
16605
  if (self)
16606
    {
16607
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16608
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16609
      /* dlclose (self); */
16610
    }
16611
 
16612
    exit (status);
16613
}
16614
EOF
16615
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16616
  (eval $ac_link) 2>&5
16617
  ac_status=$?
216 andreas 16618
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 16619
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16620
    (./conftest; exit; ) 2>/dev/null
16621
    lt_status=$?
16622
    case x$lt_status in
16623
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16624
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16625
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
16626
    esac
16627
  else :
16628
    # compilation failed
16629
    lt_cv_dlopen_self_static=no
16630
  fi
16631
fi
16632
rm -fr conftest*
16633
 
16634
 
16635
fi
216 andreas 16636
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
16637
$as_echo "$lt_cv_dlopen_self_static" >&6; }
88 andreas 16638
    fi
16639
 
16640
    CPPFLAGS="$save_CPPFLAGS"
16641
    LDFLAGS="$save_LDFLAGS"
16642
    LIBS="$save_LIBS"
16643
    ;;
16644
  esac
16645
 
16646
  case $lt_cv_dlopen_self in
16647
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16648
  *) enable_dlopen_self=unknown ;;
16649
  esac
16650
 
16651
  case $lt_cv_dlopen_self_static in
16652
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16653
  *) enable_dlopen_self_static=unknown ;;
16654
  esac
16655
fi
16656
 
16657
 
16658
# The else clause should only fire when bootstrapping the
16659
# libtool distribution, otherwise you forgot to ship ltmain.sh
16660
# with your package, and you will get complaints that there are
16661
# no rules to generate ltmain.sh.
16662
if test -f "$ltmain"; then
16663
  # See if we are running on zsh, and set the options which allow our commands through
16664
  # without removal of \ escapes.
16665
  if test -n "${ZSH_VERSION+set}" ; then
16666
    setopt NO_GLOB_SUBST
16667
  fi
16668
  # Now quote all the things that may contain metacharacters while being
16669
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16670
  # variables and quote the copies for generation of the libtool script.
16671
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
16672
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16673
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16674
    deplibs_check_method reload_flag reload_cmds need_locks \
16675
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16676
    lt_cv_sys_global_symbol_to_c_name_address \
16677
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16678
    old_postinstall_cmds old_postuninstall_cmds \
16679
    compiler_CXX \
16680
    CC_CXX \
16681
    LD_CXX \
16682
    lt_prog_compiler_wl_CXX \
16683
    lt_prog_compiler_pic_CXX \
16684
    lt_prog_compiler_static_CXX \
16685
    lt_prog_compiler_no_builtin_flag_CXX \
16686
    export_dynamic_flag_spec_CXX \
16687
    thread_safe_flag_spec_CXX \
16688
    whole_archive_flag_spec_CXX \
16689
    enable_shared_with_static_runtimes_CXX \
16690
    old_archive_cmds_CXX \
16691
    old_archive_from_new_cmds_CXX \
16692
    predep_objects_CXX \
16693
    postdep_objects_CXX \
16694
    predeps_CXX \
16695
    postdeps_CXX \
16696
    compiler_lib_search_path_CXX \
16697
    archive_cmds_CXX \
16698
    archive_expsym_cmds_CXX \
16699
    postinstall_cmds_CXX \
16700
    postuninstall_cmds_CXX \
16701
    old_archive_from_expsyms_cmds_CXX \
16702
    allow_undefined_flag_CXX \
16703
    no_undefined_flag_CXX \
16704
    export_symbols_cmds_CXX \
16705
    hardcode_libdir_flag_spec_CXX \
16706
    hardcode_libdir_flag_spec_ld_CXX \
16707
    hardcode_libdir_separator_CXX \
16708
    hardcode_automatic_CXX \
16709
    module_cmds_CXX \
16710
    module_expsym_cmds_CXX \
16711
    lt_cv_prog_compiler_c_o_CXX \
16712
    exclude_expsyms_CXX \
16713
    include_expsyms_CXX; do
16714
 
16715
    case $var in
16716
    old_archive_cmds_CXX | \
16717
    old_archive_from_new_cmds_CXX | \
16718
    archive_cmds_CXX | \
16719
    archive_expsym_cmds_CXX | \
16720
    module_cmds_CXX | \
16721
    module_expsym_cmds_CXX | \
16722
    old_archive_from_expsyms_cmds_CXX | \
16723
    export_symbols_cmds_CXX | \
16724
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16725
    postinstall_cmds | postuninstall_cmds | \
16726
    old_postinstall_cmds | old_postuninstall_cmds | \
16727
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16728
      # Double-quote double-evaled strings.
16729
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16730
      ;;
16731
    *)
16732
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16733
      ;;
16734
    esac
16735
  done
16736
 
16737
  case $lt_echo in
16738
  *'\$0 --fallback-echo"')
16739
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16740
    ;;
16741
  esac
16742
 
16743
cfgfile="$ofile"
16744
 
16745
  cat <<__EOF__ >> "$cfgfile"
16746
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16747
 
16748
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16749
 
16750
# Shell to use when invoking shell scripts.
16751
SHELL=$lt_SHELL
16752
 
16753
# Whether or not to build shared libraries.
16754
build_libtool_libs=$enable_shared
16755
 
16756
# Whether or not to build static libraries.
16757
build_old_libs=$enable_static
16758
 
16759
# Whether or not to add -lc for building shared libraries.
16760
build_libtool_need_lc=$archive_cmds_need_lc_CXX
16761
 
16762
# Whether or not to disallow shared libs when runtime libs are static
16763
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16764
 
16765
# Whether or not to optimize for fast installation.
16766
fast_install=$enable_fast_install
16767
 
16768
# The host system.
16769
host_alias=$host_alias
16770
host=$host
16771
 
16772
# An echo program that does not interpret backslashes.
16773
echo=$lt_echo
16774
 
16775
# The archiver.
16776
AR=$lt_AR
16777
AR_FLAGS=$lt_AR_FLAGS
16778
 
16779
# A C compiler.
16780
LTCC=$lt_LTCC
16781
 
16782
# A language-specific compiler.
16783
CC=$lt_compiler_CXX
16784
 
16785
# Is the compiler the GNU C compiler?
16786
with_gcc=$GCC_CXX
16787
 
16788
# An ERE matcher.
16789
EGREP=$lt_EGREP
16790
 
16791
# The linker used to build libraries.
16792
LD=$lt_LD_CXX
16793
 
16794
# Whether we need hard or soft links.
16795
LN_S=$lt_LN_S
16796
 
16797
# A BSD-compatible nm program.
16798
NM=$lt_NM
16799
 
16800
# A symbol stripping program
16801
STRIP=$STRIP
16802
 
16803
# Used to examine libraries when file_magic_cmd begins "file"
16804
MAGIC_CMD=$MAGIC_CMD
16805
 
16806
# Used on cygwin: DLL creation program.
16807
DLLTOOL="$DLLTOOL"
16808
 
16809
# Used on cygwin: object dumper.
16810
OBJDUMP="$OBJDUMP"
16811
 
16812
# Used on cygwin: assembler.
16813
AS="$AS"
16814
 
16815
# The name of the directory that contains temporary libtool files.
16816
objdir=$objdir
16817
 
16818
# How to create reloadable object files.
16819
reload_flag=$lt_reload_flag
16820
reload_cmds=$lt_reload_cmds
16821
 
16822
# How to pass a linker flag through the compiler.
16823
wl=$lt_lt_prog_compiler_wl_CXX
16824
 
16825
# Object file suffix (normally "o").
16826
objext="$ac_objext"
16827
 
16828
# Old archive suffix (normally "a").
16829
libext="$libext"
16830
 
16831
# Shared library suffix (normally ".so").
16832
shrext='$shrext'
16833
 
16834
# Executable file suffix (normally "").
16835
exeext="$exeext"
16836
 
16837
# Additional compiler flags for building library objects.
16838
pic_flag=$lt_lt_prog_compiler_pic_CXX
16839
pic_mode=$pic_mode
16840
 
16841
# What is the maximum length of a command?
16842
max_cmd_len=$lt_cv_sys_max_cmd_len
16843
 
16844
# Does compiler simultaneously support -c and -o options?
16845
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16846
 
16847
# Must we lock files when doing compilation ?
16848
need_locks=$lt_need_locks
16849
 
16850
# Do we need the lib prefix for modules?
16851
need_lib_prefix=$need_lib_prefix
16852
 
16853
# Do we need a version for libraries?
16854
need_version=$need_version
16855
 
16856
# Whether dlopen is supported.
16857
dlopen_support=$enable_dlopen
16858
 
16859
# Whether dlopen of programs is supported.
16860
dlopen_self=$enable_dlopen_self
16861
 
16862
# Whether dlopen of statically linked programs is supported.
16863
dlopen_self_static=$enable_dlopen_self_static
16864
 
16865
# Compiler flag to prevent dynamic linking.
16866
link_static_flag=$lt_lt_prog_compiler_static_CXX
16867
 
16868
# Compiler flag to turn off builtin functions.
16869
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16870
 
16871
# Compiler flag to allow reflexive dlopens.
16872
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16873
 
16874
# Compiler flag to generate shared objects directly from archives.
16875
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
16876
 
16877
# Compiler flag to generate thread-safe objects.
16878
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
16879
 
16880
# Library versioning type.
16881
version_type=$version_type
16882
 
16883
# Format of library name prefix.
16884
libname_spec=$lt_libname_spec
16885
 
16886
# List of archive names.  First name is the real one, the rest are links.
16887
# The last name is the one that the linker finds with -lNAME.
16888
library_names_spec=$lt_library_names_spec
16889
 
16890
# The coded name of the library, if different from the real name.
16891
soname_spec=$lt_soname_spec
16892
 
16893
# Commands used to build and install an old-style archive.
16894
RANLIB=$lt_RANLIB
16895
old_archive_cmds=$lt_old_archive_cmds_CXX
16896
old_postinstall_cmds=$lt_old_postinstall_cmds
16897
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16898
 
16899
# Create an old-style archive from a shared archive.
16900
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
16901
 
16902
# Create a temporary old-style archive to link instead of a shared archive.
16903
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
16904
 
16905
# Commands used to build and install a shared archive.
16906
archive_cmds=$lt_archive_cmds_CXX
16907
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
16908
postinstall_cmds=$lt_postinstall_cmds
16909
postuninstall_cmds=$lt_postuninstall_cmds
16910
 
16911
# Commands used to build a loadable module (assumed same as above if empty)
16912
module_cmds=$lt_module_cmds_CXX
16913
module_expsym_cmds=$lt_module_expsym_cmds_CXX
16914
 
16915
# Commands to strip libraries.
16916
old_striplib=$lt_old_striplib
16917
striplib=$lt_striplib
16918
 
16919
# Dependencies to place before the objects being linked to create a
16920
# shared library.
16921
predep_objects=$lt_predep_objects_CXX
16922
 
16923
# Dependencies to place after the objects being linked to create a
16924
# shared library.
16925
postdep_objects=$lt_postdep_objects_CXX
16926
 
16927
# Dependencies to place before the objects being linked to create a
16928
# shared library.
16929
predeps=$lt_predeps_CXX
16930
 
16931
# Dependencies to place after the objects being linked to create a
16932
# shared library.
16933
postdeps=$lt_postdeps_CXX
16934
 
16935
# The library search path used internally by the compiler when linking
16936
# a shared library.
16937
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
16938
 
16939
# Method to check whether dependent libraries are shared objects.
16940
deplibs_check_method=$lt_deplibs_check_method
16941
 
16942
# Command to use when deplibs_check_method == file_magic.
16943
file_magic_cmd=$lt_file_magic_cmd
16944
 
16945
# Flag that allows shared libraries with undefined symbols to be built.
16946
allow_undefined_flag=$lt_allow_undefined_flag_CXX
16947
 
16948
# Flag that forces no undefined symbols.
16949
no_undefined_flag=$lt_no_undefined_flag_CXX
16950
 
16951
# Commands used to finish a libtool library installation in a directory.
16952
finish_cmds=$lt_finish_cmds
16953
 
16954
# Same as above, but a single script fragment to be evaled but not shown.
16955
finish_eval=$lt_finish_eval
16956
 
16957
# Take the output of nm and produce a listing of raw symbols and C names.
16958
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16959
 
16960
# Transform the output of nm in a proper C declaration
16961
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16962
 
16963
# Transform the output of nm in a C name address pair
16964
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16965
 
16966
# This is the shared library runtime path variable.
16967
runpath_var=$runpath_var
16968
 
16969
# This is the shared library path variable.
16970
shlibpath_var=$shlibpath_var
16971
 
16972
# Is shlibpath searched before the hard-coded library search path?
16973
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16974
 
16975
# How to hardcode a shared library path into an executable.
16976
hardcode_action=$hardcode_action_CXX
16977
 
16978
# Whether we should hardcode library paths into libraries.
16979
hardcode_into_libs=$hardcode_into_libs
16980
 
16981
# Flag to hardcode \$libdir into a binary during linking.
16982
# This must work even if \$libdir does not exist.
16983
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
16984
 
16985
# If ld is used when linking, flag to hardcode \$libdir into
16986
# a binary during linking. This must work even if \$libdir does
16987
# not exist.
16988
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
16989
 
16990
# Whether we need a single -rpath flag with a separated argument.
16991
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
16992
 
16993
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16994
# resulting binary.
16995
hardcode_direct=$hardcode_direct_CXX
16996
 
16997
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16998
# resulting binary.
16999
hardcode_minus_L=$hardcode_minus_L_CXX
17000
 
17001
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17002
# the resulting binary.
17003
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17004
 
17005
# Set to yes if building a shared library automatically hardcodes DIR into the library
17006
# and all subsequent libraries and executables linked against it.
17007
hardcode_automatic=$hardcode_automatic_CXX
17008
 
17009
# Variables whose values should be saved in libtool wrapper scripts and
17010
# restored at relink time.
17011
variables_saved_for_relink="$variables_saved_for_relink"
17012
 
17013
# Whether libtool must link a program against all its dependency libraries.
17014
link_all_deplibs=$link_all_deplibs_CXX
17015
 
17016
# Compile-time system search path for libraries
17017
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17018
 
17019
# Run-time system search path for libraries
17020
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17021
 
17022
# Fix the shell variable \$srcfile for the compiler.
17023
fix_srcfile_path="$fix_srcfile_path_CXX"
17024
 
17025
# Set to yes if exported symbols are required.
17026
always_export_symbols=$always_export_symbols_CXX
17027
 
17028
# The commands to list exported symbols.
17029
export_symbols_cmds=$lt_export_symbols_cmds_CXX
17030
 
17031
# The commands to extract the exported symbol list from a shared archive.
17032
extract_expsyms_cmds=$lt_extract_expsyms_cmds
17033
 
17034
# Symbols that should not be listed in the preloaded symbols.
17035
exclude_expsyms=$lt_exclude_expsyms_CXX
17036
 
17037
# Symbols that must always be exported.
17038
include_expsyms=$lt_include_expsyms_CXX
17039
 
17040
# ### END LIBTOOL TAG CONFIG: $tagname
17041
 
17042
__EOF__
17043
 
17044
 
17045
else
17046
  # If there is no Makefile yet, we rely on a make rule to execute
17047
  # `config.status --recheck' to rerun these tests and create the
17048
  # libtool script then.
17049
  test -f Makefile && make "$ltmain"
17050
fi
17051
 
17052
 
17053
ac_ext=c
17054
ac_cpp='$CPP $CPPFLAGS'
17055
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17056
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17057
ac_compiler_gnu=$ac_cv_c_compiler_gnu
17058
 
17059
CC=$lt_save_CC
17060
LDCXX=$LD
17061
LD=$lt_save_LD
17062
GCC=$lt_save_GCC
17063
with_gnu_ldcxx=$with_gnu_ld
17064
with_gnu_ld=$lt_save_with_gnu_ld
17065
lt_cv_path_LDCXX=$lt_cv_path_LD
17066
lt_cv_path_LD=$lt_save_path_LD
17067
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17068
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17069
 
17070
	else
17071
	  tagname=""
17072
	fi
17073
	;;
17074
 
17075
      F77)
17076
	if test -n "$F77" && test "X$F77" != "Xno"; then
17077
 
17078
ac_ext=f
17079
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
17080
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17081
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
17082
 
17083
 
17084
archive_cmds_need_lc_F77=no
17085
allow_undefined_flag_F77=
17086
always_export_symbols_F77=no
17087
archive_expsym_cmds_F77=
17088
export_dynamic_flag_spec_F77=
17089
hardcode_direct_F77=no
17090
hardcode_libdir_flag_spec_F77=
17091
hardcode_libdir_flag_spec_ld_F77=
17092
hardcode_libdir_separator_F77=
17093
hardcode_minus_L_F77=no
17094
hardcode_automatic_F77=no
17095
module_cmds_F77=
17096
module_expsym_cmds_F77=
17097
link_all_deplibs_F77=unknown
17098
old_archive_cmds_F77=$old_archive_cmds
17099
no_undefined_flag_F77=
17100
whole_archive_flag_spec_F77=
17101
enable_shared_with_static_runtimes_F77=no
17102
 
17103
# Source file extension for f77 test sources.
17104
ac_ext=f
17105
 
17106
# Object file extension for compiled f77 test sources.
17107
objext=o
17108
objext_F77=$objext
17109
 
17110
# Code to be used in simple compile tests
17111
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
17112
 
17113
# Code to be used in simple link tests
17114
lt_simple_link_test_code="      program t\n      end\n"
17115
 
17116
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17117
 
17118
# If no C compiler was specified, use CC.
17119
LTCC=${LTCC-"$CC"}
17120
 
17121
# Allow CC to be a program name with arguments.
17122
compiler=$CC
17123
 
17124
 
17125
# Allow CC to be a program name with arguments.
17126
lt_save_CC="$CC"
17127
CC=${F77-"f77"}
17128
compiler=$CC
17129
compiler_F77=$CC
17130
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
17131
 
216 andreas 17132
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17133
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17134
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
17135
$as_echo "$can_build_shared" >&6; }
88 andreas 17136
 
216 andreas 17137
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17138
$as_echo_n "checking whether to build shared libraries... " >&6; }
88 andreas 17139
test "$can_build_shared" = "no" && enable_shared=no
17140
 
17141
# On AIX, shared libraries and static libraries use the same namespace, and
17142
# are all built from PIC.
17143
case "$host_os" in
17144
aix3*)
17145
  test "$enable_shared" = yes && enable_static=no
17146
  if test -n "$RANLIB"; then
17147
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
17148
    postinstall_cmds='$RANLIB $lib'
17149
  fi
17150
  ;;
17151
aix4*)
17152
  test "$enable_shared" = yes && enable_static=no
17153
  ;;
17154
esac
216 andreas 17155
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
17156
$as_echo "$enable_shared" >&6; }
88 andreas 17157
 
216 andreas 17158
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17159
$as_echo_n "checking whether to build static libraries... " >&6; }
88 andreas 17160
# Make sure either enable_shared or enable_static is yes.
17161
test "$enable_shared" = yes || enable_static=yes
216 andreas 17162
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
17163
$as_echo "$enable_static" >&6; }
88 andreas 17164
 
17165
test "$ld_shlibs_F77" = no && can_build_shared=no
17166
 
17167
GCC_F77="$G77"
17168
LD_F77="$LD"
17169
 
17170
lt_prog_compiler_wl_F77=
17171
lt_prog_compiler_pic_F77=
17172
lt_prog_compiler_static_F77=
17173
 
216 andreas 17174
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17175
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
88 andreas 17176
 
17177
  if test "$GCC" = yes; then
17178
    lt_prog_compiler_wl_F77='-Wl,'
17179
    lt_prog_compiler_static_F77='-static'
17180
 
17181
    case $host_os in
17182
      aix*)
17183
      # All AIX code is PIC.
17184
      if test "$host_cpu" = ia64; then
17185
	# AIX 5 now supports IA64 processor
17186
	lt_prog_compiler_static_F77='-Bstatic'
17187
      fi
17188
      ;;
17189
 
17190
    amigaos*)
17191
      # FIXME: we need at least 68020 code to build shared libraries, but
17192
      # adding the `-m68020' flag to GCC prevents building anything better,
17193
      # like `-m68040'.
17194
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
17195
      ;;
17196
 
17197
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17198
      # PIC is the default for these OSes.
17199
      ;;
17200
 
17201
    mingw* | pw32* | os2*)
17202
      # This hack is so that the source file can tell whether it is being
17203
      # built for inclusion in a dll (and should export symbols for example).
17204
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
17205
      ;;
17206
 
17207
    darwin* | rhapsody*)
17208
      # PIC is the default on this platform
17209
      # Common symbols not allowed in MH_DYLIB files
17210
      lt_prog_compiler_pic_F77='-fno-common'
17211
      ;;
17212
 
17213
    msdosdjgpp*)
17214
      # Just because we use GCC doesn't mean we suddenly get shared libraries
17215
      # on systems that don't support them.
17216
      lt_prog_compiler_can_build_shared_F77=no
17217
      enable_shared=no
17218
      ;;
17219
 
17220
    sysv4*MP*)
17221
      if test -d /usr/nec; then
17222
	lt_prog_compiler_pic_F77=-Kconform_pic
17223
      fi
17224
      ;;
17225
 
17226
    hpux*)
17227
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17228
      # not for PA HP-UX.
17229
      case "$host_cpu" in
17230
      hppa*64*|ia64*)
17231
	# +Z the default
17232
	;;
17233
      *)
17234
	lt_prog_compiler_pic_F77='-fPIC'
17235
	;;
17236
      esac
17237
      ;;
17238
 
17239
    *)
17240
      lt_prog_compiler_pic_F77='-fPIC'
17241
      ;;
17242
    esac
17243
  else
17244
    # PORTME Check for flag to pass linker flags through the system compiler.
17245
    case $host_os in
17246
    aix*)
17247
      lt_prog_compiler_wl_F77='-Wl,'
17248
      if test "$host_cpu" = ia64; then
17249
	# AIX 5 now supports IA64 processor
17250
	lt_prog_compiler_static_F77='-Bstatic'
17251
      else
17252
	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
17253
      fi
17254
      ;;
17255
 
17256
    mingw* | pw32* | os2*)
17257
      # This hack is so that the source file can tell whether it is being
17258
      # built for inclusion in a dll (and should export symbols for example).
17259
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
17260
      ;;
17261
 
17262
    hpux9* | hpux10* | hpux11*)
17263
      lt_prog_compiler_wl_F77='-Wl,'
17264
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17265
      # not for PA HP-UX.
17266
      case "$host_cpu" in
17267
      hppa*64*|ia64*)
17268
	# +Z the default
17269
	;;
17270
      *)
17271
	lt_prog_compiler_pic_F77='+Z'
17272
	;;
17273
      esac
17274
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
17275
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
17276
      ;;
17277
 
17278
    irix5* | irix6* | nonstopux*)
17279
      lt_prog_compiler_wl_F77='-Wl,'
17280
      # PIC (with -KPIC) is the default.
17281
      lt_prog_compiler_static_F77='-non_shared'
17282
      ;;
17283
 
17284
    newsos6)
17285
      lt_prog_compiler_pic_F77='-KPIC'
17286
      lt_prog_compiler_static_F77='-Bstatic'
17287
      ;;
17288
 
17289
    linux*)
17290
      case $CC in
17291
      icc* | ecc*)
17292
	lt_prog_compiler_wl_F77='-Wl,'
17293
	lt_prog_compiler_pic_F77='-KPIC'
17294
	lt_prog_compiler_static_F77='-static'
17295
        ;;
17296
      ccc*)
17297
        lt_prog_compiler_wl_F77='-Wl,'
17298
        # All Alpha code is PIC.
17299
        lt_prog_compiler_static_F77='-non_shared'
17300
        ;;
17301
      esac
17302
      ;;
17303
 
17304
    osf3* | osf4* | osf5*)
17305
      lt_prog_compiler_wl_F77='-Wl,'
17306
      # All OSF/1 code is PIC.
17307
      lt_prog_compiler_static_F77='-non_shared'
17308
      ;;
17309
 
17310
    sco3.2v5*)
17311
      lt_prog_compiler_pic_F77='-Kpic'
17312
      lt_prog_compiler_static_F77='-dn'
17313
      ;;
17314
 
17315
    solaris*)
17316
      lt_prog_compiler_wl_F77='-Wl,'
17317
      lt_prog_compiler_pic_F77='-KPIC'
17318
      lt_prog_compiler_static_F77='-Bstatic'
17319
      ;;
17320
 
17321
    sunos4*)
17322
      lt_prog_compiler_wl_F77='-Qoption ld '
17323
      lt_prog_compiler_pic_F77='-PIC'
17324
      lt_prog_compiler_static_F77='-Bstatic'
17325
      ;;
17326
 
17327
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17328
      lt_prog_compiler_wl_F77='-Wl,'
17329
      lt_prog_compiler_pic_F77='-KPIC'
17330
      lt_prog_compiler_static_F77='-Bstatic'
17331
      ;;
17332
 
17333
    sysv4*MP*)
17334
      if test -d /usr/nec ;then
17335
	lt_prog_compiler_pic_F77='-Kconform_pic'
17336
	lt_prog_compiler_static_F77='-Bstatic'
17337
      fi
17338
      ;;
17339
 
17340
    uts4*)
17341
      lt_prog_compiler_pic_F77='-pic'
17342
      lt_prog_compiler_static_F77='-Bstatic'
17343
      ;;
17344
 
17345
    *)
17346
      lt_prog_compiler_can_build_shared_F77=no
17347
      ;;
17348
    esac
17349
  fi
17350
 
216 andreas 17351
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
17352
$as_echo "$lt_prog_compiler_pic_F77" >&6; }
88 andreas 17353
 
17354
#
17355
# Check to make sure the PIC flag actually works.
17356
#
17357
if test -n "$lt_prog_compiler_pic_F77"; then
17358
 
216 andreas 17359
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
17360
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
88 andreas 17361
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
216 andreas 17362
  $as_echo_n "(cached) " >&6
88 andreas 17363
else
17364
  lt_prog_compiler_pic_works_F77=no
17365
  ac_outfile=conftest.$ac_objext
17366
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17367
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
17368
   # Insert the option either (1) after the last *FLAGS variable, or
17369
   # (2) before a word containing "conftest.", or (3) at the end.
17370
   # Note that $ac_compile itself does not contain backslashes and begins
17371
   # with a dollar sign (not a hyphen), so the echo should work correctly.
17372
   # The option is referenced via a variable to avoid confusing sed.
17373
   lt_compile=`echo "$ac_compile" | $SED \
17374
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17375
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17376
   -e 's:$: $lt_compiler_flag:'`
216 andreas 17377
   (eval echo "\"\$as_me:17377: $lt_compile\"" >&5)
88 andreas 17378
   (eval "$lt_compile" 2>conftest.err)
17379
   ac_status=$?
17380
   cat conftest.err >&5
216 andreas 17381
   echo "$as_me:17381: \$? = $ac_status" >&5
88 andreas 17382
   if (exit $ac_status) && test -s "$ac_outfile"; then
17383
     # The compiler can only warn and ignore the option if not recognized
17384
     # So say no if there are warnings
17385
     if test ! -s conftest.err; then
17386
       lt_prog_compiler_pic_works_F77=yes
17387
     fi
17388
   fi
17389
   $rm conftest*
17390
 
17391
fi
216 andreas 17392
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
17393
$as_echo "$lt_prog_compiler_pic_works_F77" >&6; }
88 andreas 17394
 
17395
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
17396
    case $lt_prog_compiler_pic_F77 in
17397
     "" | " "*) ;;
17398
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
17399
     esac
17400
else
17401
    lt_prog_compiler_pic_F77=
17402
     lt_prog_compiler_can_build_shared_F77=no
17403
fi
17404
 
17405
fi
17406
case "$host_os" in
17407
  # For platforms which do not support PIC, -DPIC is meaningless:
17408
  *djgpp*)
17409
    lt_prog_compiler_pic_F77=
17410
    ;;
17411
  *)
17412
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
17413
    ;;
17414
esac
17415
 
216 andreas 17416
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17417
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
88 andreas 17418
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
216 andreas 17419
  $as_echo_n "(cached) " >&6
88 andreas 17420
else
17421
  lt_cv_prog_compiler_c_o_F77=no
17422
   $rm -r conftest 2>/dev/null
17423
   mkdir conftest
17424
   cd conftest
17425
   mkdir out
17426
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17427
 
17428
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
17429
   # that will create temporary files in the current directory regardless of
17430
   # the output directory.  Thus, making CWD read-only will cause this test
17431
   # to fail, enabling locking or at least warning the user not to do parallel
17432
   # builds.
17433
   chmod -w .
17434
 
17435
   lt_compiler_flag="-o out/conftest2.$ac_objext"
17436
   # Insert the option either (1) after the last *FLAGS variable, or
17437
   # (2) before a word containing "conftest.", or (3) at the end.
17438
   # Note that $ac_compile itself does not contain backslashes and begins
17439
   # with a dollar sign (not a hyphen), so the echo should work correctly.
17440
   lt_compile=`echo "$ac_compile" | $SED \
17441
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17442
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17443
   -e 's:$: $lt_compiler_flag:'`
216 andreas 17444
   (eval echo "\"\$as_me:17444: $lt_compile\"" >&5)
88 andreas 17445
   (eval "$lt_compile" 2>out/conftest.err)
17446
   ac_status=$?
17447
   cat out/conftest.err >&5
216 andreas 17448
   echo "$as_me:17448: \$? = $ac_status" >&5
88 andreas 17449
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17450
   then
17451
     # The compiler can only warn and ignore the option if not recognized
17452
     # So say no if there are warnings
17453
     if test ! -s out/conftest.err; then
17454
       lt_cv_prog_compiler_c_o_F77=yes
17455
     fi
17456
   fi
17457
   chmod u+w .
17458
   $rm conftest* out/*
17459
   rmdir out
17460
   cd ..
17461
   rmdir conftest
17462
   $rm conftest*
17463
 
17464
fi
216 andreas 17465
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
17466
$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
88 andreas 17467
 
17468
 
17469
hard_links="nottested"
17470
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
17471
  # do not overwrite the value of need_locks provided by the user
216 andreas 17472
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17473
$as_echo_n "checking if we can lock with hard links... " >&6; }
88 andreas 17474
  hard_links=yes
17475
  $rm conftest*
17476
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17477
  touch conftest.a
17478
  ln conftest.a conftest.b 2>&5 || hard_links=no
17479
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
216 andreas 17480
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17481
$as_echo "$hard_links" >&6; }
88 andreas 17482
  if test "$hard_links" = no; then
216 andreas 17483
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17484
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
88 andreas 17485
    need_locks=warn
17486
  fi
17487
else
17488
  need_locks=no
17489
fi
17490
 
216 andreas 17491
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17492
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
88 andreas 17493
 
17494
  runpath_var=
17495
  allow_undefined_flag_F77=
17496
  enable_shared_with_static_runtimes_F77=no
17497
  archive_cmds_F77=
17498
  archive_expsym_cmds_F77=
17499
  old_archive_From_new_cmds_F77=
17500
  old_archive_from_expsyms_cmds_F77=
17501
  export_dynamic_flag_spec_F77=
17502
  whole_archive_flag_spec_F77=
17503
  thread_safe_flag_spec_F77=
17504
  hardcode_libdir_flag_spec_F77=
17505
  hardcode_libdir_flag_spec_ld_F77=
17506
  hardcode_libdir_separator_F77=
17507
  hardcode_direct_F77=no
17508
  hardcode_minus_L_F77=no
17509
  hardcode_shlibpath_var_F77=unsupported
17510
  link_all_deplibs_F77=unknown
17511
  hardcode_automatic_F77=no
17512
  module_cmds_F77=
17513
  module_expsym_cmds_F77=
17514
  always_export_symbols_F77=no
17515
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17516
  # include_expsyms should be a list of space-separated symbols to be *always*
17517
  # included in the symbol list
17518
  include_expsyms_F77=
17519
  # exclude_expsyms can be an extended regexp of symbols to exclude
17520
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17521
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17522
  # as well as any symbol that contains `d'.
17523
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
17524
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17525
  # platforms (ab)use it in PIC code, but their linkers get confused if
17526
  # the symbol is explicitly referenced.  Since portable code cannot
17527
  # rely on this symbol name, it's probably fine to never include it in
17528
  # preloaded symbol tables.
17529
  extract_expsyms_cmds=
17530
 
17531
  case $host_os in
17532
  cygwin* | mingw* | pw32*)
17533
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17534
    # When not using gcc, we currently assume that we are using
17535
    # Microsoft Visual C++.
17536
    if test "$GCC" != yes; then
17537
      with_gnu_ld=no
17538
    fi
17539
    ;;
17540
  openbsd*)
17541
    with_gnu_ld=no
17542
    ;;
17543
  esac
17544
 
17545
  ld_shlibs_F77=yes
17546
  if test "$with_gnu_ld" = yes; then
17547
    # If archive_cmds runs LD, not CC, wlarc should be empty
17548
    wlarc='${wl}'
17549
 
17550
    # See if GNU ld supports shared libraries.
17551
    case $host_os in
17552
    aix3* | aix4* | aix5*)
17553
      # On AIX/PPC, the GNU linker is very broken
17554
      if test "$host_cpu" != ia64; then
17555
	ld_shlibs_F77=no
17556
	cat <<EOF 1>&2
17557
 
17558
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17559
*** to be unable to reliably create shared libraries on AIX.
17560
*** Therefore, libtool is disabling shared libraries support.  If you
17561
*** really care for shared libraries, you may want to modify your PATH
17562
*** so that a non-GNU linker is found, and then restart.
17563
 
17564
EOF
17565
      fi
17566
      ;;
17567
 
17568
    amigaos*)
17569
      archive_cmds_F77='$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)'
17570
      hardcode_libdir_flag_spec_F77='-L$libdir'
17571
      hardcode_minus_L_F77=yes
17572
 
17573
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17574
      # that the semantics of dynamic libraries on AmigaOS, at least up
17575
      # to version 4, is to share data among multiple programs linked
17576
      # with the same dynamic library.  Since this doesn't match the
17577
      # behavior of shared libraries on other platforms, we can't use
17578
      # them.
17579
      ld_shlibs_F77=no
17580
      ;;
17581
 
17582
    beos*)
17583
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17584
	allow_undefined_flag_F77=unsupported
17585
	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17586
	# support --undefined.  This deserves some investigation.  FIXME
17587
	archive_cmds_F77='$CC -nostart $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
17588
      else
17589
	ld_shlibs_F77=no
17590
      fi
17591
      ;;
17592
 
17593
    cygwin* | mingw* | pw32*)
17594
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
17595
      # as there is no search path for DLLs.
17596
      hardcode_libdir_flag_spec_F77='-L$libdir'
17597
      allow_undefined_flag_F77=no
17598
      always_export_symbols_F77=no
17599
      enable_shared_with_static_runtimes_F77=yes
17600
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17601
 
17602
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17603
        archive_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17604
	# If the export-symbols file already is a .def file (1st line
17605
	# is EXPORTS), use it as is; otherwise, prepend...
17606
	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17607
	  cp $export_symbols $output_objdir/$soname.def;
17608
	else
17609
	  echo EXPORTS > $output_objdir/$soname.def;
17610
	  cat $export_symbols >> $output_objdir/$soname.def;
17611
	fi~
17612
	$CC -shared $output_objdir/$soname.def $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
17613
      else
17614
	ld_shlibs=no
17615
      fi
17616
      ;;
17617
 
17618
    netbsd*)
17619
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17620
	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17621
	wlarc=
17622
      else
17623
	archive_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
17624
	archive_expsym_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17625
      fi
17626
      ;;
17627
 
17628
    solaris* | sysv5*)
17629
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17630
	ld_shlibs_F77=no
17631
	cat <<EOF 1>&2
17632
 
17633
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17634
*** create shared libraries on Solaris systems.  Therefore, libtool
17635
*** is disabling shared libraries support.  We urge you to upgrade GNU
17636
*** binutils to release 2.9.1 or newer.  Another option is to modify
17637
*** your PATH or compiler configuration so that the native linker is
17638
*** used, and then restart.
17639
 
17640
EOF
17641
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17642
	archive_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
17643
	archive_expsym_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17644
      else
17645
	ld_shlibs_F77=no
17646
      fi
17647
      ;;
17648
 
17649
    sunos4*)
17650
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17651
      wlarc=
17652
      hardcode_direct_F77=yes
17653
      hardcode_shlibpath_var_F77=no
17654
      ;;
17655
 
17656
    *)
17657
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17658
	archive_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
17659
	archive_expsym_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17660
      else
17661
	ld_shlibs_F77=no
17662
      fi
17663
      ;;
17664
    esac
17665
 
17666
    if test "$ld_shlibs_F77" = yes; then
17667
      runpath_var=LD_RUN_PATH
17668
      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
17669
      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
17670
      # ancient GNU ld didn't support --whole-archive et. al.
17671
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17672
 	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17673
      else
17674
  	whole_archive_flag_spec_F77=
17675
      fi
17676
    fi
17677
  else
17678
    # PORTME fill in a description of your system's linker (not GNU ld)
17679
    case $host_os in
17680
    aix3*)
17681
      allow_undefined_flag_F77=unsupported
17682
      always_export_symbols_F77=yes
17683
      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17684
      # Note: this linker hardcodes the directories in LIBPATH if there
17685
      # are no directories specified by -L.
17686
      hardcode_minus_L_F77=yes
17687
      if test "$GCC" = yes && test -z "$link_static_flag"; then
17688
	# Neither direct hardcoding nor static linking is supported with a
17689
	# broken collect2.
17690
	hardcode_direct_F77=unsupported
17691
      fi
17692
      ;;
17693
 
17694
    aix4* | aix5*)
17695
      if test "$host_cpu" = ia64; then
17696
	# On IA64, the linker does run time linking by default, so we don't
17697
	# have to do anything special.
17698
	aix_use_runtimelinking=no
17699
	exp_sym_flag='-Bexport'
17700
	no_entry_flag=""
17701
      else
17702
	# If we're using GNU nm, then we don't want the "-C" option.
17703
	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17704
	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17705
	  export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17706
	else
17707
	  export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17708
	fi
17709
 
17710
	# KDE requires run time linking.  Make it the default.
17711
	aix_use_runtimelinking=yes
17712
	exp_sym_flag='-bexport'
17713
	no_entry_flag='-bnoentry'
17714
      fi
17715
 
17716
      # When large executables or shared objects are built, AIX ld can
17717
      # have problems creating the table of contents.  If linking a library
17718
      # or program results in "error TOC overflow" add -mminimal-toc to
17719
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17720
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17721
 
17722
      archive_cmds_F77=''
17723
      hardcode_direct_F77=yes
17724
      hardcode_libdir_separator_F77=':'
17725
      link_all_deplibs_F77=yes
17726
 
17727
      if test "$GCC" = yes; then
17728
	case $host_os in aix4.012|aix4.012.*)
17729
	# We only want to do this on AIX 4.2 and lower, the check
17730
	# below for broken collect2 doesn't work under 4.3+
17731
	  collect2name=`${CC} -print-prog-name=collect2`
17732
	  if test -f "$collect2name" && \
17733
  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17734
	  then
17735
  	  # We have reworked collect2
17736
  	  hardcode_direct_F77=yes
17737
	  else
17738
  	  # We have old collect2
17739
  	  hardcode_direct_F77=unsupported
17740
  	  # It fails to find uninstalled libraries when the uninstalled
17741
  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17742
  	  # to unsupported forces relinking
17743
  	  hardcode_minus_L_F77=yes
17744
  	  hardcode_libdir_flag_spec_F77='-L$libdir'
17745
  	  hardcode_libdir_separator_F77=
17746
	  fi
17747
	esac
17748
	shared_flag='-shared'
17749
      else
17750
	# not using gcc
17751
	if test "$host_cpu" = ia64; then
17752
  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17753
  	# chokes on -Wl,-G. The following line is correct:
17754
	  shared_flag='-G'
17755
	else
17756
  	if test "$aix_use_runtimelinking" = yes; then
17757
	    shared_flag='-qmkshrobj ${wl}-G'
17758
	  else
17759
	    shared_flag='-qmkshrobj'
17760
  	fi
17761
	fi
17762
      fi
17763
 
17764
      # Let the compiler handle the export list.
17765
      always_export_symbols_F77=no
17766
      if test "$aix_use_runtimelinking" = yes; then
17767
	# Warning - without using the other runtime loading flags (-brtl),
17768
	# -berok will link without error, but may produce a broken library.
17769
	allow_undefined_flag_F77='-berok'
17770
       # Determine the default libpath from the value encoded in an empty executable.
17771
	cat >conftest.$ac_ext <<_ACEOF
17772
      program main
17773
 
17774
      end
17775
_ACEOF
17776
rm -f conftest.$ac_objext conftest$ac_exeext
17777
if { (ac_try="$ac_link"
17778
case "(($ac_try" in
17779
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17780
  *) ac_try_echo=$ac_try;;
17781
esac
216 andreas 17782
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17783
$as_echo "$ac_try_echo") >&5
88 andreas 17784
  (eval "$ac_link") 2>conftest.er1
17785
  ac_status=$?
17786
  grep -v '^ *+' conftest.er1 >conftest.err
17787
  rm -f conftest.er1
17788
  cat conftest.err >&5
216 andreas 17789
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 17790
  (exit $ac_status); } && {
17791
	 test -z "$ac_f77_werror_flag" ||
17792
	 test ! -s conftest.err
216 andreas 17793
       } && test -s conftest$ac_exeext && {
17794
	 test "$cross_compiling" = yes ||
17795
	 $as_test_x conftest$ac_exeext
17796
       }; then
88 andreas 17797
 
17798
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17799
}'`
17800
# Check for a 64-bit object if we didn't find anything.
17801
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17802
}'`; fi
17803
else
216 andreas 17804
  $as_echo "$as_me: failed program was:" >&5
88 andreas 17805
sed 's/^/| /' conftest.$ac_ext >&5
17806
 
17807
 
17808
fi
17809
 
216 andreas 17810
rm -rf conftest.dSYM
88 andreas 17811
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17812
      conftest$ac_exeext conftest.$ac_ext
17813
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17814
 
17815
	hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
17816
	archive_cmds_F77="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
17817
	archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17818
       else
17819
	if test "$host_cpu" = ia64; then
17820
	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
17821
	  allow_undefined_flag_F77="-z nodefs"
17822
	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
17823
	else
17824
	 # Determine the default libpath from the value encoded in an empty executable.
17825
	 cat >conftest.$ac_ext <<_ACEOF
17826
      program main
17827
 
17828
      end
17829
_ACEOF
17830
rm -f conftest.$ac_objext conftest$ac_exeext
17831
if { (ac_try="$ac_link"
17832
case "(($ac_try" in
17833
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17834
  *) ac_try_echo=$ac_try;;
17835
esac
216 andreas 17836
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17837
$as_echo "$ac_try_echo") >&5
88 andreas 17838
  (eval "$ac_link") 2>conftest.er1
17839
  ac_status=$?
17840
  grep -v '^ *+' conftest.er1 >conftest.err
17841
  rm -f conftest.er1
17842
  cat conftest.err >&5
216 andreas 17843
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 17844
  (exit $ac_status); } && {
17845
	 test -z "$ac_f77_werror_flag" ||
17846
	 test ! -s conftest.err
216 andreas 17847
       } && test -s conftest$ac_exeext && {
17848
	 test "$cross_compiling" = yes ||
17849
	 $as_test_x conftest$ac_exeext
17850
       }; then
88 andreas 17851
 
17852
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17853
}'`
17854
# Check for a 64-bit object if we didn't find anything.
17855
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17856
}'`; fi
17857
else
216 andreas 17858
  $as_echo "$as_me: failed program was:" >&5
88 andreas 17859
sed 's/^/| /' conftest.$ac_ext >&5
17860
 
17861
 
17862
fi
17863
 
216 andreas 17864
rm -rf conftest.dSYM
88 andreas 17865
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17866
      conftest$ac_exeext conftest.$ac_ext
17867
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17868
 
17869
	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
17870
	  # Warning - without using the other run time loading flags,
17871
	  # -berok will link without error, but may produce a broken library.
17872
	  no_undefined_flag_F77=' ${wl}-bernotok'
17873
	  allow_undefined_flag_F77=' ${wl}-berok'
17874
	  # -bexpall does not export symbols beginning with underscore (_)
17875
	  always_export_symbols_F77=yes
17876
	  # Exported symbols can be pulled into shared objects from archives
17877
	  whole_archive_flag_spec_F77=' '
17878
	  archive_cmds_need_lc_F77=yes
17879
	  # This is similar to how AIX traditionally builds it's shared libraries.
17880
	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17881
	fi
17882
      fi
17883
      ;;
17884
 
17885
    amigaos*)
17886
      archive_cmds_F77='$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)'
17887
      hardcode_libdir_flag_spec_F77='-L$libdir'
17888
      hardcode_minus_L_F77=yes
17889
      # see comment about different semantics on the GNU ld section
17890
      ld_shlibs_F77=no
17891
      ;;
17892
 
17893
    bsdi4*)
17894
      export_dynamic_flag_spec_F77=-rdynamic
17895
      ;;
17896
 
17897
    cygwin* | mingw* | pw32*)
17898
      # When not using gcc, we currently assume that we are using
17899
      # Microsoft Visual C++.
17900
      # hardcode_libdir_flag_spec is actually meaningless, as there is
17901
      # no search path for DLLs.
17902
      hardcode_libdir_flag_spec_F77=' '
17903
      allow_undefined_flag_F77=no
17904
      # Tell ltmain to make .lib files, not .a files.
17905
      libext=lib
17906
      # Tell ltmain to make .dll files, not .so files.
17907
      shrext=".dll"
17908
      # FIXME: Setting linknames here is a bad hack.
17909
      archive_cmds_F77='$CC -o $lib $compiler_flags $libobjs `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17910
      # The linker will automatically build a .lib file if we build a DLL.
17911
      old_archive_From_new_cmds_F77='true'
17912
      # FIXME: Should let the user specify the lib program.
17913
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
17914
      fix_srcfile_path='`cygpath -w "$srcfile"`'
17915
      enable_shared_with_static_runtimes_F77=yes
17916
      ;;
17917
 
17918
    darwin* | rhapsody*)
17919
    if test "$GXX" = yes ; then
17920
      archive_cmds_need_lc_F77=no
17921
      case "$host_os" in
17922
      rhapsody* | darwin1.[012])
17923
	allow_undefined_flag_F77='-Wl,-undefined -Wl,suppress'
17924
	;;
17925
      *) # Darwin 1.3 on
17926
	if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17927
	  allow_undefined_flag_F77='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
17928
	else
17929
	  case ${MACOSX_DEPLOYMENT_TARGET} in
17930
	    10.012)
17931
	      allow_undefined_flag_F77='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
17932
	      ;;
17933
	    10.*)
17934
	      allow_undefined_flag_F77='-Wl,-undefined -Wl,dynamic_lookup'
17935
	      ;;
17936
	  esac
17937
	fi
17938
	;;
17939
      esac
17940
    	lt_int_apple_cc_single_mod=no
17941
    	output_verbose_link_cmd='echo'
17942
    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
17943
    	  lt_int_apple_cc_single_mod=yes
17944
    	fi
17945
    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17946
    	  archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
17947
    	else
17948
        archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring'
17949
      fi
17950
      module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
17951
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17952
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17953
          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17954
        else
17955
          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17956
        fi
17957
          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17958
      hardcode_direct_F77=no
17959
      hardcode_automatic_F77=yes
17960
      hardcode_shlibpath_var_F77=unsupported
17961
      whole_archive_flag_spec_F77='-all_load $convenience'
17962
      link_all_deplibs_F77=yes
17963
    else
17964
      ld_shlibs_F77=no
17965
    fi
17966
      ;;
17967
 
17968
    dgux*)
17969
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17970
      hardcode_libdir_flag_spec_F77='-L$libdir'
17971
      hardcode_shlibpath_var_F77=no
17972
      ;;
17973
 
17974
    freebsd1*)
17975
      ld_shlibs_F77=no
17976
      ;;
17977
 
17978
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17979
    # support.  Future versions do this automatically, but an explicit c++rt0.o
17980
    # does not break anything, and helps significantly (at the cost of a little
17981
    # extra space).
17982
    freebsd2.2*)
17983
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17984
      hardcode_libdir_flag_spec_F77='-R$libdir'
17985
      hardcode_direct_F77=yes
17986
      hardcode_shlibpath_var_F77=no
17987
      ;;
17988
 
17989
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17990
    freebsd2*)
17991
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17992
      hardcode_direct_F77=yes
17993
      hardcode_minus_L_F77=yes
17994
      hardcode_shlibpath_var_F77=no
17995
      ;;
17996
 
17997
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17998
    freebsd* | kfreebsd*-gnu)
17999
      archive_cmds_F77='$CC -shared -o $lib $compiler_flags $libobjs $deplibs'
18000
      hardcode_libdir_flag_spec_F77='-R$libdir'
18001
      hardcode_direct_F77=yes
18002
      hardcode_shlibpath_var_F77=no
18003
      ;;
18004
 
18005
    hpux9*)
18006
      if test "$GCC" = yes; then
18007
	archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $libobjs $deplibs~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18008
      else
18009
	archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18010
      fi
18011
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
18012
      hardcode_libdir_separator_F77=:
18013
      hardcode_direct_F77=yes
18014
 
18015
      # hardcode_minus_L: Not really in the search PATH,
18016
      # but as the default location of the library.
18017
      hardcode_minus_L_F77=yes
18018
      export_dynamic_flag_spec_F77='${wl}-E'
18019
      ;;
18020
 
18021
    hpux10* | hpux11*)
18022
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18023
	case "$host_cpu" in
18024
	hppa*64*|ia64*)
18025
	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
18026
	  ;;
18027
	*)
18028
	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $libobjs $deplibs'
18029
	  ;;
18030
	esac
18031
      else
18032
	case "$host_cpu" in
18033
	hppa*64*|ia64*)
18034
	  archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
18035
	  ;;
18036
	*)
18037
	  archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18038
	  ;;
18039
	esac
18040
      fi
18041
      if test "$with_gnu_ld" = no; then
18042
	case "$host_cpu" in
18043
	hppa*64*)
18044
	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
18045
	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
18046
	  hardcode_libdir_separator_F77=:
18047
	  hardcode_direct_F77=no
18048
	  hardcode_shlibpath_var_F77=no
18049
	  ;;
18050
	ia64*)
18051
	  hardcode_libdir_flag_spec_F77='-L$libdir'
18052
	  hardcode_direct_F77=no
18053
	  hardcode_shlibpath_var_F77=no
18054
 
18055
	  # hardcode_minus_L: Not really in the search PATH,
18056
	  # but as the default location of the library.
18057
	  hardcode_minus_L_F77=yes
18058
	  ;;
18059
	*)
18060
	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
18061
	  hardcode_libdir_separator_F77=:
18062
	  hardcode_direct_F77=yes
18063
	  export_dynamic_flag_spec_F77='${wl}-E'
18064
 
18065
	  # hardcode_minus_L: Not really in the search PATH,
18066
	  # but as the default location of the library.
18067
	  hardcode_minus_L_F77=yes
18068
	  ;;
18069
	esac
18070
      fi
18071
      ;;
18072
 
18073
    irix5* | irix6* | nonstopux*)
18074
      if test "$GCC" = yes; then
18075
	archive_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18076
      else
18077
	archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18078
	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
18079
      fi
18080
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18081
      hardcode_libdir_separator_F77=:
18082
      link_all_deplibs_F77=yes
18083
      ;;
18084
 
18085
    netbsd*)
18086
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18087
	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18088
      else
18089
	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18090
      fi
18091
      hardcode_libdir_flag_spec_F77='-R$libdir'
18092
      hardcode_direct_F77=yes
18093
      hardcode_shlibpath_var_F77=no
18094
      ;;
18095
 
18096
    newsos6)
18097
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18098
      hardcode_direct_F77=yes
18099
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18100
      hardcode_libdir_separator_F77=:
18101
      hardcode_shlibpath_var_F77=no
18102
      ;;
18103
 
18104
    openbsd*)
18105
      hardcode_direct_F77=yes
18106
      hardcode_shlibpath_var_F77=no
18107
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18108
	archive_cmds_F77='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
18109
	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
18110
	export_dynamic_flag_spec_F77='${wl}-E'
18111
      else
18112
       case $host_os in
18113
	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18114
	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18115
	   hardcode_libdir_flag_spec_F77='-R$libdir'
18116
	   ;;
18117
	 *)
18118
	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
18119
	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
18120
	   ;;
18121
       esac
18122
      fi
18123
      ;;
18124
 
18125
    os2*)
18126
      hardcode_libdir_flag_spec_F77='-L$libdir'
18127
      hardcode_minus_L_F77=yes
18128
      allow_undefined_flag_F77=unsupported
18129
      archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $compiler_flags $libobjs $deplibs$output_objdir/$libname.def'
18130
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18131
      ;;
18132
 
18133
    osf3*)
18134
      if test "$GCC" = yes; then
18135
	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
18136
	archive_cmds_F77='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18137
      else
18138
	allow_undefined_flag_F77=' -expect_unresolved \*'
18139
	archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18140
      fi
18141
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18142
      hardcode_libdir_separator_F77=:
18143
      ;;
18144
 
18145
    osf4* | osf5*)	# as osf3* with the addition of -msym flag
18146
      if test "$GCC" = yes; then
18147
	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
18148
	archive_cmds_F77='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18149
	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18150
      else
18151
	allow_undefined_flag_F77=' -expect_unresolved \*'
18152
	archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18153
	archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18154
	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
18155
 
18156
	# Both c and cxx compiler support -rpath directly
18157
	hardcode_libdir_flag_spec_F77='-rpath $libdir'
18158
      fi
18159
      hardcode_libdir_separator_F77=:
18160
      ;;
18161
 
18162
    sco3.2v5*)
18163
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18164
      hardcode_shlibpath_var_F77=no
18165
      export_dynamic_flag_spec_F77='${wl}-Bexport'
18166
      runpath_var=LD_RUN_PATH
18167
      hardcode_runpath_var=yes
18168
      ;;
18169
 
18170
    solaris*)
18171
      no_undefined_flag_F77=' -z text'
18172
      if test "$GCC" = yes; then
18173
	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
18174
	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18175
	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs~$rm $lib.exp'
18176
      else
18177
	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18178
	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18179
  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18180
      fi
18181
      hardcode_libdir_flag_spec_F77='-R$libdir'
18182
      hardcode_shlibpath_var_F77=no
18183
      case $host_os in
18184
      solaris2.[0-5] | solaris2.[0-5].*) ;;
18185
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
18186
	whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
18187
      esac
18188
      link_all_deplibs_F77=yes
18189
      ;;
18190
 
18191
    sunos4*)
18192
      if test "x$host_vendor" = xsequent; then
18193
	# Use $CC to link under sequent, because it throws in some extra .o
18194
	# files that make .init and .fini sections work.
18195
	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $compiler_flags $libobjs $deplibs'
18196
      else
18197
	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18198
      fi
18199
      hardcode_libdir_flag_spec_F77='-L$libdir'
18200
      hardcode_direct_F77=yes
18201
      hardcode_minus_L_F77=yes
18202
      hardcode_shlibpath_var_F77=no
18203
      ;;
18204
 
18205
    sysv4)
18206
      case $host_vendor in
18207
	sni)
18208
	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18209
	  hardcode_direct_F77=yes # is this really true???
18210
	;;
18211
	siemens)
18212
	  ## LD is ld it makes a PLAMLIB
18213
	  ## CC just makes a GrossModule.
18214
	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18215
	  reload_cmds_F77='$CC -r -o $output$reload_objs'
18216
	  hardcode_direct_F77=no
18217
        ;;
18218
	motorola)
18219
	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18220
	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
18221
	;;
18222
      esac
18223
      runpath_var='LD_RUN_PATH'
18224
      hardcode_shlibpath_var_F77=no
18225
      ;;
18226
 
18227
    sysv4.3*)
18228
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18229
      hardcode_shlibpath_var_F77=no
18230
      export_dynamic_flag_spec_F77='-Bexport'
18231
      ;;
18232
 
18233
    sysv4*MP*)
18234
      if test -d /usr/nec; then
18235
	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18236
	hardcode_shlibpath_var_F77=no
18237
	runpath_var=LD_RUN_PATH
18238
	hardcode_runpath_var=yes
18239
	ld_shlibs_F77=yes
18240
      fi
18241
      ;;
18242
 
18243
    sysv4.2uw2*)
18244
      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18245
      hardcode_direct_F77=yes
18246
      hardcode_minus_L_F77=no
18247
      hardcode_shlibpath_var_F77=no
18248
      hardcode_runpath_var=yes
18249
      runpath_var=LD_RUN_PATH
18250
      ;;
18251
 
18252
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
18253
      no_undefined_flag_F77='${wl}-z ${wl}text'
18254
      if test "$GCC" = yes; then
18255
	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
18256
      else
18257
	archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
18258
      fi
18259
      runpath_var='LD_RUN_PATH'
18260
      hardcode_shlibpath_var_F77=no
18261
      ;;
18262
 
18263
    sysv5*)
18264
      no_undefined_flag_F77=' -z text'
18265
      # $CC -shared without GNU ld will not create a library from C++
18266
      # object files and a static libstdc++, better avoid it by now
18267
      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18268
      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18269
  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18270
      hardcode_libdir_flag_spec_F77=
18271
      hardcode_shlibpath_var_F77=no
18272
      runpath_var='LD_RUN_PATH'
18273
      ;;
18274
 
18275
    uts4*)
18276
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18277
      hardcode_libdir_flag_spec_F77='-L$libdir'
18278
      hardcode_shlibpath_var_F77=no
18279
      ;;
18280
 
18281
    *)
18282
      ld_shlibs_F77=no
18283
      ;;
18284
    esac
18285
  fi
18286
 
216 andreas 18287
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
18288
$as_echo "$ld_shlibs_F77" >&6; }
88 andreas 18289
test "$ld_shlibs_F77" = no && can_build_shared=no
18290
 
18291
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18292
if test "$GCC" = yes; then
18293
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18294
fi
18295
 
18296
#
18297
# Do we need to explicitly link libc?
18298
#
18299
case "x$archive_cmds_need_lc_F77" in
18300
x|xyes)
18301
  # Assume -lc should be added
18302
  archive_cmds_need_lc_F77=yes
18303
 
18304
  if test "$enable_shared" = yes && test "$GCC" = yes; then
18305
    case $archive_cmds_F77 in
18306
    *'~'*)
18307
      # FIXME: we may have to deal with multi-command sequences.
18308
      ;;
18309
    '$CC '*)
18310
      # Test whether the compiler implicitly links with -lc since on some
18311
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18312
      # to ld, don't add -lc before -lgcc.
216 andreas 18313
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18314
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
88 andreas 18315
      $rm conftest*
18316
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18317
 
18318
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18319
  (eval $ac_compile) 2>&5
18320
  ac_status=$?
216 andreas 18321
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 18322
  (exit $ac_status); } 2>conftest.err; then
18323
        soname=conftest
18324
        lib=conftest
18325
        libobjs=conftest.$ac_objext
18326
        deplibs=
18327
        wl=$lt_prog_compiler_wl_F77
18328
        compiler_flags=-v
18329
        linker_flags=-v
18330
        verstring=
18331
        output_objdir=.
18332
        libname=conftest
18333
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
18334
        allow_undefined_flag_F77=
18335
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18336
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18337
  ac_status=$?
216 andreas 18338
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 18339
  (exit $ac_status); }
18340
        then
18341
	  archive_cmds_need_lc_F77=no
18342
        else
18343
	  archive_cmds_need_lc_F77=yes
18344
        fi
18345
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
18346
      else
18347
        cat conftest.err 1>&5
18348
      fi
18349
      $rm conftest*
216 andreas 18350
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
18351
$as_echo "$archive_cmds_need_lc_F77" >&6; }
88 andreas 18352
      ;;
18353
    esac
18354
  fi
18355
  ;;
18356
esac
18357
 
216 andreas 18358
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18359
$as_echo_n "checking dynamic linker characteristics... " >&6; }
88 andreas 18360
library_names_spec=
18361
libname_spec='lib$name'
18362
soname_spec=
18363
shrext=".so"
18364
postinstall_cmds=
18365
postuninstall_cmds=
18366
finish_cmds=
18367
finish_eval=
18368
shlibpath_var=
18369
shlibpath_overrides_runpath=unknown
18370
version_type=none
18371
dynamic_linker="$host_os ld.so"
18372
sys_lib_dlsearch_path_spec="/lib /usr/lib"
18373
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18374
need_lib_prefix=unknown
18375
hardcode_into_libs=no
18376
 
18377
# when you set need_version to no, make sure it does not cause -set_version
18378
# flags to be left without arguments
18379
need_version=unknown
18380
 
18381
case $host_os in
18382
aix3*)
18383
  version_type=linux
18384
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18385
  shlibpath_var=LIBPATH
18386
 
18387
  # AIX 3 has no versioning support, so we append a major version to the name.
18388
  soname_spec='${libname}${release}${shared_ext}$major'
18389
  ;;
18390
 
18391
aix4* | aix5*)
18392
  version_type=linux
18393
  need_lib_prefix=no
18394
  need_version=no
18395
  hardcode_into_libs=yes
18396
  if test "$host_cpu" = ia64; then
18397
    # AIX 5 supports IA64
18398
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18399
    shlibpath_var=LD_LIBRARY_PATH
18400
  else
18401
    # With GCC up to 2.95.x, collect2 would create an import file
18402
    # for dependence libraries.  The import file would start with
18403
    # the line `#! .'.  This would cause the generated library to
18404
    # depend on `.', always an invalid library.  This was fixed in
18405
    # development snapshots of GCC prior to 3.0.
18406
    case $host_os in
18407
      aix4 | aix4.[01] | aix4.[01].*)
18408
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18409
	   echo ' yes '
18410
	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18411
	:
18412
      else
18413
	can_build_shared=no
18414
      fi
18415
      ;;
18416
    esac
18417
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18418
    # soname into executable. Probably we can add versioning support to
18419
    # collect2, so additional links can be useful in future.
18420
    if test "$aix_use_runtimelinking" = yes; then
18421
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18422
      # instead of lib<name>.a to let people know that these are not
18423
      # typical AIX shared libraries.
18424
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18425
    else
18426
      # We preserve .a as extension for shared libraries through AIX4.2
18427
      # and later when we are not doing run time linking.
18428
      library_names_spec='${libname}${release}.a $libname.a'
18429
      soname_spec='${libname}${release}${shared_ext}$major'
18430
    fi
18431
    shlibpath_var=LIBPATH
18432
  fi
18433
  ;;
18434
 
18435
amigaos*)
18436
  library_names_spec='$libname.ixlibrary $libname.a'
18437
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18438
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
18439
  ;;
18440
 
18441
beos*)
18442
  library_names_spec='${libname}${shared_ext}'
18443
  dynamic_linker="$host_os ld.so"
18444
  shlibpath_var=LIBRARY_PATH
18445
  ;;
18446
 
18447
bsdi4*)
18448
  version_type=linux
18449
  need_version=no
18450
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18451
  soname_spec='${libname}${release}${shared_ext}$major'
18452
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18453
  shlibpath_var=LD_LIBRARY_PATH
18454
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18455
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18456
  # the default ld.so.conf also contains /usr/contrib/lib and
18457
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18458
  # libtool to hard-code these into programs
18459
  ;;
18460
 
18461
cygwin* | mingw* | pw32*)
18462
  version_type=windows
18463
  shrext=".dll"
18464
  need_version=no
18465
  need_lib_prefix=no
18466
 
18467
  case $GCC,$host_os in
18468
  yes,cygwin* | yes,mingw* | yes,pw32*)
18469
    library_names_spec='$libname.dll.a'
18470
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18471
    postinstall_cmds='base_file=`basename \${file}`~
18472
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18473
      dldir=$destdir/`dirname \$dlpath`~
18474
      test -d \$dldir || mkdir -p \$dldir~
18475
      $install_prog $dir/$dlname \$dldir/$dlname'
18476
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18477
      dlpath=$dir/\$dldll~
18478
       $rm \$dlpath'
18479
    shlibpath_overrides_runpath=yes
18480
 
18481
    case $host_os in
18482
    cygwin*)
18483
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18484
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18485
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18486
      ;;
18487
    mingw*)
18488
      # MinGW DLLs use traditional 'lib' prefix
18489
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18490
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18491
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18492
        # It is most probably a Windows format PATH printed by
18493
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18494
        # path with ; separators, and with drive letters. We can handle the
18495
        # drive letters (cygwin fileutils understands them), so leave them,
18496
        # especially as we might pass files found there to a mingw objdump,
18497
        # which wouldn't understand a cygwinified path. Ahh.
18498
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18499
      else
18500
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18501
      fi
18502
      ;;
18503
    pw32*)
18504
      # pw32 DLLs use 'pw' prefix rather than 'lib'
18505
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
18506
      ;;
18507
    esac
18508
    ;;
18509
 
18510
  *)
18511
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18512
    ;;
18513
  esac
18514
  dynamic_linker='Win32 ld.exe'
18515
  # FIXME: first we should search . and the directory the executable is in
18516
  shlibpath_var=PATH
18517
  ;;
18518
 
18519
darwin* | rhapsody*)
18520
  dynamic_linker="$host_os dyld"
18521
  version_type=darwin
18522
  need_lib_prefix=no
18523
  need_version=no
18524
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18525
  soname_spec='${libname}${release}${major}$shared_ext'
18526
  shlibpath_overrides_runpath=yes
18527
  shlibpath_var=DYLD_LIBRARY_PATH
18528
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
18529
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18530
  if test "$GCC" = yes; then
18531
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18532
  else
18533
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18534
  fi
18535
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18536
  ;;
18537
 
18538
dgux*)
18539
  version_type=linux
18540
  need_lib_prefix=no
18541
  need_version=no
18542
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18543
  soname_spec='${libname}${release}${shared_ext}$major'
18544
  shlibpath_var=LD_LIBRARY_PATH
18545
  ;;
18546
 
18547
freebsd1*)
18548
  dynamic_linker=no
18549
  ;;
18550
 
18551
kfreebsd*-gnu*)
18552
  version_type=linux
18553
  need_lib_prefix=no
18554
  need_version=no
18555
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18556
  soname_spec='${libname}${release}${shared_ext}$major'
18557
  shlibpath_var=LD_LIBRARY_PATH
18558
  shlibpath_overrides_runpath=no
18559
  hardcode_into_libs=yes
18560
  dynamic_linker='GNU ld.so'
18561
  ;;
18562
 
18563
freebsd*)
18564
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18565
  version_type=freebsd-$objformat
18566
  case $version_type in
18567
    freebsd-elf*)
18568
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18569
      need_version=no
18570
      need_lib_prefix=no
18571
      ;;
18572
    freebsd-*)
18573
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18574
      need_version=yes
18575
      ;;
18576
  esac
18577
  shlibpath_var=LD_LIBRARY_PATH
18578
  case $host_os in
18579
  freebsd2*)
18580
    shlibpath_overrides_runpath=yes
18581
    ;;
18582
  freebsd3.01* | freebsdelf3.01*)
18583
    shlibpath_overrides_runpath=yes
18584
    hardcode_into_libs=yes
18585
    ;;
18586
  *) # from 3.2 on
18587
    shlibpath_overrides_runpath=no
18588
    hardcode_into_libs=yes
18589
    ;;
18590
  esac
18591
  ;;
18592
 
18593
gnu*)
18594
  version_type=linux
18595
  need_lib_prefix=no
18596
  need_version=no
18597
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18598
  soname_spec='${libname}${release}${shared_ext}$major'
18599
  shlibpath_var=LD_LIBRARY_PATH
18600
  hardcode_into_libs=yes
18601
  ;;
18602
 
18603
hpux9* | hpux10* | hpux11*)
18604
  # Give a soname corresponding to the major version so that dld.sl refuses to
18605
  # link against other versions.
18606
  version_type=sunos
18607
  need_lib_prefix=no
18608
  need_version=no
18609
  case "$host_cpu" in
18610
  ia64*)
18611
    shrext='.so'
18612
    hardcode_into_libs=yes
18613
    dynamic_linker="$host_os dld.so"
18614
    shlibpath_var=LD_LIBRARY_PATH
18615
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18616
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18617
    soname_spec='${libname}${release}${shared_ext}$major'
18618
    if test "X$HPUX_IA64_MODE" = X32; then
18619
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18620
    else
18621
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18622
    fi
18623
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18624
    ;;
18625
   hppa*64*)
18626
     shrext='.sl'
18627
     hardcode_into_libs=yes
18628
     dynamic_linker="$host_os dld.sl"
18629
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18630
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18631
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18632
     soname_spec='${libname}${release}${shared_ext}$major'
18633
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18634
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18635
     ;;
18636
   *)
18637
    shrext='.sl'
18638
    dynamic_linker="$host_os dld.sl"
18639
    shlibpath_var=SHLIB_PATH
18640
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18641
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18642
    soname_spec='${libname}${release}${shared_ext}$major'
18643
    ;;
18644
  esac
18645
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18646
  postinstall_cmds='chmod 555 $lib'
18647
  ;;
18648
 
18649
irix5* | irix6* | nonstopux*)
18650
  case $host_os in
18651
    nonstopux*) version_type=nonstopux ;;
18652
    *)
18653
	if test "$lt_cv_prog_gnu_ld" = yes; then
18654
		version_type=linux
18655
	else
18656
		version_type=irix
18657
	fi ;;
18658
  esac
18659
  need_lib_prefix=no
18660
  need_version=no
18661
  soname_spec='${libname}${release}${shared_ext}$major'
18662
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18663
  case $host_os in
18664
  irix5* | nonstopux*)
18665
    libsuff= shlibsuff=
18666
    ;;
18667
  *)
18668
    case $LD in # libtool.m4 will add one of these switches to LD
18669
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18670
      libsuff= shlibsuff= libmagic=32-bit;;
18671
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18672
      libsuff=32 shlibsuff=N32 libmagic=N32;;
18673
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18674
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18675
    *) libsuff= shlibsuff= libmagic=never-match;;
18676
    esac
18677
    ;;
18678
  esac
18679
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18680
  shlibpath_overrides_runpath=no
18681
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18682
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18683
  hardcode_into_libs=yes
18684
  ;;
18685
 
18686
# No shared lib support for Linux oldld, aout, or coff.
18687
linux*oldld* | linux*aout* | linux*coff*)
18688
  dynamic_linker=no
18689
  ;;
18690
 
18691
# This must be Linux ELF.
18692
linux*)
18693
  version_type=linux
18694
  need_lib_prefix=no
18695
  need_version=no
18696
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18697
  soname_spec='${libname}${release}${shared_ext}$major'
18698
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18699
  libsuff=
18700
  if test "x$LINUX_64_MODE" = x64; then
18701
    # Some platforms are per default 64-bit, so there's no /lib64
18702
    if test -d /lib64 -a ! -h /lib64; then
18703
      libsuff=64
18704
    fi
18705
  fi
18706
  shlibpath_var=LD_LIBRARY_PATH
18707
  shlibpath_overrides_runpath=no
18708
  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
18709
  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18710
  # This implies no fast_install, which is unacceptable.
18711
  # Some rework will be needed to allow for fast_install
18712
  # before this can be enabled.
18713
  hardcode_into_libs=yes
18714
 
18715
  # We used to test for /lib/ld.so.1 and disable shared libraries on
18716
  # powerpc, because MkLinux only supported shared libraries with the
18717
  # GNU dynamic linker.  Since this was broken with cross compilers,
18718
  # most powerpc-linux boxes support dynamic linking these days and
18719
  # people can always --disable-shared, the test was removed, and we
18720
  # assume the GNU/Linux dynamic linker is in use.
18721
  dynamic_linker='GNU/Linux ld.so'
18722
  ;;
18723
 
18724
netbsd*)
18725
  version_type=sunos
18726
  need_lib_prefix=no
18727
  need_version=no
18728
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18729
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18730
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18731
    dynamic_linker='NetBSD (a.out) ld.so'
18732
  else
18733
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
18734
    soname_spec='${libname}${release}${shared_ext}$major'
18735
    dynamic_linker='NetBSD ld.elf_so'
18736
  fi
18737
  shlibpath_var=LD_LIBRARY_PATH
18738
  shlibpath_overrides_runpath=yes
18739
  hardcode_into_libs=yes
18740
  ;;
18741
 
18742
newsos6)
18743
  version_type=linux
18744
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18745
  shlibpath_var=LD_LIBRARY_PATH
18746
  shlibpath_overrides_runpath=yes
18747
  ;;
18748
 
18749
nto-qnx*)
18750
  version_type=linux
18751
  need_lib_prefix=no
18752
  need_version=no
18753
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18754
  soname_spec='${libname}${release}${shared_ext}$major'
18755
  shlibpath_var=LD_LIBRARY_PATH
18756
  shlibpath_overrides_runpath=yes
18757
  ;;
18758
 
18759
openbsd*)
18760
  version_type=sunos
18761
  need_lib_prefix=no
18762
  need_version=no
18763
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18764
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18765
  shlibpath_var=LD_LIBRARY_PATH
18766
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18767
    case $host_os in
18768
      openbsd2.[89] | openbsd2.[89].*)
18769
	shlibpath_overrides_runpath=no
18770
	;;
18771
      *)
18772
	shlibpath_overrides_runpath=yes
18773
	;;
18774
      esac
18775
  else
18776
    shlibpath_overrides_runpath=yes
18777
  fi
18778
  ;;
18779
 
18780
os2*)
18781
  libname_spec='$name'
18782
  shrext=".dll"
18783
  need_lib_prefix=no
18784
  library_names_spec='$libname${shared_ext} $libname.a'
18785
  dynamic_linker='OS/2 ld.exe'
18786
  shlibpath_var=LIBPATH
18787
  ;;
18788
 
18789
osf3* | osf4* | osf5*)
18790
  version_type=osf
18791
  need_lib_prefix=no
18792
  need_version=no
18793
  soname_spec='${libname}${release}${shared_ext}$major'
18794
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18795
  shlibpath_var=LD_LIBRARY_PATH
18796
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18797
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18798
  ;;
18799
 
18800
sco3.2v5*)
18801
  version_type=osf
18802
  soname_spec='${libname}${release}${shared_ext}$major'
18803
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18804
  shlibpath_var=LD_LIBRARY_PATH
18805
  ;;
18806
 
18807
solaris*)
18808
  version_type=linux
18809
  need_lib_prefix=no
18810
  need_version=no
18811
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18812
  soname_spec='${libname}${release}${shared_ext}$major'
18813
  shlibpath_var=LD_LIBRARY_PATH
18814
  shlibpath_overrides_runpath=yes
18815
  hardcode_into_libs=yes
18816
  # ldd complains unless libraries are executable
18817
  postinstall_cmds='chmod +x $lib'
18818
  ;;
18819
 
18820
sunos4*)
18821
  version_type=sunos
18822
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18823
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18824
  shlibpath_var=LD_LIBRARY_PATH
18825
  shlibpath_overrides_runpath=yes
18826
  if test "$with_gnu_ld" = yes; then
18827
    need_lib_prefix=no
18828
  fi
18829
  need_version=yes
18830
  ;;
18831
 
18832
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18833
  version_type=linux
18834
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18835
  soname_spec='${libname}${release}${shared_ext}$major'
18836
  shlibpath_var=LD_LIBRARY_PATH
18837
  case $host_vendor in
18838
    sni)
18839
      shlibpath_overrides_runpath=no
18840
      need_lib_prefix=no
18841
      export_dynamic_flag_spec='${wl}-Blargedynsym'
18842
      runpath_var=LD_RUN_PATH
18843
      ;;
18844
    siemens)
18845
      need_lib_prefix=no
18846
      ;;
18847
    motorola)
18848
      need_lib_prefix=no
18849
      need_version=no
18850
      shlibpath_overrides_runpath=no
18851
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18852
      ;;
18853
  esac
18854
  ;;
18855
 
18856
sysv4*MP*)
18857
  if test -d /usr/nec ;then
18858
    version_type=linux
18859
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18860
    soname_spec='$libname${shared_ext}.$major'
18861
    shlibpath_var=LD_LIBRARY_PATH
18862
  fi
18863
  ;;
18864
 
18865
uts4*)
18866
  version_type=linux
18867
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18868
  soname_spec='${libname}${release}${shared_ext}$major'
18869
  shlibpath_var=LD_LIBRARY_PATH
18870
  ;;
18871
 
18872
*)
18873
  dynamic_linker=no
18874
  ;;
18875
esac
216 andreas 18876
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18877
$as_echo "$dynamic_linker" >&6; }
88 andreas 18878
test "$dynamic_linker" = no && can_build_shared=no
18879
 
216 andreas 18880
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18881
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
88 andreas 18882
hardcode_action_F77=
18883
if test -n "$hardcode_libdir_flag_spec_F77" || \
18884
   test -n "$runpath_var F77" || \
18885
   test "X$hardcode_automatic_F77"="Xyes" ; then
18886
 
18887
  # We can hardcode non-existant directories.
18888
  if test "$hardcode_direct_F77" != no &&
18889
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18890
     # have to relink, otherwise we might link with an installed library
18891
     # when we should be linking with a yet-to-be-installed one
18892
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
18893
     test "$hardcode_minus_L_F77" != no; then
18894
    # Linking always hardcodes the temporary library directory.
18895
    hardcode_action_F77=relink
18896
  else
18897
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18898
    hardcode_action_F77=immediate
18899
  fi
18900
else
18901
  # We cannot hardcode anything, or else we can only hardcode existing
18902
  # directories.
18903
  hardcode_action_F77=unsupported
18904
fi
216 andreas 18905
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
18906
$as_echo "$hardcode_action_F77" >&6; }
88 andreas 18907
 
18908
if test "$hardcode_action_F77" = relink; then
18909
  # Fast installation is not supported
18910
  enable_fast_install=no
18911
elif test "$shlibpath_overrides_runpath" = yes ||
18912
     test "$enable_shared" = no; then
18913
  # Fast installation is not necessary
18914
  enable_fast_install=needless
18915
fi
18916
 
18917
striplib=
18918
old_striplib=
216 andreas 18919
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18920
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
88 andreas 18921
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18922
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18923
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
216 andreas 18924
  { $as_echo "$as_me:$LINENO: result: yes" >&5
18925
$as_echo "yes" >&6; }
88 andreas 18926
else
18927
# FIXME - insert some real tests, host_os isn't really good enough
18928
  case $host_os in
18929
   darwin*)
18930
       if test -n "$STRIP" ; then
18931
         striplib="$STRIP -x"
216 andreas 18932
         { $as_echo "$as_me:$LINENO: result: yes" >&5
18933
$as_echo "yes" >&6; }
88 andreas 18934
       else
216 andreas 18935
  { $as_echo "$as_me:$LINENO: result: no" >&5
18936
$as_echo "no" >&6; }
88 andreas 18937
fi
18938
       ;;
18939
   *)
216 andreas 18940
  { $as_echo "$as_me:$LINENO: result: no" >&5
18941
$as_echo "no" >&6; }
88 andreas 18942
    ;;
18943
  esac
18944
fi
18945
 
18946
 
18947
 
18948
# The else clause should only fire when bootstrapping the
18949
# libtool distribution, otherwise you forgot to ship ltmain.sh
18950
# with your package, and you will get complaints that there are
18951
# no rules to generate ltmain.sh.
18952
if test -f "$ltmain"; then
18953
  # See if we are running on zsh, and set the options which allow our commands through
18954
  # without removal of \ escapes.
18955
  if test -n "${ZSH_VERSION+set}" ; then
18956
    setopt NO_GLOB_SUBST
18957
  fi
18958
  # Now quote all the things that may contain metacharacters while being
18959
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18960
  # variables and quote the copies for generation of the libtool script.
18961
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18962
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18963
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18964
    deplibs_check_method reload_flag reload_cmds need_locks \
18965
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18966
    lt_cv_sys_global_symbol_to_c_name_address \
18967
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18968
    old_postinstall_cmds old_postuninstall_cmds \
18969
    compiler_F77 \
18970
    CC_F77 \
18971
    LD_F77 \
18972
    lt_prog_compiler_wl_F77 \
18973
    lt_prog_compiler_pic_F77 \
18974
    lt_prog_compiler_static_F77 \
18975
    lt_prog_compiler_no_builtin_flag_F77 \
18976
    export_dynamic_flag_spec_F77 \
18977
    thread_safe_flag_spec_F77 \
18978
    whole_archive_flag_spec_F77 \
18979
    enable_shared_with_static_runtimes_F77 \
18980
    old_archive_cmds_F77 \
18981
    old_archive_from_new_cmds_F77 \
18982
    predep_objects_F77 \
18983
    postdep_objects_F77 \
18984
    predeps_F77 \
18985
    postdeps_F77 \
18986
    compiler_lib_search_path_F77 \
18987
    archive_cmds_F77 \
18988
    archive_expsym_cmds_F77 \
18989
    postinstall_cmds_F77 \
18990
    postuninstall_cmds_F77 \
18991
    old_archive_from_expsyms_cmds_F77 \
18992
    allow_undefined_flag_F77 \
18993
    no_undefined_flag_F77 \
18994
    export_symbols_cmds_F77 \
18995
    hardcode_libdir_flag_spec_F77 \
18996
    hardcode_libdir_flag_spec_ld_F77 \
18997
    hardcode_libdir_separator_F77 \
18998
    hardcode_automatic_F77 \
18999
    module_cmds_F77 \
19000
    module_expsym_cmds_F77 \
19001
    lt_cv_prog_compiler_c_o_F77 \
19002
    exclude_expsyms_F77 \
19003
    include_expsyms_F77; do
19004
 
19005
    case $var in
19006
    old_archive_cmds_F77 | \
19007
    old_archive_from_new_cmds_F77 | \
19008
    archive_cmds_F77 | \
19009
    archive_expsym_cmds_F77 | \
19010
    module_cmds_F77 | \
19011
    module_expsym_cmds_F77 | \
19012
    old_archive_from_expsyms_cmds_F77 | \
19013
    export_symbols_cmds_F77 | \
19014
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19015
    postinstall_cmds | postuninstall_cmds | \
19016
    old_postinstall_cmds | old_postuninstall_cmds | \
19017
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19018
      # Double-quote double-evaled strings.
19019
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19020
      ;;
19021
    *)
19022
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19023
      ;;
19024
    esac
19025
  done
19026
 
19027
  case $lt_echo in
19028
  *'\$0 --fallback-echo"')
19029
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19030
    ;;
19031
  esac
19032
 
19033
cfgfile="$ofile"
19034
 
19035
  cat <<__EOF__ >> "$cfgfile"
19036
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19037
 
19038
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19039
 
19040
# Shell to use when invoking shell scripts.
19041
SHELL=$lt_SHELL
19042
 
19043
# Whether or not to build shared libraries.
19044
build_libtool_libs=$enable_shared
19045
 
19046
# Whether or not to build static libraries.
19047
build_old_libs=$enable_static
19048
 
19049
# Whether or not to add -lc for building shared libraries.
19050
build_libtool_need_lc=$archive_cmds_need_lc_F77
19051
 
19052
# Whether or not to disallow shared libs when runtime libs are static
19053
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
19054
 
19055
# Whether or not to optimize for fast installation.
19056
fast_install=$enable_fast_install
19057
 
19058
# The host system.
19059
host_alias=$host_alias
19060
host=$host
19061
 
19062
# An echo program that does not interpret backslashes.
19063
echo=$lt_echo
19064
 
19065
# The archiver.
19066
AR=$lt_AR
19067
AR_FLAGS=$lt_AR_FLAGS
19068
 
19069
# A C compiler.
19070
LTCC=$lt_LTCC
19071
 
19072
# A language-specific compiler.
19073
CC=$lt_compiler_F77
19074
 
19075
# Is the compiler the GNU C compiler?
19076
with_gcc=$GCC_F77
19077
 
19078
# An ERE matcher.
19079
EGREP=$lt_EGREP
19080
 
19081
# The linker used to build libraries.
19082
LD=$lt_LD_F77
19083
 
19084
# Whether we need hard or soft links.
19085
LN_S=$lt_LN_S
19086
 
19087
# A BSD-compatible nm program.
19088
NM=$lt_NM
19089
 
19090
# A symbol stripping program
19091
STRIP=$STRIP
19092
 
19093
# Used to examine libraries when file_magic_cmd begins "file"
19094
MAGIC_CMD=$MAGIC_CMD
19095
 
19096
# Used on cygwin: DLL creation program.
19097
DLLTOOL="$DLLTOOL"
19098
 
19099
# Used on cygwin: object dumper.
19100
OBJDUMP="$OBJDUMP"
19101
 
19102
# Used on cygwin: assembler.
19103
AS="$AS"
19104
 
19105
# The name of the directory that contains temporary libtool files.
19106
objdir=$objdir
19107
 
19108
# How to create reloadable object files.
19109
reload_flag=$lt_reload_flag
19110
reload_cmds=$lt_reload_cmds
19111
 
19112
# How to pass a linker flag through the compiler.
19113
wl=$lt_lt_prog_compiler_wl_F77
19114
 
19115
# Object file suffix (normally "o").
19116
objext="$ac_objext"
19117
 
19118
# Old archive suffix (normally "a").
19119
libext="$libext"
19120
 
19121
# Shared library suffix (normally ".so").
19122
shrext='$shrext'
19123
 
19124
# Executable file suffix (normally "").
19125
exeext="$exeext"
19126
 
19127
# Additional compiler flags for building library objects.
19128
pic_flag=$lt_lt_prog_compiler_pic_F77
19129
pic_mode=$pic_mode
19130
 
19131
# What is the maximum length of a command?
19132
max_cmd_len=$lt_cv_sys_max_cmd_len
19133
 
19134
# Does compiler simultaneously support -c and -o options?
19135
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
19136
 
19137
# Must we lock files when doing compilation ?
19138
need_locks=$lt_need_locks
19139
 
19140
# Do we need the lib prefix for modules?
19141
need_lib_prefix=$need_lib_prefix
19142
 
19143
# Do we need a version for libraries?
19144
need_version=$need_version
19145
 
19146
# Whether dlopen is supported.
19147
dlopen_support=$enable_dlopen
19148
 
19149
# Whether dlopen of programs is supported.
19150
dlopen_self=$enable_dlopen_self
19151
 
19152
# Whether dlopen of statically linked programs is supported.
19153
dlopen_self_static=$enable_dlopen_self_static
19154
 
19155
# Compiler flag to prevent dynamic linking.
19156
link_static_flag=$lt_lt_prog_compiler_static_F77
19157
 
19158
# Compiler flag to turn off builtin functions.
19159
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
19160
 
19161
# Compiler flag to allow reflexive dlopens.
19162
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
19163
 
19164
# Compiler flag to generate shared objects directly from archives.
19165
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
19166
 
19167
# Compiler flag to generate thread-safe objects.
19168
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
19169
 
19170
# Library versioning type.
19171
version_type=$version_type
19172
 
19173
# Format of library name prefix.
19174
libname_spec=$lt_libname_spec
19175
 
19176
# List of archive names.  First name is the real one, the rest are links.
19177
# The last name is the one that the linker finds with -lNAME.
19178
library_names_spec=$lt_library_names_spec
19179
 
19180
# The coded name of the library, if different from the real name.
19181
soname_spec=$lt_soname_spec
19182
 
19183
# Commands used to build and install an old-style archive.
19184
RANLIB=$lt_RANLIB
19185
old_archive_cmds=$lt_old_archive_cmds_F77
19186
old_postinstall_cmds=$lt_old_postinstall_cmds
19187
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19188
 
19189
# Create an old-style archive from a shared archive.
19190
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
19191
 
19192
# Create a temporary old-style archive to link instead of a shared archive.
19193
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
19194
 
19195
# Commands used to build and install a shared archive.
19196
archive_cmds=$lt_archive_cmds_F77
19197
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
19198
postinstall_cmds=$lt_postinstall_cmds
19199
postuninstall_cmds=$lt_postuninstall_cmds
19200
 
19201
# Commands used to build a loadable module (assumed same as above if empty)
19202
module_cmds=$lt_module_cmds_F77
19203
module_expsym_cmds=$lt_module_expsym_cmds_F77
19204
 
19205
# Commands to strip libraries.
19206
old_striplib=$lt_old_striplib
19207
striplib=$lt_striplib
19208
 
19209
# Dependencies to place before the objects being linked to create a
19210
# shared library.
19211
predep_objects=$lt_predep_objects_F77
19212
 
19213
# Dependencies to place after the objects being linked to create a
19214
# shared library.
19215
postdep_objects=$lt_postdep_objects_F77
19216
 
19217
# Dependencies to place before the objects being linked to create a
19218
# shared library.
19219
predeps=$lt_predeps_F77
19220
 
19221
# Dependencies to place after the objects being linked to create a
19222
# shared library.
19223
postdeps=$lt_postdeps_F77
19224
 
19225
# The library search path used internally by the compiler when linking
19226
# a shared library.
19227
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
19228
 
19229
# Method to check whether dependent libraries are shared objects.
19230
deplibs_check_method=$lt_deplibs_check_method
19231
 
19232
# Command to use when deplibs_check_method == file_magic.
19233
file_magic_cmd=$lt_file_magic_cmd
19234
 
19235
# Flag that allows shared libraries with undefined symbols to be built.
19236
allow_undefined_flag=$lt_allow_undefined_flag_F77
19237
 
19238
# Flag that forces no undefined symbols.
19239
no_undefined_flag=$lt_no_undefined_flag_F77
19240
 
19241
# Commands used to finish a libtool library installation in a directory.
19242
finish_cmds=$lt_finish_cmds
19243
 
19244
# Same as above, but a single script fragment to be evaled but not shown.
19245
finish_eval=$lt_finish_eval
19246
 
19247
# Take the output of nm and produce a listing of raw symbols and C names.
19248
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19249
 
19250
# Transform the output of nm in a proper C declaration
19251
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19252
 
19253
# Transform the output of nm in a C name address pair
19254
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19255
 
19256
# This is the shared library runtime path variable.
19257
runpath_var=$runpath_var
19258
 
19259
# This is the shared library path variable.
19260
shlibpath_var=$shlibpath_var
19261
 
19262
# Is shlibpath searched before the hard-coded library search path?
19263
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19264
 
19265
# How to hardcode a shared library path into an executable.
19266
hardcode_action=$hardcode_action_F77
19267
 
19268
# Whether we should hardcode library paths into libraries.
19269
hardcode_into_libs=$hardcode_into_libs
19270
 
19271
# Flag to hardcode \$libdir into a binary during linking.
19272
# This must work even if \$libdir does not exist.
19273
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
19274
 
19275
# If ld is used when linking, flag to hardcode \$libdir into
19276
# a binary during linking. This must work even if \$libdir does
19277
# not exist.
19278
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
19279
 
19280
# Whether we need a single -rpath flag with a separated argument.
19281
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
19282
 
19283
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19284
# resulting binary.
19285
hardcode_direct=$hardcode_direct_F77
19286
 
19287
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19288
# resulting binary.
19289
hardcode_minus_L=$hardcode_minus_L_F77
19290
 
19291
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19292
# the resulting binary.
19293
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
19294
 
19295
# Set to yes if building a shared library automatically hardcodes DIR into the library
19296
# and all subsequent libraries and executables linked against it.
19297
hardcode_automatic=$hardcode_automatic_F77
19298
 
19299
# Variables whose values should be saved in libtool wrapper scripts and
19300
# restored at relink time.
19301
variables_saved_for_relink="$variables_saved_for_relink"
19302
 
19303
# Whether libtool must link a program against all its dependency libraries.
19304
link_all_deplibs=$link_all_deplibs_F77
19305
 
19306
# Compile-time system search path for libraries
19307
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19308
 
19309
# Run-time system search path for libraries
19310
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19311
 
19312
# Fix the shell variable \$srcfile for the compiler.
19313
fix_srcfile_path="$fix_srcfile_path_F77"
19314
 
19315
# Set to yes if exported symbols are required.
19316
always_export_symbols=$always_export_symbols_F77
19317
 
19318
# The commands to list exported symbols.
19319
export_symbols_cmds=$lt_export_symbols_cmds_F77
19320
 
19321
# The commands to extract the exported symbol list from a shared archive.
19322
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19323
 
19324
# Symbols that should not be listed in the preloaded symbols.
19325
exclude_expsyms=$lt_exclude_expsyms_F77
19326
 
19327
# Symbols that must always be exported.
19328
include_expsyms=$lt_include_expsyms_F77
19329
 
19330
# ### END LIBTOOL TAG CONFIG: $tagname
19331
 
19332
__EOF__
19333
 
19334
 
19335
else
19336
  # If there is no Makefile yet, we rely on a make rule to execute
19337
  # `config.status --recheck' to rerun these tests and create the
19338
  # libtool script then.
19339
  test -f Makefile && make "$ltmain"
19340
fi
19341
 
19342
 
19343
ac_ext=c
19344
ac_cpp='$CPP $CPPFLAGS'
19345
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19346
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19347
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19348
 
19349
CC="$lt_save_CC"
19350
 
19351
	else
19352
	  tagname=""
19353
	fi
19354
	;;
19355
 
19356
      GCJ)
19357
	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
19358
 
19359
 
19360
# Source file extension for Java test sources.
19361
ac_ext=java
19362
 
19363
# Object file extension for compiled Java test sources.
19364
objext=o
19365
objext_GCJ=$objext
19366
 
19367
# Code to be used in simple compile tests
19368
lt_simple_compile_test_code="class foo {}\n"
19369
 
19370
# Code to be used in simple link tests
19371
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
19372
 
19373
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19374
 
19375
# If no C compiler was specified, use CC.
19376
LTCC=${LTCC-"$CC"}
19377
 
19378
# Allow CC to be a program name with arguments.
19379
compiler=$CC
19380
 
19381
 
19382
# Allow CC to be a program name with arguments.
19383
lt_save_CC="$CC"
19384
CC=${GCJ-"gcj"}
19385
compiler=$CC
19386
compiler_GCJ=$CC
19387
 
19388
# GCJ did not exist at the time GCC didn't implicitly link libc in.
19389
archive_cmds_need_lc_GCJ=no
19390
 
19391
## CAVEAT EMPTOR:
19392
## There is no encapsulation within the following macros, do not change
19393
## the running order or otherwise move them around unless you know exactly
19394
## what you are doing...
19395
 
19396
lt_prog_compiler_no_builtin_flag_GCJ=
19397
 
19398
if test "$GCC" = yes; then
19399
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
19400
 
19401
 
216 andreas 19402
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
19403
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
88 andreas 19404
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
216 andreas 19405
  $as_echo_n "(cached) " >&6
88 andreas 19406
else
19407
  lt_cv_prog_compiler_rtti_exceptions=no
19408
  ac_outfile=conftest.$ac_objext
19409
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19410
   lt_compiler_flag="-fno-rtti -fno-exceptions"
19411
   # Insert the option either (1) after the last *FLAGS variable, or
19412
   # (2) before a word containing "conftest.", or (3) at the end.
19413
   # Note that $ac_compile itself does not contain backslashes and begins
19414
   # with a dollar sign (not a hyphen), so the echo should work correctly.
19415
   # The option is referenced via a variable to avoid confusing sed.
19416
   lt_compile=`echo "$ac_compile" | $SED \
19417
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19418
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19419
   -e 's:$: $lt_compiler_flag:'`
216 andreas 19420
   (eval echo "\"\$as_me:19420: $lt_compile\"" >&5)
88 andreas 19421
   (eval "$lt_compile" 2>conftest.err)
19422
   ac_status=$?
19423
   cat conftest.err >&5
216 andreas 19424
   echo "$as_me:19424: \$? = $ac_status" >&5
88 andreas 19425
   if (exit $ac_status) && test -s "$ac_outfile"; then
19426
     # The compiler can only warn and ignore the option if not recognized
19427
     # So say no if there are warnings
19428
     if test ! -s conftest.err; then
19429
       lt_cv_prog_compiler_rtti_exceptions=yes
19430
     fi
19431
   fi
19432
   $rm conftest*
19433
 
19434
fi
216 andreas 19435
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
19436
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
88 andreas 19437
 
19438
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
19439
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
19440
else
19441
    :
19442
fi
19443
 
19444
fi
19445
 
19446
lt_prog_compiler_wl_GCJ=
19447
lt_prog_compiler_pic_GCJ=
19448
lt_prog_compiler_static_GCJ=
19449
 
216 andreas 19450
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19451
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
88 andreas 19452
 
19453
  if test "$GCC" = yes; then
19454
    lt_prog_compiler_wl_GCJ='-Wl,'
19455
    lt_prog_compiler_static_GCJ='-static'
19456
 
19457
    case $host_os in
19458
      aix*)
19459
      # All AIX code is PIC.
19460
      if test "$host_cpu" = ia64; then
19461
	# AIX 5 now supports IA64 processor
19462
	lt_prog_compiler_static_GCJ='-Bstatic'
19463
      fi
19464
      ;;
19465
 
19466
    amigaos*)
19467
      # FIXME: we need at least 68020 code to build shared libraries, but
19468
      # adding the `-m68020' flag to GCC prevents building anything better,
19469
      # like `-m68040'.
19470
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
19471
      ;;
19472
 
19473
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19474
      # PIC is the default for these OSes.
19475
      ;;
19476
 
19477
    mingw* | pw32* | os2*)
19478
      # This hack is so that the source file can tell whether it is being
19479
      # built for inclusion in a dll (and should export symbols for example).
19480
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
19481
      ;;
19482
 
19483
    darwin* | rhapsody*)
19484
      # PIC is the default on this platform
19485
      # Common symbols not allowed in MH_DYLIB files
19486
      lt_prog_compiler_pic_GCJ='-fno-common'
19487
      ;;
19488
 
19489
    msdosdjgpp*)
19490
      # Just because we use GCC doesn't mean we suddenly get shared libraries
19491
      # on systems that don't support them.
19492
      lt_prog_compiler_can_build_shared_GCJ=no
19493
      enable_shared=no
19494
      ;;
19495
 
19496
    sysv4*MP*)
19497
      if test -d /usr/nec; then
19498
	lt_prog_compiler_pic_GCJ=-Kconform_pic
19499
      fi
19500
      ;;
19501
 
19502
    hpux*)
19503
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19504
      # not for PA HP-UX.
19505
      case "$host_cpu" in
19506
      hppa*64*|ia64*)
19507
	# +Z the default
19508
	;;
19509
      *)
19510
	lt_prog_compiler_pic_GCJ='-fPIC'
19511
	;;
19512
      esac
19513
      ;;
19514
 
19515
    *)
19516
      lt_prog_compiler_pic_GCJ='-fPIC'
19517
      ;;
19518
    esac
19519
  else
19520
    # PORTME Check for flag to pass linker flags through the system compiler.
19521
    case $host_os in
19522
    aix*)
19523
      lt_prog_compiler_wl_GCJ='-Wl,'
19524
      if test "$host_cpu" = ia64; then
19525
	# AIX 5 now supports IA64 processor
19526
	lt_prog_compiler_static_GCJ='-Bstatic'
19527
      else
19528
	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
19529
      fi
19530
      ;;
19531
 
19532
    mingw* | pw32* | os2*)
19533
      # This hack is so that the source file can tell whether it is being
19534
      # built for inclusion in a dll (and should export symbols for example).
19535
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
19536
      ;;
19537
 
19538
    hpux9* | hpux10* | hpux11*)
19539
      lt_prog_compiler_wl_GCJ='-Wl,'
19540
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19541
      # not for PA HP-UX.
19542
      case "$host_cpu" in
19543
      hppa*64*|ia64*)
19544
	# +Z the default
19545
	;;
19546
      *)
19547
	lt_prog_compiler_pic_GCJ='+Z'
19548
	;;
19549
      esac
19550
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
19551
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
19552
      ;;
19553
 
19554
    irix5* | irix6* | nonstopux*)
19555
      lt_prog_compiler_wl_GCJ='-Wl,'
19556
      # PIC (with -KPIC) is the default.
19557
      lt_prog_compiler_static_GCJ='-non_shared'
19558
      ;;
19559
 
19560
    newsos6)
19561
      lt_prog_compiler_pic_GCJ='-KPIC'
19562
      lt_prog_compiler_static_GCJ='-Bstatic'
19563
      ;;
19564
 
19565
    linux*)
19566
      case $CC in
19567
      icc* | ecc*)
19568
	lt_prog_compiler_wl_GCJ='-Wl,'
19569
	lt_prog_compiler_pic_GCJ='-KPIC'
19570
	lt_prog_compiler_static_GCJ='-static'
19571
        ;;
19572
      ccc*)
19573
        lt_prog_compiler_wl_GCJ='-Wl,'
19574
        # All Alpha code is PIC.
19575
        lt_prog_compiler_static_GCJ='-non_shared'
19576
        ;;
19577
      esac
19578
      ;;
19579
 
19580
    osf3* | osf4* | osf5*)
19581
      lt_prog_compiler_wl_GCJ='-Wl,'
19582
      # All OSF/1 code is PIC.
19583
      lt_prog_compiler_static_GCJ='-non_shared'
19584
      ;;
19585
 
19586
    sco3.2v5*)
19587
      lt_prog_compiler_pic_GCJ='-Kpic'
19588
      lt_prog_compiler_static_GCJ='-dn'
19589
      ;;
19590
 
19591
    solaris*)
19592
      lt_prog_compiler_wl_GCJ='-Wl,'
19593
      lt_prog_compiler_pic_GCJ='-KPIC'
19594
      lt_prog_compiler_static_GCJ='-Bstatic'
19595
      ;;
19596
 
19597
    sunos4*)
19598
      lt_prog_compiler_wl_GCJ='-Qoption ld '
19599
      lt_prog_compiler_pic_GCJ='-PIC'
19600
      lt_prog_compiler_static_GCJ='-Bstatic'
19601
      ;;
19602
 
19603
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19604
      lt_prog_compiler_wl_GCJ='-Wl,'
19605
      lt_prog_compiler_pic_GCJ='-KPIC'
19606
      lt_prog_compiler_static_GCJ='-Bstatic'
19607
      ;;
19608
 
19609
    sysv4*MP*)
19610
      if test -d /usr/nec ;then
19611
	lt_prog_compiler_pic_GCJ='-Kconform_pic'
19612
	lt_prog_compiler_static_GCJ='-Bstatic'
19613
      fi
19614
      ;;
19615
 
19616
    uts4*)
19617
      lt_prog_compiler_pic_GCJ='-pic'
19618
      lt_prog_compiler_static_GCJ='-Bstatic'
19619
      ;;
19620
 
19621
    *)
19622
      lt_prog_compiler_can_build_shared_GCJ=no
19623
      ;;
19624
    esac
19625
  fi
19626
 
216 andreas 19627
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
19628
$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
88 andreas 19629
 
19630
#
19631
# Check to make sure the PIC flag actually works.
19632
#
19633
if test -n "$lt_prog_compiler_pic_GCJ"; then
19634
 
216 andreas 19635
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
19636
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
88 andreas 19637
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
216 andreas 19638
  $as_echo_n "(cached) " >&6
88 andreas 19639
else
19640
  lt_prog_compiler_pic_works_GCJ=no
19641
  ac_outfile=conftest.$ac_objext
19642
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19643
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
19644
   # Insert the option either (1) after the last *FLAGS variable, or
19645
   # (2) before a word containing "conftest.", or (3) at the end.
19646
   # Note that $ac_compile itself does not contain backslashes and begins
19647
   # with a dollar sign (not a hyphen), so the echo should work correctly.
19648
   # The option is referenced via a variable to avoid confusing sed.
19649
   lt_compile=`echo "$ac_compile" | $SED \
19650
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19651
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19652
   -e 's:$: $lt_compiler_flag:'`
216 andreas 19653
   (eval echo "\"\$as_me:19653: $lt_compile\"" >&5)
88 andreas 19654
   (eval "$lt_compile" 2>conftest.err)
19655
   ac_status=$?
19656
   cat conftest.err >&5
216 andreas 19657
   echo "$as_me:19657: \$? = $ac_status" >&5
88 andreas 19658
   if (exit $ac_status) && test -s "$ac_outfile"; then
19659
     # The compiler can only warn and ignore the option if not recognized
19660
     # So say no if there are warnings
19661
     if test ! -s conftest.err; then
19662
       lt_prog_compiler_pic_works_GCJ=yes
19663
     fi
19664
   fi
19665
   $rm conftest*
19666
 
19667
fi
216 andreas 19668
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
19669
$as_echo "$lt_prog_compiler_pic_works_GCJ" >&6; }
88 andreas 19670
 
19671
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
19672
    case $lt_prog_compiler_pic_GCJ in
19673
     "" | " "*) ;;
19674
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
19675
     esac
19676
else
19677
    lt_prog_compiler_pic_GCJ=
19678
     lt_prog_compiler_can_build_shared_GCJ=no
19679
fi
19680
 
19681
fi
19682
case "$host_os" in
19683
  # For platforms which do not support PIC, -DPIC is meaningless:
19684
  *djgpp*)
19685
    lt_prog_compiler_pic_GCJ=
19686
    ;;
19687
  *)
19688
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
19689
    ;;
19690
esac
19691
 
216 andreas 19692
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19693
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
88 andreas 19694
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
216 andreas 19695
  $as_echo_n "(cached) " >&6
88 andreas 19696
else
19697
  lt_cv_prog_compiler_c_o_GCJ=no
19698
   $rm -r conftest 2>/dev/null
19699
   mkdir conftest
19700
   cd conftest
19701
   mkdir out
19702
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19703
 
19704
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
19705
   # that will create temporary files in the current directory regardless of
19706
   # the output directory.  Thus, making CWD read-only will cause this test
19707
   # to fail, enabling locking or at least warning the user not to do parallel
19708
   # builds.
19709
   chmod -w .
19710
 
19711
   lt_compiler_flag="-o out/conftest2.$ac_objext"
19712
   # Insert the option either (1) after the last *FLAGS variable, or
19713
   # (2) before a word containing "conftest.", or (3) at the end.
19714
   # Note that $ac_compile itself does not contain backslashes and begins
19715
   # with a dollar sign (not a hyphen), so the echo should work correctly.
19716
   lt_compile=`echo "$ac_compile" | $SED \
19717
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19718
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19719
   -e 's:$: $lt_compiler_flag:'`
216 andreas 19720
   (eval echo "\"\$as_me:19720: $lt_compile\"" >&5)
88 andreas 19721
   (eval "$lt_compile" 2>out/conftest.err)
19722
   ac_status=$?
19723
   cat out/conftest.err >&5
216 andreas 19724
   echo "$as_me:19724: \$? = $ac_status" >&5
88 andreas 19725
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
19726
   then
19727
     # The compiler can only warn and ignore the option if not recognized
19728
     # So say no if there are warnings
19729
     if test ! -s out/conftest.err; then
19730
       lt_cv_prog_compiler_c_o_GCJ=yes
19731
     fi
19732
   fi
19733
   chmod u+w .
19734
   $rm conftest* out/*
19735
   rmdir out
19736
   cd ..
19737
   rmdir conftest
19738
   $rm conftest*
19739
 
19740
fi
216 andreas 19741
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
19742
$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
88 andreas 19743
 
19744
 
19745
hard_links="nottested"
19746
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
19747
  # do not overwrite the value of need_locks provided by the user
216 andreas 19748
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19749
$as_echo_n "checking if we can lock with hard links... " >&6; }
88 andreas 19750
  hard_links=yes
19751
  $rm conftest*
19752
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
19753
  touch conftest.a
19754
  ln conftest.a conftest.b 2>&5 || hard_links=no
19755
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
216 andreas 19756
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
19757
$as_echo "$hard_links" >&6; }
88 andreas 19758
  if test "$hard_links" = no; then
216 andreas 19759
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19760
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
88 andreas 19761
    need_locks=warn
19762
  fi
19763
else
19764
  need_locks=no
19765
fi
19766
 
216 andreas 19767
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19768
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
88 andreas 19769
 
19770
  runpath_var=
19771
  allow_undefined_flag_GCJ=
19772
  enable_shared_with_static_runtimes_GCJ=no
19773
  archive_cmds_GCJ=
19774
  archive_expsym_cmds_GCJ=
19775
  old_archive_From_new_cmds_GCJ=
19776
  old_archive_from_expsyms_cmds_GCJ=
19777
  export_dynamic_flag_spec_GCJ=
19778
  whole_archive_flag_spec_GCJ=
19779
  thread_safe_flag_spec_GCJ=
19780
  hardcode_libdir_flag_spec_GCJ=
19781
  hardcode_libdir_flag_spec_ld_GCJ=
19782
  hardcode_libdir_separator_GCJ=
19783
  hardcode_direct_GCJ=no
19784
  hardcode_minus_L_GCJ=no
19785
  hardcode_shlibpath_var_GCJ=unsupported
19786
  link_all_deplibs_GCJ=unknown
19787
  hardcode_automatic_GCJ=no
19788
  module_cmds_GCJ=
19789
  module_expsym_cmds_GCJ=
19790
  always_export_symbols_GCJ=no
19791
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19792
  # include_expsyms should be a list of space-separated symbols to be *always*
19793
  # included in the symbol list
19794
  include_expsyms_GCJ=
19795
  # exclude_expsyms can be an extended regexp of symbols to exclude
19796
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
19797
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19798
  # as well as any symbol that contains `d'.
19799
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
19800
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19801
  # platforms (ab)use it in PIC code, but their linkers get confused if
19802
  # the symbol is explicitly referenced.  Since portable code cannot
19803
  # rely on this symbol name, it's probably fine to never include it in
19804
  # preloaded symbol tables.
19805
  extract_expsyms_cmds=
19806
 
19807
  case $host_os in
19808
  cygwin* | mingw* | pw32*)
19809
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
19810
    # When not using gcc, we currently assume that we are using
19811
    # Microsoft Visual C++.
19812
    if test "$GCC" != yes; then
19813
      with_gnu_ld=no
19814
    fi
19815
    ;;
19816
  openbsd*)
19817
    with_gnu_ld=no
19818
    ;;
19819
  esac
19820
 
19821
  ld_shlibs_GCJ=yes
19822
  if test "$with_gnu_ld" = yes; then
19823
    # If archive_cmds runs LD, not CC, wlarc should be empty
19824
    wlarc='${wl}'
19825
 
19826
    # See if GNU ld supports shared libraries.
19827
    case $host_os in
19828
    aix3* | aix4* | aix5*)
19829
      # On AIX/PPC, the GNU linker is very broken
19830
      if test "$host_cpu" != ia64; then
19831
	ld_shlibs_GCJ=no
19832
	cat <<EOF 1>&2
19833
 
19834
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
19835
*** to be unable to reliably create shared libraries on AIX.
19836
*** Therefore, libtool is disabling shared libraries support.  If you
19837
*** really care for shared libraries, you may want to modify your PATH
19838
*** so that a non-GNU linker is found, and then restart.
19839
 
19840
EOF
19841
      fi
19842
      ;;
19843
 
19844
    amigaos*)
19845
      archive_cmds_GCJ='$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)'
19846
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19847
      hardcode_minus_L_GCJ=yes
19848
 
19849
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19850
      # that the semantics of dynamic libraries on AmigaOS, at least up
19851
      # to version 4, is to share data among multiple programs linked
19852
      # with the same dynamic library.  Since this doesn't match the
19853
      # behavior of shared libraries on other platforms, we can't use
19854
      # them.
19855
      ld_shlibs_GCJ=no
19856
      ;;
19857
 
19858
    beos*)
19859
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19860
	allow_undefined_flag_GCJ=unsupported
19861
	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19862
	# support --undefined.  This deserves some investigation.  FIXME
19863
	archive_cmds_GCJ='$CC -nostart $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
19864
      else
19865
	ld_shlibs_GCJ=no
19866
      fi
19867
      ;;
19868
 
19869
    cygwin* | mingw* | pw32*)
19870
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
19871
      # as there is no search path for DLLs.
19872
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19873
      allow_undefined_flag_GCJ=no
19874
      always_export_symbols_GCJ=no
19875
      enable_shared_with_static_runtimes_GCJ=yes
19876
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19877
 
19878
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19879
        archive_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19880
	# If the export-symbols file already is a .def file (1st line
19881
	# is EXPORTS), use it as is; otherwise, prepend...
19882
	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19883
	  cp $export_symbols $output_objdir/$soname.def;
19884
	else
19885
	  echo EXPORTS > $output_objdir/$soname.def;
19886
	  cat $export_symbols >> $output_objdir/$soname.def;
19887
	fi~
19888
	$CC -shared $output_objdir/$soname.def $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
19889
      else
19890
	ld_shlibs=no
19891
      fi
19892
      ;;
19893
 
19894
    netbsd*)
19895
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19896
	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19897
	wlarc=
19898
      else
19899
	archive_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
19900
	archive_expsym_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19901
      fi
19902
      ;;
19903
 
19904
    solaris* | sysv5*)
19905
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19906
	ld_shlibs_GCJ=no
19907
	cat <<EOF 1>&2
19908
 
19909
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
19910
*** create shared libraries on Solaris systems.  Therefore, libtool
19911
*** is disabling shared libraries support.  We urge you to upgrade GNU
19912
*** binutils to release 2.9.1 or newer.  Another option is to modify
19913
*** your PATH or compiler configuration so that the native linker is
19914
*** used, and then restart.
19915
 
19916
EOF
19917
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19918
	archive_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
19919
	archive_expsym_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19920
      else
19921
	ld_shlibs_GCJ=no
19922
      fi
19923
      ;;
19924
 
19925
    sunos4*)
19926
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19927
      wlarc=
19928
      hardcode_direct_GCJ=yes
19929
      hardcode_shlibpath_var_GCJ=no
19930
      ;;
19931
 
19932
    *)
19933
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19934
	archive_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
19935
	archive_expsym_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19936
      else
19937
	ld_shlibs_GCJ=no
19938
      fi
19939
      ;;
19940
    esac
19941
 
19942
    if test "$ld_shlibs_GCJ" = yes; then
19943
      runpath_var=LD_RUN_PATH
19944
      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
19945
      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
19946
      # ancient GNU ld didn't support --whole-archive et. al.
19947
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19948
 	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19949
      else
19950
  	whole_archive_flag_spec_GCJ=
19951
      fi
19952
    fi
19953
  else
19954
    # PORTME fill in a description of your system's linker (not GNU ld)
19955
    case $host_os in
19956
    aix3*)
19957
      allow_undefined_flag_GCJ=unsupported
19958
      always_export_symbols_GCJ=yes
19959
      archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
19960
      # Note: this linker hardcodes the directories in LIBPATH if there
19961
      # are no directories specified by -L.
19962
      hardcode_minus_L_GCJ=yes
19963
      if test "$GCC" = yes && test -z "$link_static_flag"; then
19964
	# Neither direct hardcoding nor static linking is supported with a
19965
	# broken collect2.
19966
	hardcode_direct_GCJ=unsupported
19967
      fi
19968
      ;;
19969
 
19970
    aix4* | aix5*)
19971
      if test "$host_cpu" = ia64; then
19972
	# On IA64, the linker does run time linking by default, so we don't
19973
	# have to do anything special.
19974
	aix_use_runtimelinking=no
19975
	exp_sym_flag='-Bexport'
19976
	no_entry_flag=""
19977
      else
19978
	# If we're using GNU nm, then we don't want the "-C" option.
19979
	# -C means demangle to AIX nm, but means don't demangle with GNU nm
19980
	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19981
	  export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
19982
	else
19983
	  export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
19984
	fi
19985
 
19986
	# KDE requires run time linking.  Make it the default.
19987
	aix_use_runtimelinking=yes
19988
	exp_sym_flag='-bexport'
19989
	no_entry_flag='-bnoentry'
19990
      fi
19991
 
19992
      # When large executables or shared objects are built, AIX ld can
19993
      # have problems creating the table of contents.  If linking a library
19994
      # or program results in "error TOC overflow" add -mminimal-toc to
19995
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19996
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19997
 
19998
      archive_cmds_GCJ=''
19999
      hardcode_direct_GCJ=yes
20000
      hardcode_libdir_separator_GCJ=':'
20001
      link_all_deplibs_GCJ=yes
20002
 
20003
      if test "$GCC" = yes; then
20004
	case $host_os in aix4.012|aix4.012.*)
20005
	# We only want to do this on AIX 4.2 and lower, the check
20006
	# below for broken collect2 doesn't work under 4.3+
20007
	  collect2name=`${CC} -print-prog-name=collect2`
20008
	  if test -f "$collect2name" && \
20009
  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
20010
	  then
20011
  	  # We have reworked collect2
20012
  	  hardcode_direct_GCJ=yes
20013
	  else
20014
  	  # We have old collect2
20015
  	  hardcode_direct_GCJ=unsupported
20016
  	  # It fails to find uninstalled libraries when the uninstalled
20017
  	  # path is not listed in the libpath.  Setting hardcode_minus_L
20018
  	  # to unsupported forces relinking
20019
  	  hardcode_minus_L_GCJ=yes
20020
  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
20021
  	  hardcode_libdir_separator_GCJ=
20022
	  fi
20023
	esac
20024
	shared_flag='-shared'
20025
      else
20026
	# not using gcc
20027
	if test "$host_cpu" = ia64; then
20028
  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20029
  	# chokes on -Wl,-G. The following line is correct:
20030
	  shared_flag='-G'
20031
	else
20032
  	if test "$aix_use_runtimelinking" = yes; then
20033
	    shared_flag='-qmkshrobj ${wl}-G'
20034
	  else
20035
	    shared_flag='-qmkshrobj'
20036
  	fi
20037
	fi
20038
      fi
20039
 
20040
      # Let the compiler handle the export list.
20041
      always_export_symbols_GCJ=no
20042
      if test "$aix_use_runtimelinking" = yes; then
20043
	# Warning - without using the other runtime loading flags (-brtl),
20044
	# -berok will link without error, but may produce a broken library.
20045
	allow_undefined_flag_GCJ='-berok'
20046
       # Determine the default libpath from the value encoded in an empty executable.
20047
	cat >conftest.$ac_ext <<_ACEOF
20048
/* confdefs.h.  */
20049
_ACEOF
20050
cat confdefs.h >>conftest.$ac_ext
20051
cat >>conftest.$ac_ext <<_ACEOF
20052
/* end confdefs.h.  */
20053
 
20054
int
20055
main ()
20056
{
20057
 
20058
  ;
20059
  return 0;
20060
}
20061
_ACEOF
20062
rm -f conftest.$ac_objext conftest$ac_exeext
20063
if { (ac_try="$ac_link"
20064
case "(($ac_try" in
20065
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20066
  *) ac_try_echo=$ac_try;;
20067
esac
216 andreas 20068
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20069
$as_echo "$ac_try_echo") >&5
88 andreas 20070
  (eval "$ac_link") 2>conftest.er1
20071
  ac_status=$?
20072
  grep -v '^ *+' conftest.er1 >conftest.err
20073
  rm -f conftest.er1
20074
  cat conftest.err >&5
216 andreas 20075
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 20076
  (exit $ac_status); } && {
20077
	 test -z "$ac_c_werror_flag" ||
20078
	 test ! -s conftest.err
216 andreas 20079
       } && test -s conftest$ac_exeext && {
20080
	 test "$cross_compiling" = yes ||
20081
	 $as_test_x conftest$ac_exeext
20082
       }; then
88 andreas 20083
 
20084
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
20085
}'`
20086
# Check for a 64-bit object if we didn't find anything.
20087
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
20088
}'`; fi
20089
else
216 andreas 20090
  $as_echo "$as_me: failed program was:" >&5
88 andreas 20091
sed 's/^/| /' conftest.$ac_ext >&5
20092
 
20093
 
20094
fi
20095
 
216 andreas 20096
rm -rf conftest.dSYM
88 andreas 20097
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20098
      conftest$ac_exeext conftest.$ac_ext
20099
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20100
 
20101
	hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
20102
	archive_cmds_GCJ="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
20103
	archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
20104
       else
20105
	if test "$host_cpu" = ia64; then
20106
	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
20107
	  allow_undefined_flag_GCJ="-z nodefs"
20108
	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
20109
	else
20110
	 # Determine the default libpath from the value encoded in an empty executable.
20111
	 cat >conftest.$ac_ext <<_ACEOF
20112
/* confdefs.h.  */
20113
_ACEOF
20114
cat confdefs.h >>conftest.$ac_ext
20115
cat >>conftest.$ac_ext <<_ACEOF
20116
/* end confdefs.h.  */
20117
 
20118
int
20119
main ()
20120
{
20121
 
20122
  ;
20123
  return 0;
20124
}
20125
_ACEOF
20126
rm -f conftest.$ac_objext conftest$ac_exeext
20127
if { (ac_try="$ac_link"
20128
case "(($ac_try" in
20129
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20130
  *) ac_try_echo=$ac_try;;
20131
esac
216 andreas 20132
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20133
$as_echo "$ac_try_echo") >&5
88 andreas 20134
  (eval "$ac_link") 2>conftest.er1
20135
  ac_status=$?
20136
  grep -v '^ *+' conftest.er1 >conftest.err
20137
  rm -f conftest.er1
20138
  cat conftest.err >&5
216 andreas 20139
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 20140
  (exit $ac_status); } && {
20141
	 test -z "$ac_c_werror_flag" ||
20142
	 test ! -s conftest.err
216 andreas 20143
       } && test -s conftest$ac_exeext && {
20144
	 test "$cross_compiling" = yes ||
20145
	 $as_test_x conftest$ac_exeext
20146
       }; then
88 andreas 20147
 
20148
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
20149
}'`
20150
# Check for a 64-bit object if we didn't find anything.
20151
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
20152
}'`; fi
20153
else
216 andreas 20154
  $as_echo "$as_me: failed program was:" >&5
88 andreas 20155
sed 's/^/| /' conftest.$ac_ext >&5
20156
 
20157
 
20158
fi
20159
 
216 andreas 20160
rm -rf conftest.dSYM
88 andreas 20161
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20162
      conftest$ac_exeext conftest.$ac_ext
20163
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20164
 
20165
	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
20166
	  # Warning - without using the other run time loading flags,
20167
	  # -berok will link without error, but may produce a broken library.
20168
	  no_undefined_flag_GCJ=' ${wl}-bernotok'
20169
	  allow_undefined_flag_GCJ=' ${wl}-berok'
20170
	  # -bexpall does not export symbols beginning with underscore (_)
20171
	  always_export_symbols_GCJ=yes
20172
	  # Exported symbols can be pulled into shared objects from archives
20173
	  whole_archive_flag_spec_GCJ=' '
20174
	  archive_cmds_need_lc_GCJ=yes
20175
	  # This is similar to how AIX traditionally builds it's shared libraries.
20176
	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
20177
	fi
20178
      fi
20179
      ;;
20180
 
20181
    amigaos*)
20182
      archive_cmds_GCJ='$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)'
20183
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
20184
      hardcode_minus_L_GCJ=yes
20185
      # see comment about different semantics on the GNU ld section
20186
      ld_shlibs_GCJ=no
20187
      ;;
20188
 
20189
    bsdi4*)
20190
      export_dynamic_flag_spec_GCJ=-rdynamic
20191
      ;;
20192
 
20193
    cygwin* | mingw* | pw32*)
20194
      # When not using gcc, we currently assume that we are using
20195
      # Microsoft Visual C++.
20196
      # hardcode_libdir_flag_spec is actually meaningless, as there is
20197
      # no search path for DLLs.
20198
      hardcode_libdir_flag_spec_GCJ=' '
20199
      allow_undefined_flag_GCJ=no
20200
      # Tell ltmain to make .lib files, not .a files.
20201
      libext=lib
20202
      # Tell ltmain to make .dll files, not .so files.
20203
      shrext=".dll"
20204
      # FIXME: Setting linknames here is a bad hack.
20205
      archive_cmds_GCJ='$CC -o $lib $compiler_flags $libobjs `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
20206
      # The linker will automatically build a .lib file if we build a DLL.
20207
      old_archive_From_new_cmds_GCJ='true'
20208
      # FIXME: Should let the user specify the lib program.
20209
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
20210
      fix_srcfile_path='`cygpath -w "$srcfile"`'
20211
      enable_shared_with_static_runtimes_GCJ=yes
20212
      ;;
20213
 
20214
    darwin* | rhapsody*)
20215
    if test "$GXX" = yes ; then
20216
      archive_cmds_need_lc_GCJ=no
20217
      case "$host_os" in
20218
      rhapsody* | darwin1.[012])
20219
	allow_undefined_flag_GCJ='-Wl,-undefined -Wl,suppress'
20220
	;;
20221
      *) # Darwin 1.3 on
20222
	if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
20223
	  allow_undefined_flag_GCJ='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
20224
	else
20225
	  case ${MACOSX_DEPLOYMENT_TARGET} in
20226
	    10.012)
20227
	      allow_undefined_flag_GCJ='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
20228
	      ;;
20229
	    10.*)
20230
	      allow_undefined_flag_GCJ='-Wl,-undefined -Wl,dynamic_lookup'
20231
	      ;;
20232
	  esac
20233
	fi
20234
	;;
20235
      esac
20236
    	lt_int_apple_cc_single_mod=no
20237
    	output_verbose_link_cmd='echo'
20238
    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
20239
    	  lt_int_apple_cc_single_mod=yes
20240
    	fi
20241
    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
20242
    	  archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
20243
    	else
20244
        archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring'
20245
      fi
20246
      module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
20247
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
20248
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
20249
          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
20250
        else
20251
          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
20252
        fi
20253
          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
20254
      hardcode_direct_GCJ=no
20255
      hardcode_automatic_GCJ=yes
20256
      hardcode_shlibpath_var_GCJ=unsupported
20257
      whole_archive_flag_spec_GCJ='-all_load $convenience'
20258
      link_all_deplibs_GCJ=yes
20259
    else
20260
      ld_shlibs_GCJ=no
20261
    fi
20262
      ;;
20263
 
20264
    dgux*)
20265
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20266
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
20267
      hardcode_shlibpath_var_GCJ=no
20268
      ;;
20269
 
20270
    freebsd1*)
20271
      ld_shlibs_GCJ=no
20272
      ;;
20273
 
20274
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
20275
    # support.  Future versions do this automatically, but an explicit c++rt0.o
20276
    # does not break anything, and helps significantly (at the cost of a little
20277
    # extra space).
20278
    freebsd2.2*)
20279
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
20280
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
20281
      hardcode_direct_GCJ=yes
20282
      hardcode_shlibpath_var_GCJ=no
20283
      ;;
20284
 
20285
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
20286
    freebsd2*)
20287
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20288
      hardcode_direct_GCJ=yes
20289
      hardcode_minus_L_GCJ=yes
20290
      hardcode_shlibpath_var_GCJ=no
20291
      ;;
20292
 
20293
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
20294
    freebsd* | kfreebsd*-gnu)
20295
      archive_cmds_GCJ='$CC -shared -o $lib $compiler_flags $libobjs $deplibs'
20296
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
20297
      hardcode_direct_GCJ=yes
20298
      hardcode_shlibpath_var_GCJ=no
20299
      ;;
20300
 
20301
    hpux9*)
20302
      if test "$GCC" = yes; then
20303
	archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $libobjs $deplibs~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
20304
      else
20305
	archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
20306
      fi
20307
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
20308
      hardcode_libdir_separator_GCJ=:
20309
      hardcode_direct_GCJ=yes
20310
 
20311
      # hardcode_minus_L: Not really in the search PATH,
20312
      # but as the default location of the library.
20313
      hardcode_minus_L_GCJ=yes
20314
      export_dynamic_flag_spec_GCJ='${wl}-E'
20315
      ;;
20316
 
20317
    hpux10* | hpux11*)
20318
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
20319
	case "$host_cpu" in
20320
	hppa*64*|ia64*)
20321
	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
20322
	  ;;
20323
	*)
20324
	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $libobjs $deplibs'
20325
	  ;;
20326
	esac
20327
      else
20328
	case "$host_cpu" in
20329
	hppa*64*|ia64*)
20330
	  archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
20331
	  ;;
20332
	*)
20333
	  archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
20334
	  ;;
20335
	esac
20336
      fi
20337
      if test "$with_gnu_ld" = no; then
20338
	case "$host_cpu" in
20339
	hppa*64*)
20340
	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
20341
	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
20342
	  hardcode_libdir_separator_GCJ=:
20343
	  hardcode_direct_GCJ=no
20344
	  hardcode_shlibpath_var_GCJ=no
20345
	  ;;
20346
	ia64*)
20347
	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
20348
	  hardcode_direct_GCJ=no
20349
	  hardcode_shlibpath_var_GCJ=no
20350
 
20351
	  # hardcode_minus_L: Not really in the search PATH,
20352
	  # but as the default location of the library.
20353
	  hardcode_minus_L_GCJ=yes
20354
	  ;;
20355
	*)
20356
	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
20357
	  hardcode_libdir_separator_GCJ=:
20358
	  hardcode_direct_GCJ=yes
20359
	  export_dynamic_flag_spec_GCJ='${wl}-E'
20360
 
20361
	  # hardcode_minus_L: Not really in the search PATH,
20362
	  # but as the default location of the library.
20363
	  hardcode_minus_L_GCJ=yes
20364
	  ;;
20365
	esac
20366
      fi
20367
      ;;
20368
 
20369
    irix5* | irix6* | nonstopux*)
20370
      if test "$GCC" = yes; then
20371
	archive_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
20372
      else
20373
	archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
20374
	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
20375
      fi
20376
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20377
      hardcode_libdir_separator_GCJ=:
20378
      link_all_deplibs_GCJ=yes
20379
      ;;
20380
 
20381
    netbsd*)
20382
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20383
	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
20384
      else
20385
	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
20386
      fi
20387
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
20388
      hardcode_direct_GCJ=yes
20389
      hardcode_shlibpath_var_GCJ=no
20390
      ;;
20391
 
20392
    newsos6)
20393
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20394
      hardcode_direct_GCJ=yes
20395
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20396
      hardcode_libdir_separator_GCJ=:
20397
      hardcode_shlibpath_var_GCJ=no
20398
      ;;
20399
 
20400
    openbsd*)
20401
      hardcode_direct_GCJ=yes
20402
      hardcode_shlibpath_var_GCJ=no
20403
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20404
	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
20405
	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
20406
	export_dynamic_flag_spec_GCJ='${wl}-E'
20407
      else
20408
       case $host_os in
20409
	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
20410
	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20411
	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
20412
	   ;;
20413
	 *)
20414
	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
20415
	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
20416
	   ;;
20417
       esac
20418
      fi
20419
      ;;
20420
 
20421
    os2*)
20422
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
20423
      hardcode_minus_L_GCJ=yes
20424
      allow_undefined_flag_GCJ=unsupported
20425
      archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $compiler_flags $libobjs $deplibs$output_objdir/$libname.def'
20426
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
20427
      ;;
20428
 
20429
    osf3*)
20430
      if test "$GCC" = yes; then
20431
	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
20432
	archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
20433
      else
20434
	allow_undefined_flag_GCJ=' -expect_unresolved \*'
20435
	archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
20436
      fi
20437
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20438
      hardcode_libdir_separator_GCJ=:
20439
      ;;
20440
 
20441
    osf4* | osf5*)	# as osf3* with the addition of -msym flag
20442
      if test "$GCC" = yes; then
20443
	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
20444
	archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
20445
	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20446
      else
20447
	allow_undefined_flag_GCJ=' -expect_unresolved \*'
20448
	archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
20449
	archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
20450
	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
20451
 
20452
	# Both c and cxx compiler support -rpath directly
20453
	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
20454
      fi
20455
      hardcode_libdir_separator_GCJ=:
20456
      ;;
20457
 
20458
    sco3.2v5*)
20459
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20460
      hardcode_shlibpath_var_GCJ=no
20461
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
20462
      runpath_var=LD_RUN_PATH
20463
      hardcode_runpath_var=yes
20464
      ;;
20465
 
20466
    solaris*)
20467
      no_undefined_flag_GCJ=' -z text'
20468
      if test "$GCC" = yes; then
20469
	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
20470
	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20471
	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs~$rm $lib.exp'
20472
      else
20473
	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20474
	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20475
  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20476
      fi
20477
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
20478
      hardcode_shlibpath_var_GCJ=no
20479
      case $host_os in
20480
      solaris2.[0-5] | solaris2.[0-5].*) ;;
20481
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
20482
	whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
20483
      esac
20484
      link_all_deplibs_GCJ=yes
20485
      ;;
20486
 
20487
    sunos4*)
20488
      if test "x$host_vendor" = xsequent; then
20489
	# Use $CC to link under sequent, because it throws in some extra .o
20490
	# files that make .init and .fini sections work.
20491
	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $compiler_flags $libobjs $deplibs'
20492
      else
20493
	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20494
      fi
20495
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
20496
      hardcode_direct_GCJ=yes
20497
      hardcode_minus_L_GCJ=yes
20498
      hardcode_shlibpath_var_GCJ=no
20499
      ;;
20500
 
20501
    sysv4)
20502
      case $host_vendor in
20503
	sni)
20504
	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20505
	  hardcode_direct_GCJ=yes # is this really true???
20506
	;;
20507
	siemens)
20508
	  ## LD is ld it makes a PLAMLIB
20509
	  ## CC just makes a GrossModule.
20510
	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20511
	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
20512
	  hardcode_direct_GCJ=no
20513
        ;;
20514
	motorola)
20515
	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20516
	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
20517
	;;
20518
      esac
20519
      runpath_var='LD_RUN_PATH'
20520
      hardcode_shlibpath_var_GCJ=no
20521
      ;;
20522
 
20523
    sysv4.3*)
20524
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20525
      hardcode_shlibpath_var_GCJ=no
20526
      export_dynamic_flag_spec_GCJ='-Bexport'
20527
      ;;
20528
 
20529
    sysv4*MP*)
20530
      if test -d /usr/nec; then
20531
	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20532
	hardcode_shlibpath_var_GCJ=no
20533
	runpath_var=LD_RUN_PATH
20534
	hardcode_runpath_var=yes
20535
	ld_shlibs_GCJ=yes
20536
      fi
20537
      ;;
20538
 
20539
    sysv4.2uw2*)
20540
      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20541
      hardcode_direct_GCJ=yes
20542
      hardcode_minus_L_GCJ=no
20543
      hardcode_shlibpath_var_GCJ=no
20544
      hardcode_runpath_var=yes
20545
      runpath_var=LD_RUN_PATH
20546
      ;;
20547
 
20548
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
20549
      no_undefined_flag_GCJ='${wl}-z ${wl}text'
20550
      if test "$GCC" = yes; then
20551
	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
20552
      else
20553
	archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
20554
      fi
20555
      runpath_var='LD_RUN_PATH'
20556
      hardcode_shlibpath_var_GCJ=no
20557
      ;;
20558
 
20559
    sysv5*)
20560
      no_undefined_flag_GCJ=' -z text'
20561
      # $CC -shared without GNU ld will not create a library from C++
20562
      # object files and a static libstdc++, better avoid it by now
20563
      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20564
      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20565
  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20566
      hardcode_libdir_flag_spec_GCJ=
20567
      hardcode_shlibpath_var_GCJ=no
20568
      runpath_var='LD_RUN_PATH'
20569
      ;;
20570
 
20571
    uts4*)
20572
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20573
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
20574
      hardcode_shlibpath_var_GCJ=no
20575
      ;;
20576
 
20577
    *)
20578
      ld_shlibs_GCJ=no
20579
      ;;
20580
    esac
20581
  fi
20582
 
216 andreas 20583
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
20584
$as_echo "$ld_shlibs_GCJ" >&6; }
88 andreas 20585
test "$ld_shlibs_GCJ" = no && can_build_shared=no
20586
 
20587
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20588
if test "$GCC" = yes; then
20589
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20590
fi
20591
 
20592
#
20593
# Do we need to explicitly link libc?
20594
#
20595
case "x$archive_cmds_need_lc_GCJ" in
20596
x|xyes)
20597
  # Assume -lc should be added
20598
  archive_cmds_need_lc_GCJ=yes
20599
 
20600
  if test "$enable_shared" = yes && test "$GCC" = yes; then
20601
    case $archive_cmds_GCJ in
20602
    *'~'*)
20603
      # FIXME: we may have to deal with multi-command sequences.
20604
      ;;
20605
    '$CC '*)
20606
      # Test whether the compiler implicitly links with -lc since on some
20607
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
20608
      # to ld, don't add -lc before -lgcc.
216 andreas 20609
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20610
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
88 andreas 20611
      $rm conftest*
20612
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20613
 
20614
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20615
  (eval $ac_compile) 2>&5
20616
  ac_status=$?
216 andreas 20617
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 20618
  (exit $ac_status); } 2>conftest.err; then
20619
        soname=conftest
20620
        lib=conftest
20621
        libobjs=conftest.$ac_objext
20622
        deplibs=
20623
        wl=$lt_prog_compiler_wl_GCJ
20624
        compiler_flags=-v
20625
        linker_flags=-v
20626
        verstring=
20627
        output_objdir=.
20628
        libname=conftest
20629
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
20630
        allow_undefined_flag_GCJ=
20631
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20632
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20633
  ac_status=$?
216 andreas 20634
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 20635
  (exit $ac_status); }
20636
        then
20637
	  archive_cmds_need_lc_GCJ=no
20638
        else
20639
	  archive_cmds_need_lc_GCJ=yes
20640
        fi
20641
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
20642
      else
20643
        cat conftest.err 1>&5
20644
      fi
20645
      $rm conftest*
216 andreas 20646
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
20647
$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
88 andreas 20648
      ;;
20649
    esac
20650
  fi
20651
  ;;
20652
esac
20653
 
216 andreas 20654
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20655
$as_echo_n "checking dynamic linker characteristics... " >&6; }
88 andreas 20656
library_names_spec=
20657
libname_spec='lib$name'
20658
soname_spec=
20659
shrext=".so"
20660
postinstall_cmds=
20661
postuninstall_cmds=
20662
finish_cmds=
20663
finish_eval=
20664
shlibpath_var=
20665
shlibpath_overrides_runpath=unknown
20666
version_type=none
20667
dynamic_linker="$host_os ld.so"
20668
sys_lib_dlsearch_path_spec="/lib /usr/lib"
20669
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20670
need_lib_prefix=unknown
20671
hardcode_into_libs=no
20672
 
20673
# when you set need_version to no, make sure it does not cause -set_version
20674
# flags to be left without arguments
20675
need_version=unknown
20676
 
20677
case $host_os in
20678
aix3*)
20679
  version_type=linux
20680
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20681
  shlibpath_var=LIBPATH
20682
 
20683
  # AIX 3 has no versioning support, so we append a major version to the name.
20684
  soname_spec='${libname}${release}${shared_ext}$major'
20685
  ;;
20686
 
20687
aix4* | aix5*)
20688
  version_type=linux
20689
  need_lib_prefix=no
20690
  need_version=no
20691
  hardcode_into_libs=yes
20692
  if test "$host_cpu" = ia64; then
20693
    # AIX 5 supports IA64
20694
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20695
    shlibpath_var=LD_LIBRARY_PATH
20696
  else
20697
    # With GCC up to 2.95.x, collect2 would create an import file
20698
    # for dependence libraries.  The import file would start with
20699
    # the line `#! .'.  This would cause the generated library to
20700
    # depend on `.', always an invalid library.  This was fixed in
20701
    # development snapshots of GCC prior to 3.0.
20702
    case $host_os in
20703
      aix4 | aix4.[01] | aix4.[01].*)
20704
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20705
	   echo ' yes '
20706
	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20707
	:
20708
      else
20709
	can_build_shared=no
20710
      fi
20711
      ;;
20712
    esac
20713
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20714
    # soname into executable. Probably we can add versioning support to
20715
    # collect2, so additional links can be useful in future.
20716
    if test "$aix_use_runtimelinking" = yes; then
20717
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20718
      # instead of lib<name>.a to let people know that these are not
20719
      # typical AIX shared libraries.
20720
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20721
    else
20722
      # We preserve .a as extension for shared libraries through AIX4.2
20723
      # and later when we are not doing run time linking.
20724
      library_names_spec='${libname}${release}.a $libname.a'
20725
      soname_spec='${libname}${release}${shared_ext}$major'
20726
    fi
20727
    shlibpath_var=LIBPATH
20728
  fi
20729
  ;;
20730
 
20731
amigaos*)
20732
  library_names_spec='$libname.ixlibrary $libname.a'
20733
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
20734
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
20735
  ;;
20736
 
20737
beos*)
20738
  library_names_spec='${libname}${shared_ext}'
20739
  dynamic_linker="$host_os ld.so"
20740
  shlibpath_var=LIBRARY_PATH
20741
  ;;
20742
 
20743
bsdi4*)
20744
  version_type=linux
20745
  need_version=no
20746
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20747
  soname_spec='${libname}${release}${shared_ext}$major'
20748
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20749
  shlibpath_var=LD_LIBRARY_PATH
20750
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20751
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20752
  # the default ld.so.conf also contains /usr/contrib/lib and
20753
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20754
  # libtool to hard-code these into programs
20755
  ;;
20756
 
20757
cygwin* | mingw* | pw32*)
20758
  version_type=windows
20759
  shrext=".dll"
20760
  need_version=no
20761
  need_lib_prefix=no
20762
 
20763
  case $GCC,$host_os in
20764
  yes,cygwin* | yes,mingw* | yes,pw32*)
20765
    library_names_spec='$libname.dll.a'
20766
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
20767
    postinstall_cmds='base_file=`basename \${file}`~
20768
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20769
      dldir=$destdir/`dirname \$dlpath`~
20770
      test -d \$dldir || mkdir -p \$dldir~
20771
      $install_prog $dir/$dlname \$dldir/$dlname'
20772
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20773
      dlpath=$dir/\$dldll~
20774
       $rm \$dlpath'
20775
    shlibpath_overrides_runpath=yes
20776
 
20777
    case $host_os in
20778
    cygwin*)
20779
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20780
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20781
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20782
      ;;
20783
    mingw*)
20784
      # MinGW DLLs use traditional 'lib' prefix
20785
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20786
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20787
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20788
        # It is most probably a Windows format PATH printed by
20789
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
20790
        # path with ; separators, and with drive letters. We can handle the
20791
        # drive letters (cygwin fileutils understands them), so leave them,
20792
        # especially as we might pass files found there to a mingw objdump,
20793
        # which wouldn't understand a cygwinified path. Ahh.
20794
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20795
      else
20796
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20797
      fi
20798
      ;;
20799
    pw32*)
20800
      # pw32 DLLs use 'pw' prefix rather than 'lib'
20801
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20802
      ;;
20803
    esac
20804
    ;;
20805
 
20806
  *)
20807
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20808
    ;;
20809
  esac
20810
  dynamic_linker='Win32 ld.exe'
20811
  # FIXME: first we should search . and the directory the executable is in
20812
  shlibpath_var=PATH
20813
  ;;
20814
 
20815
darwin* | rhapsody*)
20816
  dynamic_linker="$host_os dyld"
20817
  version_type=darwin
20818
  need_lib_prefix=no
20819
  need_version=no
20820
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20821
  soname_spec='${libname}${release}${major}$shared_ext'
20822
  shlibpath_overrides_runpath=yes
20823
  shlibpath_var=DYLD_LIBRARY_PATH
20824
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
20825
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20826
  if test "$GCC" = yes; then
20827
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
20828
  else
20829
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20830
  fi
20831
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20832
  ;;
20833
 
20834
dgux*)
20835
  version_type=linux
20836
  need_lib_prefix=no
20837
  need_version=no
20838
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20839
  soname_spec='${libname}${release}${shared_ext}$major'
20840
  shlibpath_var=LD_LIBRARY_PATH
20841
  ;;
20842
 
20843
freebsd1*)
20844
  dynamic_linker=no
20845
  ;;
20846
 
20847
kfreebsd*-gnu*)
20848
  version_type=linux
20849
  need_lib_prefix=no
20850
  need_version=no
20851
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20852
  soname_spec='${libname}${release}${shared_ext}$major'
20853
  shlibpath_var=LD_LIBRARY_PATH
20854
  shlibpath_overrides_runpath=no
20855
  hardcode_into_libs=yes
20856
  dynamic_linker='GNU ld.so'
20857
  ;;
20858
 
20859
freebsd*)
20860
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20861
  version_type=freebsd-$objformat
20862
  case $version_type in
20863
    freebsd-elf*)
20864
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20865
      need_version=no
20866
      need_lib_prefix=no
20867
      ;;
20868
    freebsd-*)
20869
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20870
      need_version=yes
20871
      ;;
20872
  esac
20873
  shlibpath_var=LD_LIBRARY_PATH
20874
  case $host_os in
20875
  freebsd2*)
20876
    shlibpath_overrides_runpath=yes
20877
    ;;
20878
  freebsd3.01* | freebsdelf3.01*)
20879
    shlibpath_overrides_runpath=yes
20880
    hardcode_into_libs=yes
20881
    ;;
20882
  *) # from 3.2 on
20883
    shlibpath_overrides_runpath=no
20884
    hardcode_into_libs=yes
20885
    ;;
20886
  esac
20887
  ;;
20888
 
20889
gnu*)
20890
  version_type=linux
20891
  need_lib_prefix=no
20892
  need_version=no
20893
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20894
  soname_spec='${libname}${release}${shared_ext}$major'
20895
  shlibpath_var=LD_LIBRARY_PATH
20896
  hardcode_into_libs=yes
20897
  ;;
20898
 
20899
hpux9* | hpux10* | hpux11*)
20900
  # Give a soname corresponding to the major version so that dld.sl refuses to
20901
  # link against other versions.
20902
  version_type=sunos
20903
  need_lib_prefix=no
20904
  need_version=no
20905
  case "$host_cpu" in
20906
  ia64*)
20907
    shrext='.so'
20908
    hardcode_into_libs=yes
20909
    dynamic_linker="$host_os dld.so"
20910
    shlibpath_var=LD_LIBRARY_PATH
20911
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20912
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20913
    soname_spec='${libname}${release}${shared_ext}$major'
20914
    if test "X$HPUX_IA64_MODE" = X32; then
20915
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20916
    else
20917
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20918
    fi
20919
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20920
    ;;
20921
   hppa*64*)
20922
     shrext='.sl'
20923
     hardcode_into_libs=yes
20924
     dynamic_linker="$host_os dld.sl"
20925
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20926
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20927
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20928
     soname_spec='${libname}${release}${shared_ext}$major'
20929
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20930
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20931
     ;;
20932
   *)
20933
    shrext='.sl'
20934
    dynamic_linker="$host_os dld.sl"
20935
    shlibpath_var=SHLIB_PATH
20936
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20937
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20938
    soname_spec='${libname}${release}${shared_ext}$major'
20939
    ;;
20940
  esac
20941
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
20942
  postinstall_cmds='chmod 555 $lib'
20943
  ;;
20944
 
20945
irix5* | irix6* | nonstopux*)
20946
  case $host_os in
20947
    nonstopux*) version_type=nonstopux ;;
20948
    *)
20949
	if test "$lt_cv_prog_gnu_ld" = yes; then
20950
		version_type=linux
20951
	else
20952
		version_type=irix
20953
	fi ;;
20954
  esac
20955
  need_lib_prefix=no
20956
  need_version=no
20957
  soname_spec='${libname}${release}${shared_ext}$major'
20958
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20959
  case $host_os in
20960
  irix5* | nonstopux*)
20961
    libsuff= shlibsuff=
20962
    ;;
20963
  *)
20964
    case $LD in # libtool.m4 will add one of these switches to LD
20965
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20966
      libsuff= shlibsuff= libmagic=32-bit;;
20967
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20968
      libsuff=32 shlibsuff=N32 libmagic=N32;;
20969
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20970
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
20971
    *) libsuff= shlibsuff= libmagic=never-match;;
20972
    esac
20973
    ;;
20974
  esac
20975
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20976
  shlibpath_overrides_runpath=no
20977
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20978
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20979
  hardcode_into_libs=yes
20980
  ;;
20981
 
20982
# No shared lib support for Linux oldld, aout, or coff.
20983
linux*oldld* | linux*aout* | linux*coff*)
20984
  dynamic_linker=no
20985
  ;;
20986
 
20987
# This must be Linux ELF.
20988
linux*)
20989
  version_type=linux
20990
  need_lib_prefix=no
20991
  need_version=no
20992
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20993
  soname_spec='${libname}${release}${shared_ext}$major'
20994
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20995
  libsuff=
20996
  if test "x$LINUX_64_MODE" = x64; then
20997
    # Some platforms are per default 64-bit, so there's no /lib64
20998
    if test -d /lib64 -a ! -h /lib64; then
20999
      libsuff=64
21000
    fi
21001
  fi
21002
  shlibpath_var=LD_LIBRARY_PATH
21003
  shlibpath_overrides_runpath=no
21004
  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
21005
  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
21006
  # This implies no fast_install, which is unacceptable.
21007
  # Some rework will be needed to allow for fast_install
21008
  # before this can be enabled.
21009
  hardcode_into_libs=yes
21010
 
21011
  # We used to test for /lib/ld.so.1 and disable shared libraries on
21012
  # powerpc, because MkLinux only supported shared libraries with the
21013
  # GNU dynamic linker.  Since this was broken with cross compilers,
21014
  # most powerpc-linux boxes support dynamic linking these days and
21015
  # people can always --disable-shared, the test was removed, and we
21016
  # assume the GNU/Linux dynamic linker is in use.
21017
  dynamic_linker='GNU/Linux ld.so'
21018
  ;;
21019
 
21020
netbsd*)
21021
  version_type=sunos
21022
  need_lib_prefix=no
21023
  need_version=no
21024
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21025
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21026
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21027
    dynamic_linker='NetBSD (a.out) ld.so'
21028
  else
21029
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
21030
    soname_spec='${libname}${release}${shared_ext}$major'
21031
    dynamic_linker='NetBSD ld.elf_so'
21032
  fi
21033
  shlibpath_var=LD_LIBRARY_PATH
21034
  shlibpath_overrides_runpath=yes
21035
  hardcode_into_libs=yes
21036
  ;;
21037
 
21038
newsos6)
21039
  version_type=linux
21040
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21041
  shlibpath_var=LD_LIBRARY_PATH
21042
  shlibpath_overrides_runpath=yes
21043
  ;;
21044
 
21045
nto-qnx*)
21046
  version_type=linux
21047
  need_lib_prefix=no
21048
  need_version=no
21049
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21050
  soname_spec='${libname}${release}${shared_ext}$major'
21051
  shlibpath_var=LD_LIBRARY_PATH
21052
  shlibpath_overrides_runpath=yes
21053
  ;;
21054
 
21055
openbsd*)
21056
  version_type=sunos
21057
  need_lib_prefix=no
21058
  need_version=no
21059
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21060
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21061
  shlibpath_var=LD_LIBRARY_PATH
21062
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21063
    case $host_os in
21064
      openbsd2.[89] | openbsd2.[89].*)
21065
	shlibpath_overrides_runpath=no
21066
	;;
21067
      *)
21068
	shlibpath_overrides_runpath=yes
21069
	;;
21070
      esac
21071
  else
21072
    shlibpath_overrides_runpath=yes
21073
  fi
21074
  ;;
21075
 
21076
os2*)
21077
  libname_spec='$name'
21078
  shrext=".dll"
21079
  need_lib_prefix=no
21080
  library_names_spec='$libname${shared_ext} $libname.a'
21081
  dynamic_linker='OS/2 ld.exe'
21082
  shlibpath_var=LIBPATH
21083
  ;;
21084
 
21085
osf3* | osf4* | osf5*)
21086
  version_type=osf
21087
  need_lib_prefix=no
21088
  need_version=no
21089
  soname_spec='${libname}${release}${shared_ext}$major'
21090
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21091
  shlibpath_var=LD_LIBRARY_PATH
21092
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21093
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21094
  ;;
21095
 
21096
sco3.2v5*)
21097
  version_type=osf
21098
  soname_spec='${libname}${release}${shared_ext}$major'
21099
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21100
  shlibpath_var=LD_LIBRARY_PATH
21101
  ;;
21102
 
21103
solaris*)
21104
  version_type=linux
21105
  need_lib_prefix=no
21106
  need_version=no
21107
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21108
  soname_spec='${libname}${release}${shared_ext}$major'
21109
  shlibpath_var=LD_LIBRARY_PATH
21110
  shlibpath_overrides_runpath=yes
21111
  hardcode_into_libs=yes
21112
  # ldd complains unless libraries are executable
21113
  postinstall_cmds='chmod +x $lib'
21114
  ;;
21115
 
21116
sunos4*)
21117
  version_type=sunos
21118
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21119
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21120
  shlibpath_var=LD_LIBRARY_PATH
21121
  shlibpath_overrides_runpath=yes
21122
  if test "$with_gnu_ld" = yes; then
21123
    need_lib_prefix=no
21124
  fi
21125
  need_version=yes
21126
  ;;
21127
 
21128
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21129
  version_type=linux
21130
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21131
  soname_spec='${libname}${release}${shared_ext}$major'
21132
  shlibpath_var=LD_LIBRARY_PATH
21133
  case $host_vendor in
21134
    sni)
21135
      shlibpath_overrides_runpath=no
21136
      need_lib_prefix=no
21137
      export_dynamic_flag_spec='${wl}-Blargedynsym'
21138
      runpath_var=LD_RUN_PATH
21139
      ;;
21140
    siemens)
21141
      need_lib_prefix=no
21142
      ;;
21143
    motorola)
21144
      need_lib_prefix=no
21145
      need_version=no
21146
      shlibpath_overrides_runpath=no
21147
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21148
      ;;
21149
  esac
21150
  ;;
21151
 
21152
sysv4*MP*)
21153
  if test -d /usr/nec ;then
21154
    version_type=linux
21155
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21156
    soname_spec='$libname${shared_ext}.$major'
21157
    shlibpath_var=LD_LIBRARY_PATH
21158
  fi
21159
  ;;
21160
 
21161
uts4*)
21162
  version_type=linux
21163
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21164
  soname_spec='${libname}${release}${shared_ext}$major'
21165
  shlibpath_var=LD_LIBRARY_PATH
21166
  ;;
21167
 
21168
*)
21169
  dynamic_linker=no
21170
  ;;
21171
esac
216 andreas 21172
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21173
$as_echo "$dynamic_linker" >&6; }
88 andreas 21174
test "$dynamic_linker" = no && can_build_shared=no
21175
 
216 andreas 21176
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21177
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
88 andreas 21178
hardcode_action_GCJ=
21179
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
21180
   test -n "$runpath_var GCJ" || \
21181
   test "X$hardcode_automatic_GCJ"="Xyes" ; then
21182
 
21183
  # We can hardcode non-existant directories.
21184
  if test "$hardcode_direct_GCJ" != no &&
21185
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
21186
     # have to relink, otherwise we might link with an installed library
21187
     # when we should be linking with a yet-to-be-installed one
21188
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
21189
     test "$hardcode_minus_L_GCJ" != no; then
21190
    # Linking always hardcodes the temporary library directory.
21191
    hardcode_action_GCJ=relink
21192
  else
21193
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
21194
    hardcode_action_GCJ=immediate
21195
  fi
21196
else
21197
  # We cannot hardcode anything, or else we can only hardcode existing
21198
  # directories.
21199
  hardcode_action_GCJ=unsupported
21200
fi
216 andreas 21201
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
21202
$as_echo "$hardcode_action_GCJ" >&6; }
88 andreas 21203
 
21204
if test "$hardcode_action_GCJ" = relink; then
21205
  # Fast installation is not supported
21206
  enable_fast_install=no
21207
elif test "$shlibpath_overrides_runpath" = yes ||
21208
     test "$enable_shared" = no; then
21209
  # Fast installation is not necessary
21210
  enable_fast_install=needless
21211
fi
21212
 
21213
striplib=
21214
old_striplib=
216 andreas 21215
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
21216
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
88 andreas 21217
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
21218
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
21219
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
216 andreas 21220
  { $as_echo "$as_me:$LINENO: result: yes" >&5
21221
$as_echo "yes" >&6; }
88 andreas 21222
else
21223
# FIXME - insert some real tests, host_os isn't really good enough
21224
  case $host_os in
21225
   darwin*)
21226
       if test -n "$STRIP" ; then
21227
         striplib="$STRIP -x"
216 andreas 21228
         { $as_echo "$as_me:$LINENO: result: yes" >&5
21229
$as_echo "yes" >&6; }
88 andreas 21230
       else
216 andreas 21231
  { $as_echo "$as_me:$LINENO: result: no" >&5
21232
$as_echo "no" >&6; }
88 andreas 21233
fi
21234
       ;;
21235
   *)
216 andreas 21236
  { $as_echo "$as_me:$LINENO: result: no" >&5
21237
$as_echo "no" >&6; }
88 andreas 21238
    ;;
21239
  esac
21240
fi
21241
 
21242
if test "x$enable_dlopen" != xyes; then
21243
  enable_dlopen=unknown
21244
  enable_dlopen_self=unknown
21245
  enable_dlopen_self_static=unknown
21246
else
21247
  lt_cv_dlopen=no
21248
  lt_cv_dlopen_libs=
21249
 
21250
  case $host_os in
21251
  beos*)
21252
    lt_cv_dlopen="load_add_on"
21253
    lt_cv_dlopen_libs=
21254
    lt_cv_dlopen_self=yes
21255
    ;;
21256
 
21257
  mingw* | pw32*)
21258
    lt_cv_dlopen="LoadLibrary"
21259
    lt_cv_dlopen_libs=
21260
   ;;
21261
 
21262
  cygwin*)
21263
    lt_cv_dlopen="dlopen"
21264
    lt_cv_dlopen_libs=
21265
   ;;
21266
 
21267
  darwin*)
21268
  # if libdl is installed we need to link against it
216 andreas 21269
    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
21270
$as_echo_n "checking for dlopen in -ldl... " >&6; }
88 andreas 21271
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
216 andreas 21272
  $as_echo_n "(cached) " >&6
88 andreas 21273
else
21274
  ac_check_lib_save_LIBS=$LIBS
21275
LIBS="-ldl  $LIBS"
21276
cat >conftest.$ac_ext <<_ACEOF
21277
/* confdefs.h.  */
21278
_ACEOF
21279
cat confdefs.h >>conftest.$ac_ext
21280
cat >>conftest.$ac_ext <<_ACEOF
21281
/* end confdefs.h.  */
21282
 
21283
/* Override any GCC internal prototype to avoid an error.
21284
   Use char because int might match the return type of a GCC
21285
   builtin and then its argument prototype would still apply.  */
21286
#ifdef __cplusplus
21287
extern "C"
21288
#endif
21289
char dlopen ();
21290
int
21291
main ()
21292
{
21293
return dlopen ();
21294
  ;
21295
  return 0;
21296
}
21297
_ACEOF
21298
rm -f conftest.$ac_objext conftest$ac_exeext
21299
if { (ac_try="$ac_link"
21300
case "(($ac_try" in
21301
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21302
  *) ac_try_echo=$ac_try;;
21303
esac
216 andreas 21304
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21305
$as_echo "$ac_try_echo") >&5
88 andreas 21306
  (eval "$ac_link") 2>conftest.er1
21307
  ac_status=$?
21308
  grep -v '^ *+' conftest.er1 >conftest.err
21309
  rm -f conftest.er1
21310
  cat conftest.err >&5
216 andreas 21311
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 21312
  (exit $ac_status); } && {
21313
	 test -z "$ac_c_werror_flag" ||
21314
	 test ! -s conftest.err
216 andreas 21315
       } && test -s conftest$ac_exeext && {
21316
	 test "$cross_compiling" = yes ||
21317
	 $as_test_x conftest$ac_exeext
21318
       }; then
88 andreas 21319
  ac_cv_lib_dl_dlopen=yes
21320
else
216 andreas 21321
  $as_echo "$as_me: failed program was:" >&5
88 andreas 21322
sed 's/^/| /' conftest.$ac_ext >&5
21323
 
21324
	ac_cv_lib_dl_dlopen=no
21325
fi
21326
 
216 andreas 21327
rm -rf conftest.dSYM
88 andreas 21328
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21329
      conftest$ac_exeext conftest.$ac_ext
21330
LIBS=$ac_check_lib_save_LIBS
21331
fi
216 andreas 21332
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
21333
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
21334
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
88 andreas 21335
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
21336
else
21337
 
21338
    lt_cv_dlopen="dyld"
21339
    lt_cv_dlopen_libs=
21340
    lt_cv_dlopen_self=yes
21341
 
21342
fi
21343
 
21344
   ;;
21345
 
21346
  *)
216 andreas 21347
    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
21348
$as_echo_n "checking for shl_load... " >&6; }
88 andreas 21349
if test "${ac_cv_func_shl_load+set}" = set; then
216 andreas 21350
  $as_echo_n "(cached) " >&6
88 andreas 21351
else
21352
  cat >conftest.$ac_ext <<_ACEOF
21353
/* confdefs.h.  */
21354
_ACEOF
21355
cat confdefs.h >>conftest.$ac_ext
21356
cat >>conftest.$ac_ext <<_ACEOF
21357
/* end confdefs.h.  */
21358
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
21359
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21360
#define shl_load innocuous_shl_load
21361
 
21362
/* System header to define __stub macros and hopefully few prototypes,
21363
    which can conflict with char shl_load (); below.
21364
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21365
    <limits.h> exists even on freestanding compilers.  */
21366
 
21367
#ifdef __STDC__
21368
# include <limits.h>
21369
#else
21370
# include <assert.h>
21371
#endif
21372
 
21373
#undef shl_load
21374
 
21375
/* Override any GCC internal prototype to avoid an error.
21376
   Use char because int might match the return type of a GCC
21377
   builtin and then its argument prototype would still apply.  */
21378
#ifdef __cplusplus
21379
extern "C"
21380
#endif
21381
char shl_load ();
21382
/* The GNU C library defines this for functions which it implements
21383
    to always fail with ENOSYS.  Some functions are actually named
21384
    something starting with __ and the normal name is an alias.  */
21385
#if defined __stub_shl_load || defined __stub___shl_load
21386
choke me
21387
#endif
21388
 
21389
int
21390
main ()
21391
{
21392
return shl_load ();
21393
  ;
21394
  return 0;
21395
}
21396
_ACEOF
21397
rm -f conftest.$ac_objext conftest$ac_exeext
21398
if { (ac_try="$ac_link"
21399
case "(($ac_try" in
21400
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21401
  *) ac_try_echo=$ac_try;;
21402
esac
216 andreas 21403
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21404
$as_echo "$ac_try_echo") >&5
88 andreas 21405
  (eval "$ac_link") 2>conftest.er1
21406
  ac_status=$?
21407
  grep -v '^ *+' conftest.er1 >conftest.err
21408
  rm -f conftest.er1
21409
  cat conftest.err >&5
216 andreas 21410
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 21411
  (exit $ac_status); } && {
21412
	 test -z "$ac_c_werror_flag" ||
21413
	 test ! -s conftest.err
216 andreas 21414
       } && test -s conftest$ac_exeext && {
21415
	 test "$cross_compiling" = yes ||
21416
	 $as_test_x conftest$ac_exeext
21417
       }; then
88 andreas 21418
  ac_cv_func_shl_load=yes
21419
else
216 andreas 21420
  $as_echo "$as_me: failed program was:" >&5
88 andreas 21421
sed 's/^/| /' conftest.$ac_ext >&5
21422
 
21423
	ac_cv_func_shl_load=no
21424
fi
21425
 
216 andreas 21426
rm -rf conftest.dSYM
88 andreas 21427
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21428
      conftest$ac_exeext conftest.$ac_ext
21429
fi
216 andreas 21430
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
21431
$as_echo "$ac_cv_func_shl_load" >&6; }
21432
if test "x$ac_cv_func_shl_load" = x""yes; then
88 andreas 21433
  lt_cv_dlopen="shl_load"
21434
else
216 andreas 21435
  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
21436
$as_echo_n "checking for shl_load in -ldld... " >&6; }
88 andreas 21437
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
216 andreas 21438
  $as_echo_n "(cached) " >&6
88 andreas 21439
else
21440
  ac_check_lib_save_LIBS=$LIBS
21441
LIBS="-ldld  $LIBS"
21442
cat >conftest.$ac_ext <<_ACEOF
21443
/* confdefs.h.  */
21444
_ACEOF
21445
cat confdefs.h >>conftest.$ac_ext
21446
cat >>conftest.$ac_ext <<_ACEOF
21447
/* end confdefs.h.  */
21448
 
21449
/* Override any GCC internal prototype to avoid an error.
21450
   Use char because int might match the return type of a GCC
21451
   builtin and then its argument prototype would still apply.  */
21452
#ifdef __cplusplus
21453
extern "C"
21454
#endif
21455
char shl_load ();
21456
int
21457
main ()
21458
{
21459
return shl_load ();
21460
  ;
21461
  return 0;
21462
}
21463
_ACEOF
21464
rm -f conftest.$ac_objext conftest$ac_exeext
21465
if { (ac_try="$ac_link"
21466
case "(($ac_try" in
21467
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21468
  *) ac_try_echo=$ac_try;;
21469
esac
216 andreas 21470
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21471
$as_echo "$ac_try_echo") >&5
88 andreas 21472
  (eval "$ac_link") 2>conftest.er1
21473
  ac_status=$?
21474
  grep -v '^ *+' conftest.er1 >conftest.err
21475
  rm -f conftest.er1
21476
  cat conftest.err >&5
216 andreas 21477
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 21478
  (exit $ac_status); } && {
21479
	 test -z "$ac_c_werror_flag" ||
21480
	 test ! -s conftest.err
216 andreas 21481
       } && test -s conftest$ac_exeext && {
21482
	 test "$cross_compiling" = yes ||
21483
	 $as_test_x conftest$ac_exeext
21484
       }; then
88 andreas 21485
  ac_cv_lib_dld_shl_load=yes
21486
else
216 andreas 21487
  $as_echo "$as_me: failed program was:" >&5
88 andreas 21488
sed 's/^/| /' conftest.$ac_ext >&5
21489
 
21490
	ac_cv_lib_dld_shl_load=no
21491
fi
21492
 
216 andreas 21493
rm -rf conftest.dSYM
88 andreas 21494
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21495
      conftest$ac_exeext conftest.$ac_ext
21496
LIBS=$ac_check_lib_save_LIBS
21497
fi
216 andreas 21498
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
21499
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
21500
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
88 andreas 21501
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
21502
else
216 andreas 21503
  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
21504
$as_echo_n "checking for dlopen... " >&6; }
88 andreas 21505
if test "${ac_cv_func_dlopen+set}" = set; then
216 andreas 21506
  $as_echo_n "(cached) " >&6
88 andreas 21507
else
21508
  cat >conftest.$ac_ext <<_ACEOF
21509
/* confdefs.h.  */
21510
_ACEOF
21511
cat confdefs.h >>conftest.$ac_ext
21512
cat >>conftest.$ac_ext <<_ACEOF
21513
/* end confdefs.h.  */
21514
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
21515
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21516
#define dlopen innocuous_dlopen
21517
 
21518
/* System header to define __stub macros and hopefully few prototypes,
21519
    which can conflict with char dlopen (); below.
21520
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21521
    <limits.h> exists even on freestanding compilers.  */
21522
 
21523
#ifdef __STDC__
21524
# include <limits.h>
21525
#else
21526
# include <assert.h>
21527
#endif
21528
 
21529
#undef dlopen
21530
 
21531
/* Override any GCC internal prototype to avoid an error.
21532
   Use char because int might match the return type of a GCC
21533
   builtin and then its argument prototype would still apply.  */
21534
#ifdef __cplusplus
21535
extern "C"
21536
#endif
21537
char dlopen ();
21538
/* The GNU C library defines this for functions which it implements
21539
    to always fail with ENOSYS.  Some functions are actually named
21540
    something starting with __ and the normal name is an alias.  */
21541
#if defined __stub_dlopen || defined __stub___dlopen
21542
choke me
21543
#endif
21544
 
21545
int
21546
main ()
21547
{
21548
return dlopen ();
21549
  ;
21550
  return 0;
21551
}
21552
_ACEOF
21553
rm -f conftest.$ac_objext conftest$ac_exeext
21554
if { (ac_try="$ac_link"
21555
case "(($ac_try" in
21556
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21557
  *) ac_try_echo=$ac_try;;
21558
esac
216 andreas 21559
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21560
$as_echo "$ac_try_echo") >&5
88 andreas 21561
  (eval "$ac_link") 2>conftest.er1
21562
  ac_status=$?
21563
  grep -v '^ *+' conftest.er1 >conftest.err
21564
  rm -f conftest.er1
21565
  cat conftest.err >&5
216 andreas 21566
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 21567
  (exit $ac_status); } && {
21568
	 test -z "$ac_c_werror_flag" ||
21569
	 test ! -s conftest.err
216 andreas 21570
       } && test -s conftest$ac_exeext && {
21571
	 test "$cross_compiling" = yes ||
21572
	 $as_test_x conftest$ac_exeext
21573
       }; then
88 andreas 21574
  ac_cv_func_dlopen=yes
21575
else
216 andreas 21576
  $as_echo "$as_me: failed program was:" >&5
88 andreas 21577
sed 's/^/| /' conftest.$ac_ext >&5
21578
 
21579
	ac_cv_func_dlopen=no
21580
fi
21581
 
216 andreas 21582
rm -rf conftest.dSYM
88 andreas 21583
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21584
      conftest$ac_exeext conftest.$ac_ext
21585
fi
216 andreas 21586
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
21587
$as_echo "$ac_cv_func_dlopen" >&6; }
21588
if test "x$ac_cv_func_dlopen" = x""yes; then
88 andreas 21589
  lt_cv_dlopen="dlopen"
21590
else
216 andreas 21591
  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
21592
$as_echo_n "checking for dlopen in -ldl... " >&6; }
88 andreas 21593
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
216 andreas 21594
  $as_echo_n "(cached) " >&6
88 andreas 21595
else
21596
  ac_check_lib_save_LIBS=$LIBS
21597
LIBS="-ldl  $LIBS"
21598
cat >conftest.$ac_ext <<_ACEOF
21599
/* confdefs.h.  */
21600
_ACEOF
21601
cat confdefs.h >>conftest.$ac_ext
21602
cat >>conftest.$ac_ext <<_ACEOF
21603
/* end confdefs.h.  */
21604
 
21605
/* Override any GCC internal prototype to avoid an error.
21606
   Use char because int might match the return type of a GCC
21607
   builtin and then its argument prototype would still apply.  */
21608
#ifdef __cplusplus
21609
extern "C"
21610
#endif
21611
char dlopen ();
21612
int
21613
main ()
21614
{
21615
return dlopen ();
21616
  ;
21617
  return 0;
21618
}
21619
_ACEOF
21620
rm -f conftest.$ac_objext conftest$ac_exeext
21621
if { (ac_try="$ac_link"
21622
case "(($ac_try" in
21623
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21624
  *) ac_try_echo=$ac_try;;
21625
esac
216 andreas 21626
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21627
$as_echo "$ac_try_echo") >&5
88 andreas 21628
  (eval "$ac_link") 2>conftest.er1
21629
  ac_status=$?
21630
  grep -v '^ *+' conftest.er1 >conftest.err
21631
  rm -f conftest.er1
21632
  cat conftest.err >&5
216 andreas 21633
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 21634
  (exit $ac_status); } && {
21635
	 test -z "$ac_c_werror_flag" ||
21636
	 test ! -s conftest.err
216 andreas 21637
       } && test -s conftest$ac_exeext && {
21638
	 test "$cross_compiling" = yes ||
21639
	 $as_test_x conftest$ac_exeext
21640
       }; then
88 andreas 21641
  ac_cv_lib_dl_dlopen=yes
21642
else
216 andreas 21643
  $as_echo "$as_me: failed program was:" >&5
88 andreas 21644
sed 's/^/| /' conftest.$ac_ext >&5
21645
 
21646
	ac_cv_lib_dl_dlopen=no
21647
fi
21648
 
216 andreas 21649
rm -rf conftest.dSYM
88 andreas 21650
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21651
      conftest$ac_exeext conftest.$ac_ext
21652
LIBS=$ac_check_lib_save_LIBS
21653
fi
216 andreas 21654
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
21655
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
21656
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
88 andreas 21657
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
21658
else
216 andreas 21659
  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
21660
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
88 andreas 21661
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
216 andreas 21662
  $as_echo_n "(cached) " >&6
88 andreas 21663
else
21664
  ac_check_lib_save_LIBS=$LIBS
21665
LIBS="-lsvld  $LIBS"
21666
cat >conftest.$ac_ext <<_ACEOF
21667
/* confdefs.h.  */
21668
_ACEOF
21669
cat confdefs.h >>conftest.$ac_ext
21670
cat >>conftest.$ac_ext <<_ACEOF
21671
/* end confdefs.h.  */
21672
 
21673
/* Override any GCC internal prototype to avoid an error.
21674
   Use char because int might match the return type of a GCC
21675
   builtin and then its argument prototype would still apply.  */
21676
#ifdef __cplusplus
21677
extern "C"
21678
#endif
21679
char dlopen ();
21680
int
21681
main ()
21682
{
21683
return dlopen ();
21684
  ;
21685
  return 0;
21686
}
21687
_ACEOF
21688
rm -f conftest.$ac_objext conftest$ac_exeext
21689
if { (ac_try="$ac_link"
21690
case "(($ac_try" in
21691
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21692
  *) ac_try_echo=$ac_try;;
21693
esac
216 andreas 21694
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21695
$as_echo "$ac_try_echo") >&5
88 andreas 21696
  (eval "$ac_link") 2>conftest.er1
21697
  ac_status=$?
21698
  grep -v '^ *+' conftest.er1 >conftest.err
21699
  rm -f conftest.er1
21700
  cat conftest.err >&5
216 andreas 21701
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 21702
  (exit $ac_status); } && {
21703
	 test -z "$ac_c_werror_flag" ||
21704
	 test ! -s conftest.err
216 andreas 21705
       } && test -s conftest$ac_exeext && {
21706
	 test "$cross_compiling" = yes ||
21707
	 $as_test_x conftest$ac_exeext
21708
       }; then
88 andreas 21709
  ac_cv_lib_svld_dlopen=yes
21710
else
216 andreas 21711
  $as_echo "$as_me: failed program was:" >&5
88 andreas 21712
sed 's/^/| /' conftest.$ac_ext >&5
21713
 
21714
	ac_cv_lib_svld_dlopen=no
21715
fi
21716
 
216 andreas 21717
rm -rf conftest.dSYM
88 andreas 21718
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21719
      conftest$ac_exeext conftest.$ac_ext
21720
LIBS=$ac_check_lib_save_LIBS
21721
fi
216 andreas 21722
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
21723
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
21724
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
88 andreas 21725
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
21726
else
216 andreas 21727
  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
21728
$as_echo_n "checking for dld_link in -ldld... " >&6; }
88 andreas 21729
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
216 andreas 21730
  $as_echo_n "(cached) " >&6
88 andreas 21731
else
21732
  ac_check_lib_save_LIBS=$LIBS
21733
LIBS="-ldld  $LIBS"
21734
cat >conftest.$ac_ext <<_ACEOF
21735
/* confdefs.h.  */
21736
_ACEOF
21737
cat confdefs.h >>conftest.$ac_ext
21738
cat >>conftest.$ac_ext <<_ACEOF
21739
/* end confdefs.h.  */
21740
 
21741
/* Override any GCC internal prototype to avoid an error.
21742
   Use char because int might match the return type of a GCC
21743
   builtin and then its argument prototype would still apply.  */
21744
#ifdef __cplusplus
21745
extern "C"
21746
#endif
21747
char dld_link ();
21748
int
21749
main ()
21750
{
21751
return dld_link ();
21752
  ;
21753
  return 0;
21754
}
21755
_ACEOF
21756
rm -f conftest.$ac_objext conftest$ac_exeext
21757
if { (ac_try="$ac_link"
21758
case "(($ac_try" in
21759
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21760
  *) ac_try_echo=$ac_try;;
21761
esac
216 andreas 21762
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21763
$as_echo "$ac_try_echo") >&5
88 andreas 21764
  (eval "$ac_link") 2>conftest.er1
21765
  ac_status=$?
21766
  grep -v '^ *+' conftest.er1 >conftest.err
21767
  rm -f conftest.er1
21768
  cat conftest.err >&5
216 andreas 21769
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 21770
  (exit $ac_status); } && {
21771
	 test -z "$ac_c_werror_flag" ||
21772
	 test ! -s conftest.err
216 andreas 21773
       } && test -s conftest$ac_exeext && {
21774
	 test "$cross_compiling" = yes ||
21775
	 $as_test_x conftest$ac_exeext
21776
       }; then
88 andreas 21777
  ac_cv_lib_dld_dld_link=yes
21778
else
216 andreas 21779
  $as_echo "$as_me: failed program was:" >&5
88 andreas 21780
sed 's/^/| /' conftest.$ac_ext >&5
21781
 
21782
	ac_cv_lib_dld_dld_link=no
21783
fi
21784
 
216 andreas 21785
rm -rf conftest.dSYM
88 andreas 21786
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21787
      conftest$ac_exeext conftest.$ac_ext
21788
LIBS=$ac_check_lib_save_LIBS
21789
fi
216 andreas 21790
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
21791
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
21792
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
88 andreas 21793
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
21794
fi
21795
 
21796
 
21797
fi
21798
 
21799
 
21800
fi
21801
 
21802
 
21803
fi
21804
 
21805
 
21806
fi
21807
 
21808
 
21809
fi
21810
 
21811
    ;;
21812
  esac
21813
 
21814
  if test "x$lt_cv_dlopen" != xno; then
21815
    enable_dlopen=yes
21816
  else
21817
    enable_dlopen=no
21818
  fi
21819
 
21820
  case $lt_cv_dlopen in
21821
  dlopen)
21822
    save_CPPFLAGS="$CPPFLAGS"
21823
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
21824
 
21825
    save_LDFLAGS="$LDFLAGS"
21826
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
21827
 
21828
    save_LIBS="$LIBS"
21829
    LIBS="$lt_cv_dlopen_libs $LIBS"
21830
 
216 andreas 21831
    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
21832
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
88 andreas 21833
if test "${lt_cv_dlopen_self+set}" = set; then
216 andreas 21834
  $as_echo_n "(cached) " >&6
88 andreas 21835
else
21836
  	  if test "$cross_compiling" = yes; then :
21837
  lt_cv_dlopen_self=cross
21838
else
21839
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21840
  lt_status=$lt_dlunknown
21841
  cat > conftest.$ac_ext <<EOF
216 andreas 21842
#line 21842 "configure"
88 andreas 21843
#include "confdefs.h"
21844
 
21845
#if HAVE_DLFCN_H
21846
#include <dlfcn.h>
21847
#endif
21848
 
21849
#include <stdio.h>
21850
 
21851
#ifdef RTLD_GLOBAL
21852
#  define LT_DLGLOBAL		RTLD_GLOBAL
21853
#else
21854
#  ifdef DL_GLOBAL
21855
#    define LT_DLGLOBAL		DL_GLOBAL
21856
#  else
21857
#    define LT_DLGLOBAL		0
21858
#  endif
21859
#endif
21860
 
21861
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21862
   find out it does not work in some platform. */
21863
#ifndef LT_DLLAZY_OR_NOW
21864
#  ifdef RTLD_LAZY
21865
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
21866
#  else
21867
#    ifdef DL_LAZY
21868
#      define LT_DLLAZY_OR_NOW		DL_LAZY
21869
#    else
21870
#      ifdef RTLD_NOW
21871
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
21872
#      else
21873
#        ifdef DL_NOW
21874
#          define LT_DLLAZY_OR_NOW	DL_NOW
21875
#        else
21876
#          define LT_DLLAZY_OR_NOW	0
21877
#        endif
21878
#      endif
21879
#    endif
21880
#  endif
21881
#endif
21882
 
21883
#ifdef __cplusplus
21884
extern "C" void exit (int);
21885
#endif
21886
 
21887
void fnord() { int i=42;}
21888
int main ()
21889
{
21890
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21891
  int status = $lt_dlunknown;
21892
 
21893
  if (self)
21894
    {
21895
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
21896
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21897
      /* dlclose (self); */
21898
    }
21899
 
21900
    exit (status);
21901
}
21902
EOF
21903
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21904
  (eval $ac_link) 2>&5
21905
  ac_status=$?
216 andreas 21906
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 21907
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
21908
    (./conftest; exit; ) 2>/dev/null
21909
    lt_status=$?
21910
    case x$lt_status in
21911
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
21912
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
21913
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
21914
    esac
21915
  else :
21916
    # compilation failed
21917
    lt_cv_dlopen_self=no
21918
  fi
21919
fi
21920
rm -fr conftest*
21921
 
21922
 
21923
fi
216 andreas 21924
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
21925
$as_echo "$lt_cv_dlopen_self" >&6; }
88 andreas 21926
 
21927
    if test "x$lt_cv_dlopen_self" = xyes; then
21928
      LDFLAGS="$LDFLAGS $link_static_flag"
216 andreas 21929
      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
21930
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
88 andreas 21931
if test "${lt_cv_dlopen_self_static+set}" = set; then
216 andreas 21932
  $as_echo_n "(cached) " >&6
88 andreas 21933
else
21934
  	  if test "$cross_compiling" = yes; then :
21935
  lt_cv_dlopen_self_static=cross
21936
else
21937
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21938
  lt_status=$lt_dlunknown
21939
  cat > conftest.$ac_ext <<EOF
216 andreas 21940
#line 21940 "configure"
88 andreas 21941
#include "confdefs.h"
21942
 
21943
#if HAVE_DLFCN_H
21944
#include <dlfcn.h>
21945
#endif
21946
 
21947
#include <stdio.h>
21948
 
21949
#ifdef RTLD_GLOBAL
21950
#  define LT_DLGLOBAL		RTLD_GLOBAL
21951
#else
21952
#  ifdef DL_GLOBAL
21953
#    define LT_DLGLOBAL		DL_GLOBAL
21954
#  else
21955
#    define LT_DLGLOBAL		0
21956
#  endif
21957
#endif
21958
 
21959
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21960
   find out it does not work in some platform. */
21961
#ifndef LT_DLLAZY_OR_NOW
21962
#  ifdef RTLD_LAZY
21963
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
21964
#  else
21965
#    ifdef DL_LAZY
21966
#      define LT_DLLAZY_OR_NOW		DL_LAZY
21967
#    else
21968
#      ifdef RTLD_NOW
21969
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
21970
#      else
21971
#        ifdef DL_NOW
21972
#          define LT_DLLAZY_OR_NOW	DL_NOW
21973
#        else
21974
#          define LT_DLLAZY_OR_NOW	0
21975
#        endif
21976
#      endif
21977
#    endif
21978
#  endif
21979
#endif
21980
 
21981
#ifdef __cplusplus
21982
extern "C" void exit (int);
21983
#endif
21984
 
21985
void fnord() { int i=42;}
21986
int main ()
21987
{
21988
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21989
  int status = $lt_dlunknown;
21990
 
21991
  if (self)
21992
    {
21993
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
21994
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21995
      /* dlclose (self); */
21996
    }
21997
 
21998
    exit (status);
21999
}
22000
EOF
22001
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22002
  (eval $ac_link) 2>&5
22003
  ac_status=$?
216 andreas 22004
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 22005
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
22006
    (./conftest; exit; ) 2>/dev/null
22007
    lt_status=$?
22008
    case x$lt_status in
22009
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
22010
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
22011
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
22012
    esac
22013
  else :
22014
    # compilation failed
22015
    lt_cv_dlopen_self_static=no
22016
  fi
22017
fi
22018
rm -fr conftest*
22019
 
22020
 
22021
fi
216 andreas 22022
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
22023
$as_echo "$lt_cv_dlopen_self_static" >&6; }
88 andreas 22024
    fi
22025
 
22026
    CPPFLAGS="$save_CPPFLAGS"
22027
    LDFLAGS="$save_LDFLAGS"
22028
    LIBS="$save_LIBS"
22029
    ;;
22030
  esac
22031
 
22032
  case $lt_cv_dlopen_self in
22033
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
22034
  *) enable_dlopen_self=unknown ;;
22035
  esac
22036
 
22037
  case $lt_cv_dlopen_self_static in
22038
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
22039
  *) enable_dlopen_self_static=unknown ;;
22040
  esac
22041
fi
22042
 
22043
 
22044
# The else clause should only fire when bootstrapping the
22045
# libtool distribution, otherwise you forgot to ship ltmain.sh
22046
# with your package, and you will get complaints that there are
22047
# no rules to generate ltmain.sh.
22048
if test -f "$ltmain"; then
22049
  # See if we are running on zsh, and set the options which allow our commands through
22050
  # without removal of \ escapes.
22051
  if test -n "${ZSH_VERSION+set}" ; then
22052
    setopt NO_GLOB_SUBST
22053
  fi
22054
  # Now quote all the things that may contain metacharacters while being
22055
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
22056
  # variables and quote the copies for generation of the libtool script.
22057
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
22058
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22059
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22060
    deplibs_check_method reload_flag reload_cmds need_locks \
22061
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22062
    lt_cv_sys_global_symbol_to_c_name_address \
22063
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22064
    old_postinstall_cmds old_postuninstall_cmds \
22065
    compiler_GCJ \
22066
    CC_GCJ \
22067
    LD_GCJ \
22068
    lt_prog_compiler_wl_GCJ \
22069
    lt_prog_compiler_pic_GCJ \
22070
    lt_prog_compiler_static_GCJ \
22071
    lt_prog_compiler_no_builtin_flag_GCJ \
22072
    export_dynamic_flag_spec_GCJ \
22073
    thread_safe_flag_spec_GCJ \
22074
    whole_archive_flag_spec_GCJ \
22075
    enable_shared_with_static_runtimes_GCJ \
22076
    old_archive_cmds_GCJ \
22077
    old_archive_from_new_cmds_GCJ \
22078
    predep_objects_GCJ \
22079
    postdep_objects_GCJ \
22080
    predeps_GCJ \
22081
    postdeps_GCJ \
22082
    compiler_lib_search_path_GCJ \
22083
    archive_cmds_GCJ \
22084
    archive_expsym_cmds_GCJ \
22085
    postinstall_cmds_GCJ \
22086
    postuninstall_cmds_GCJ \
22087
    old_archive_from_expsyms_cmds_GCJ \
22088
    allow_undefined_flag_GCJ \
22089
    no_undefined_flag_GCJ \
22090
    export_symbols_cmds_GCJ \
22091
    hardcode_libdir_flag_spec_GCJ \
22092
    hardcode_libdir_flag_spec_ld_GCJ \
22093
    hardcode_libdir_separator_GCJ \
22094
    hardcode_automatic_GCJ \
22095
    module_cmds_GCJ \
22096
    module_expsym_cmds_GCJ \
22097
    lt_cv_prog_compiler_c_o_GCJ \
22098
    exclude_expsyms_GCJ \
22099
    include_expsyms_GCJ; do
22100
 
22101
    case $var in
22102
    old_archive_cmds_GCJ | \
22103
    old_archive_from_new_cmds_GCJ | \
22104
    archive_cmds_GCJ | \
22105
    archive_expsym_cmds_GCJ | \
22106
    module_cmds_GCJ | \
22107
    module_expsym_cmds_GCJ | \
22108
    old_archive_from_expsyms_cmds_GCJ | \
22109
    export_symbols_cmds_GCJ | \
22110
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
22111
    postinstall_cmds | postuninstall_cmds | \
22112
    old_postinstall_cmds | old_postuninstall_cmds | \
22113
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
22114
      # Double-quote double-evaled strings.
22115
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
22116
      ;;
22117
    *)
22118
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
22119
      ;;
22120
    esac
22121
  done
22122
 
22123
  case $lt_echo in
22124
  *'\$0 --fallback-echo"')
22125
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
22126
    ;;
22127
  esac
22128
 
22129
cfgfile="$ofile"
22130
 
22131
  cat <<__EOF__ >> "$cfgfile"
22132
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
22133
 
22134
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22135
 
22136
# Shell to use when invoking shell scripts.
22137
SHELL=$lt_SHELL
22138
 
22139
# Whether or not to build shared libraries.
22140
build_libtool_libs=$enable_shared
22141
 
22142
# Whether or not to build static libraries.
22143
build_old_libs=$enable_static
22144
 
22145
# Whether or not to add -lc for building shared libraries.
22146
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
22147
 
22148
# Whether or not to disallow shared libs when runtime libs are static
22149
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
22150
 
22151
# Whether or not to optimize for fast installation.
22152
fast_install=$enable_fast_install
22153
 
22154
# The host system.
22155
host_alias=$host_alias
22156
host=$host
22157
 
22158
# An echo program that does not interpret backslashes.
22159
echo=$lt_echo
22160
 
22161
# The archiver.
22162
AR=$lt_AR
22163
AR_FLAGS=$lt_AR_FLAGS
22164
 
22165
# A C compiler.
22166
LTCC=$lt_LTCC
22167
 
22168
# A language-specific compiler.
22169
CC=$lt_compiler_GCJ
22170
 
22171
# Is the compiler the GNU C compiler?
22172
with_gcc=$GCC_GCJ
22173
 
22174
# An ERE matcher.
22175
EGREP=$lt_EGREP
22176
 
22177
# The linker used to build libraries.
22178
LD=$lt_LD_GCJ
22179
 
22180
# Whether we need hard or soft links.
22181
LN_S=$lt_LN_S
22182
 
22183
# A BSD-compatible nm program.
22184
NM=$lt_NM
22185
 
22186
# A symbol stripping program
22187
STRIP=$STRIP
22188
 
22189
# Used to examine libraries when file_magic_cmd begins "file"
22190
MAGIC_CMD=$MAGIC_CMD
22191
 
22192
# Used on cygwin: DLL creation program.
22193
DLLTOOL="$DLLTOOL"
22194
 
22195
# Used on cygwin: object dumper.
22196
OBJDUMP="$OBJDUMP"
22197
 
22198
# Used on cygwin: assembler.
22199
AS="$AS"
22200
 
22201
# The name of the directory that contains temporary libtool files.
22202
objdir=$objdir
22203
 
22204
# How to create reloadable object files.
22205
reload_flag=$lt_reload_flag
22206
reload_cmds=$lt_reload_cmds
22207
 
22208
# How to pass a linker flag through the compiler.
22209
wl=$lt_lt_prog_compiler_wl_GCJ
22210
 
22211
# Object file suffix (normally "o").
22212
objext="$ac_objext"
22213
 
22214
# Old archive suffix (normally "a").
22215
libext="$libext"
22216
 
22217
# Shared library suffix (normally ".so").
22218
shrext='$shrext'
22219
 
22220
# Executable file suffix (normally "").
22221
exeext="$exeext"
22222
 
22223
# Additional compiler flags for building library objects.
22224
pic_flag=$lt_lt_prog_compiler_pic_GCJ
22225
pic_mode=$pic_mode
22226
 
22227
# What is the maximum length of a command?
22228
max_cmd_len=$lt_cv_sys_max_cmd_len
22229
 
22230
# Does compiler simultaneously support -c and -o options?
22231
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
22232
 
22233
# Must we lock files when doing compilation ?
22234
need_locks=$lt_need_locks
22235
 
22236
# Do we need the lib prefix for modules?
22237
need_lib_prefix=$need_lib_prefix
22238
 
22239
# Do we need a version for libraries?
22240
need_version=$need_version
22241
 
22242
# Whether dlopen is supported.
22243
dlopen_support=$enable_dlopen
22244
 
22245
# Whether dlopen of programs is supported.
22246
dlopen_self=$enable_dlopen_self
22247
 
22248
# Whether dlopen of statically linked programs is supported.
22249
dlopen_self_static=$enable_dlopen_self_static
22250
 
22251
# Compiler flag to prevent dynamic linking.
22252
link_static_flag=$lt_lt_prog_compiler_static_GCJ
22253
 
22254
# Compiler flag to turn off builtin functions.
22255
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
22256
 
22257
# Compiler flag to allow reflexive dlopens.
22258
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
22259
 
22260
# Compiler flag to generate shared objects directly from archives.
22261
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
22262
 
22263
# Compiler flag to generate thread-safe objects.
22264
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
22265
 
22266
# Library versioning type.
22267
version_type=$version_type
22268
 
22269
# Format of library name prefix.
22270
libname_spec=$lt_libname_spec
22271
 
22272
# List of archive names.  First name is the real one, the rest are links.
22273
# The last name is the one that the linker finds with -lNAME.
22274
library_names_spec=$lt_library_names_spec
22275
 
22276
# The coded name of the library, if different from the real name.
22277
soname_spec=$lt_soname_spec
22278
 
22279
# Commands used to build and install an old-style archive.
22280
RANLIB=$lt_RANLIB
22281
old_archive_cmds=$lt_old_archive_cmds_GCJ
22282
old_postinstall_cmds=$lt_old_postinstall_cmds
22283
old_postuninstall_cmds=$lt_old_postuninstall_cmds
22284
 
22285
# Create an old-style archive from a shared archive.
22286
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
22287
 
22288
# Create a temporary old-style archive to link instead of a shared archive.
22289
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
22290
 
22291
# Commands used to build and install a shared archive.
22292
archive_cmds=$lt_archive_cmds_GCJ
22293
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
22294
postinstall_cmds=$lt_postinstall_cmds
22295
postuninstall_cmds=$lt_postuninstall_cmds
22296
 
22297
# Commands used to build a loadable module (assumed same as above if empty)
22298
module_cmds=$lt_module_cmds_GCJ
22299
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
22300
 
22301
# Commands to strip libraries.
22302
old_striplib=$lt_old_striplib
22303
striplib=$lt_striplib
22304
 
22305
# Dependencies to place before the objects being linked to create a
22306
# shared library.
22307
predep_objects=$lt_predep_objects_GCJ
22308
 
22309
# Dependencies to place after the objects being linked to create a
22310
# shared library.
22311
postdep_objects=$lt_postdep_objects_GCJ
22312
 
22313
# Dependencies to place before the objects being linked to create a
22314
# shared library.
22315
predeps=$lt_predeps_GCJ
22316
 
22317
# Dependencies to place after the objects being linked to create a
22318
# shared library.
22319
postdeps=$lt_postdeps_GCJ
22320
 
22321
# The library search path used internally by the compiler when linking
22322
# a shared library.
22323
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
22324
 
22325
# Method to check whether dependent libraries are shared objects.
22326
deplibs_check_method=$lt_deplibs_check_method
22327
 
22328
# Command to use when deplibs_check_method == file_magic.
22329
file_magic_cmd=$lt_file_magic_cmd
22330
 
22331
# Flag that allows shared libraries with undefined symbols to be built.
22332
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
22333
 
22334
# Flag that forces no undefined symbols.
22335
no_undefined_flag=$lt_no_undefined_flag_GCJ
22336
 
22337
# Commands used to finish a libtool library installation in a directory.
22338
finish_cmds=$lt_finish_cmds
22339
 
22340
# Same as above, but a single script fragment to be evaled but not shown.
22341
finish_eval=$lt_finish_eval
22342
 
22343
# Take the output of nm and produce a listing of raw symbols and C names.
22344
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22345
 
22346
# Transform the output of nm in a proper C declaration
22347
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22348
 
22349
# Transform the output of nm in a C name address pair
22350
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22351
 
22352
# This is the shared library runtime path variable.
22353
runpath_var=$runpath_var
22354
 
22355
# This is the shared library path variable.
22356
shlibpath_var=$shlibpath_var
22357
 
22358
# Is shlibpath searched before the hard-coded library search path?
22359
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22360
 
22361
# How to hardcode a shared library path into an executable.
22362
hardcode_action=$hardcode_action_GCJ
22363
 
22364
# Whether we should hardcode library paths into libraries.
22365
hardcode_into_libs=$hardcode_into_libs
22366
 
22367
# Flag to hardcode \$libdir into a binary during linking.
22368
# This must work even if \$libdir does not exist.
22369
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
22370
 
22371
# If ld is used when linking, flag to hardcode \$libdir into
22372
# a binary during linking. This must work even if \$libdir does
22373
# not exist.
22374
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
22375
 
22376
# Whether we need a single -rpath flag with a separated argument.
22377
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
22378
 
22379
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22380
# resulting binary.
22381
hardcode_direct=$hardcode_direct_GCJ
22382
 
22383
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22384
# resulting binary.
22385
hardcode_minus_L=$hardcode_minus_L_GCJ
22386
 
22387
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22388
# the resulting binary.
22389
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
22390
 
22391
# Set to yes if building a shared library automatically hardcodes DIR into the library
22392
# and all subsequent libraries and executables linked against it.
22393
hardcode_automatic=$hardcode_automatic_GCJ
22394
 
22395
# Variables whose values should be saved in libtool wrapper scripts and
22396
# restored at relink time.
22397
variables_saved_for_relink="$variables_saved_for_relink"
22398
 
22399
# Whether libtool must link a program against all its dependency libraries.
22400
link_all_deplibs=$link_all_deplibs_GCJ
22401
 
22402
# Compile-time system search path for libraries
22403
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22404
 
22405
# Run-time system search path for libraries
22406
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22407
 
22408
# Fix the shell variable \$srcfile for the compiler.
22409
fix_srcfile_path="$fix_srcfile_path_GCJ"
22410
 
22411
# Set to yes if exported symbols are required.
22412
always_export_symbols=$always_export_symbols_GCJ
22413
 
22414
# The commands to list exported symbols.
22415
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
22416
 
22417
# The commands to extract the exported symbol list from a shared archive.
22418
extract_expsyms_cmds=$lt_extract_expsyms_cmds
22419
 
22420
# Symbols that should not be listed in the preloaded symbols.
22421
exclude_expsyms=$lt_exclude_expsyms_GCJ
22422
 
22423
# Symbols that must always be exported.
22424
include_expsyms=$lt_include_expsyms_GCJ
22425
 
22426
# ### END LIBTOOL TAG CONFIG: $tagname
22427
 
22428
__EOF__
22429
 
22430
 
22431
else
22432
  # If there is no Makefile yet, we rely on a make rule to execute
22433
  # `config.status --recheck' to rerun these tests and create the
22434
  # libtool script then.
22435
  test -f Makefile && make "$ltmain"
22436
fi
22437
 
22438
 
22439
ac_ext=c
22440
ac_cpp='$CPP $CPPFLAGS'
22441
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22442
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22443
ac_compiler_gnu=$ac_cv_c_compiler_gnu
22444
 
22445
CC="$lt_save_CC"
22446
 
22447
	else
22448
	  tagname=""
22449
	fi
22450
	;;
22451
 
22452
      RC)
22453
 
22454
 
22455
# Source file extension for RC test sources.
22456
ac_ext=rc
22457
 
22458
# Object file extension for compiled RC test sources.
22459
objext=o
22460
objext_RC=$objext
22461
 
22462
# Code to be used in simple compile tests
22463
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
22464
 
22465
# Code to be used in simple link tests
22466
lt_simple_link_test_code="$lt_simple_compile_test_code"
22467
 
22468
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
22469
 
22470
# If no C compiler was specified, use CC.
22471
LTCC=${LTCC-"$CC"}
22472
 
22473
# Allow CC to be a program name with arguments.
22474
compiler=$CC
22475
 
22476
 
22477
# Allow CC to be a program name with arguments.
22478
lt_save_CC="$CC"
22479
CC=${RC-"windres"}
22480
compiler=$CC
22481
compiler_RC=$CC
22482
lt_cv_prog_compiler_c_o_RC=yes
22483
 
22484
# The else clause should only fire when bootstrapping the
22485
# libtool distribution, otherwise you forgot to ship ltmain.sh
22486
# with your package, and you will get complaints that there are
22487
# no rules to generate ltmain.sh.
22488
if test -f "$ltmain"; then
22489
  # See if we are running on zsh, and set the options which allow our commands through
22490
  # without removal of \ escapes.
22491
  if test -n "${ZSH_VERSION+set}" ; then
22492
    setopt NO_GLOB_SUBST
22493
  fi
22494
  # Now quote all the things that may contain metacharacters while being
22495
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
22496
  # variables and quote the copies for generation of the libtool script.
22497
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
22498
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22499
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22500
    deplibs_check_method reload_flag reload_cmds need_locks \
22501
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22502
    lt_cv_sys_global_symbol_to_c_name_address \
22503
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22504
    old_postinstall_cmds old_postuninstall_cmds \
22505
    compiler_RC \
22506
    CC_RC \
22507
    LD_RC \
22508
    lt_prog_compiler_wl_RC \
22509
    lt_prog_compiler_pic_RC \
22510
    lt_prog_compiler_static_RC \
22511
    lt_prog_compiler_no_builtin_flag_RC \
22512
    export_dynamic_flag_spec_RC \
22513
    thread_safe_flag_spec_RC \
22514
    whole_archive_flag_spec_RC \
22515
    enable_shared_with_static_runtimes_RC \
22516
    old_archive_cmds_RC \
22517
    old_archive_from_new_cmds_RC \
22518
    predep_objects_RC \
22519
    postdep_objects_RC \
22520
    predeps_RC \
22521
    postdeps_RC \
22522
    compiler_lib_search_path_RC \
22523
    archive_cmds_RC \
22524
    archive_expsym_cmds_RC \
22525
    postinstall_cmds_RC \
22526
    postuninstall_cmds_RC \
22527
    old_archive_from_expsyms_cmds_RC \
22528
    allow_undefined_flag_RC \
22529
    no_undefined_flag_RC \
22530
    export_symbols_cmds_RC \
22531
    hardcode_libdir_flag_spec_RC \
22532
    hardcode_libdir_flag_spec_ld_RC \
22533
    hardcode_libdir_separator_RC \
22534
    hardcode_automatic_RC \
22535
    module_cmds_RC \
22536
    module_expsym_cmds_RC \
22537
    lt_cv_prog_compiler_c_o_RC \
22538
    exclude_expsyms_RC \
22539
    include_expsyms_RC; do
22540
 
22541
    case $var in
22542
    old_archive_cmds_RC | \
22543
    old_archive_from_new_cmds_RC | \
22544
    archive_cmds_RC | \
22545
    archive_expsym_cmds_RC | \
22546
    module_cmds_RC | \
22547
    module_expsym_cmds_RC | \
22548
    old_archive_from_expsyms_cmds_RC | \
22549
    export_symbols_cmds_RC | \
22550
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
22551
    postinstall_cmds | postuninstall_cmds | \
22552
    old_postinstall_cmds | old_postuninstall_cmds | \
22553
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
22554
      # Double-quote double-evaled strings.
22555
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
22556
      ;;
22557
    *)
22558
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
22559
      ;;
22560
    esac
22561
  done
22562
 
22563
  case $lt_echo in
22564
  *'\$0 --fallback-echo"')
22565
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
22566
    ;;
22567
  esac
22568
 
22569
cfgfile="$ofile"
22570
 
22571
  cat <<__EOF__ >> "$cfgfile"
22572
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
22573
 
22574
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22575
 
22576
# Shell to use when invoking shell scripts.
22577
SHELL=$lt_SHELL
22578
 
22579
# Whether or not to build shared libraries.
22580
build_libtool_libs=$enable_shared
22581
 
22582
# Whether or not to build static libraries.
22583
build_old_libs=$enable_static
22584
 
22585
# Whether or not to add -lc for building shared libraries.
22586
build_libtool_need_lc=$archive_cmds_need_lc_RC
22587
 
22588
# Whether or not to disallow shared libs when runtime libs are static
22589
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
22590
 
22591
# Whether or not to optimize for fast installation.
22592
fast_install=$enable_fast_install
22593
 
22594
# The host system.
22595
host_alias=$host_alias
22596
host=$host
22597
 
22598
# An echo program that does not interpret backslashes.
22599
echo=$lt_echo
22600
 
22601
# The archiver.
22602
AR=$lt_AR
22603
AR_FLAGS=$lt_AR_FLAGS
22604
 
22605
# A C compiler.
22606
LTCC=$lt_LTCC
22607
 
22608
# A language-specific compiler.
22609
CC=$lt_compiler_RC
22610
 
22611
# Is the compiler the GNU C compiler?
22612
with_gcc=$GCC_RC
22613
 
22614
# An ERE matcher.
22615
EGREP=$lt_EGREP
22616
 
22617
# The linker used to build libraries.
22618
LD=$lt_LD_RC
22619
 
22620
# Whether we need hard or soft links.
22621
LN_S=$lt_LN_S
22622
 
22623
# A BSD-compatible nm program.
22624
NM=$lt_NM
22625
 
22626
# A symbol stripping program
22627
STRIP=$STRIP
22628
 
22629
# Used to examine libraries when file_magic_cmd begins "file"
22630
MAGIC_CMD=$MAGIC_CMD
22631
 
22632
# Used on cygwin: DLL creation program.
22633
DLLTOOL="$DLLTOOL"
22634
 
22635
# Used on cygwin: object dumper.
22636
OBJDUMP="$OBJDUMP"
22637
 
22638
# Used on cygwin: assembler.
22639
AS="$AS"
22640
 
22641
# The name of the directory that contains temporary libtool files.
22642
objdir=$objdir
22643
 
22644
# How to create reloadable object files.
22645
reload_flag=$lt_reload_flag
22646
reload_cmds=$lt_reload_cmds
22647
 
22648
# How to pass a linker flag through the compiler.
22649
wl=$lt_lt_prog_compiler_wl_RC
22650
 
22651
# Object file suffix (normally "o").
22652
objext="$ac_objext"
22653
 
22654
# Old archive suffix (normally "a").
22655
libext="$libext"
22656
 
22657
# Shared library suffix (normally ".so").
22658
shrext='$shrext'
22659
 
22660
# Executable file suffix (normally "").
22661
exeext="$exeext"
22662
 
22663
# Additional compiler flags for building library objects.
22664
pic_flag=$lt_lt_prog_compiler_pic_RC
22665
pic_mode=$pic_mode
22666
 
22667
# What is the maximum length of a command?
22668
max_cmd_len=$lt_cv_sys_max_cmd_len
22669
 
22670
# Does compiler simultaneously support -c and -o options?
22671
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
22672
 
22673
# Must we lock files when doing compilation ?
22674
need_locks=$lt_need_locks
22675
 
22676
# Do we need the lib prefix for modules?
22677
need_lib_prefix=$need_lib_prefix
22678
 
22679
# Do we need a version for libraries?
22680
need_version=$need_version
22681
 
22682
# Whether dlopen is supported.
22683
dlopen_support=$enable_dlopen
22684
 
22685
# Whether dlopen of programs is supported.
22686
dlopen_self=$enable_dlopen_self
22687
 
22688
# Whether dlopen of statically linked programs is supported.
22689
dlopen_self_static=$enable_dlopen_self_static
22690
 
22691
# Compiler flag to prevent dynamic linking.
22692
link_static_flag=$lt_lt_prog_compiler_static_RC
22693
 
22694
# Compiler flag to turn off builtin functions.
22695
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
22696
 
22697
# Compiler flag to allow reflexive dlopens.
22698
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
22699
 
22700
# Compiler flag to generate shared objects directly from archives.
22701
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
22702
 
22703
# Compiler flag to generate thread-safe objects.
22704
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
22705
 
22706
# Library versioning type.
22707
version_type=$version_type
22708
 
22709
# Format of library name prefix.
22710
libname_spec=$lt_libname_spec
22711
 
22712
# List of archive names.  First name is the real one, the rest are links.
22713
# The last name is the one that the linker finds with -lNAME.
22714
library_names_spec=$lt_library_names_spec
22715
 
22716
# The coded name of the library, if different from the real name.
22717
soname_spec=$lt_soname_spec
22718
 
22719
# Commands used to build and install an old-style archive.
22720
RANLIB=$lt_RANLIB
22721
old_archive_cmds=$lt_old_archive_cmds_RC
22722
old_postinstall_cmds=$lt_old_postinstall_cmds
22723
old_postuninstall_cmds=$lt_old_postuninstall_cmds
22724
 
22725
# Create an old-style archive from a shared archive.
22726
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
22727
 
22728
# Create a temporary old-style archive to link instead of a shared archive.
22729
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
22730
 
22731
# Commands used to build and install a shared archive.
22732
archive_cmds=$lt_archive_cmds_RC
22733
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
22734
postinstall_cmds=$lt_postinstall_cmds
22735
postuninstall_cmds=$lt_postuninstall_cmds
22736
 
22737
# Commands used to build a loadable module (assumed same as above if empty)
22738
module_cmds=$lt_module_cmds_RC
22739
module_expsym_cmds=$lt_module_expsym_cmds_RC
22740
 
22741
# Commands to strip libraries.
22742
old_striplib=$lt_old_striplib
22743
striplib=$lt_striplib
22744
 
22745
# Dependencies to place before the objects being linked to create a
22746
# shared library.
22747
predep_objects=$lt_predep_objects_RC
22748
 
22749
# Dependencies to place after the objects being linked to create a
22750
# shared library.
22751
postdep_objects=$lt_postdep_objects_RC
22752
 
22753
# Dependencies to place before the objects being linked to create a
22754
# shared library.
22755
predeps=$lt_predeps_RC
22756
 
22757
# Dependencies to place after the objects being linked to create a
22758
# shared library.
22759
postdeps=$lt_postdeps_RC
22760
 
22761
# The library search path used internally by the compiler when linking
22762
# a shared library.
22763
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
22764
 
22765
# Method to check whether dependent libraries are shared objects.
22766
deplibs_check_method=$lt_deplibs_check_method
22767
 
22768
# Command to use when deplibs_check_method == file_magic.
22769
file_magic_cmd=$lt_file_magic_cmd
22770
 
22771
# Flag that allows shared libraries with undefined symbols to be built.
22772
allow_undefined_flag=$lt_allow_undefined_flag_RC
22773
 
22774
# Flag that forces no undefined symbols.
22775
no_undefined_flag=$lt_no_undefined_flag_RC
22776
 
22777
# Commands used to finish a libtool library installation in a directory.
22778
finish_cmds=$lt_finish_cmds
22779
 
22780
# Same as above, but a single script fragment to be evaled but not shown.
22781
finish_eval=$lt_finish_eval
22782
 
22783
# Take the output of nm and produce a listing of raw symbols and C names.
22784
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22785
 
22786
# Transform the output of nm in a proper C declaration
22787
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22788
 
22789
# Transform the output of nm in a C name address pair
22790
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22791
 
22792
# This is the shared library runtime path variable.
22793
runpath_var=$runpath_var
22794
 
22795
# This is the shared library path variable.
22796
shlibpath_var=$shlibpath_var
22797
 
22798
# Is shlibpath searched before the hard-coded library search path?
22799
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22800
 
22801
# How to hardcode a shared library path into an executable.
22802
hardcode_action=$hardcode_action_RC
22803
 
22804
# Whether we should hardcode library paths into libraries.
22805
hardcode_into_libs=$hardcode_into_libs
22806
 
22807
# Flag to hardcode \$libdir into a binary during linking.
22808
# This must work even if \$libdir does not exist.
22809
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
22810
 
22811
# If ld is used when linking, flag to hardcode \$libdir into
22812
# a binary during linking. This must work even if \$libdir does
22813
# not exist.
22814
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
22815
 
22816
# Whether we need a single -rpath flag with a separated argument.
22817
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
22818
 
22819
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22820
# resulting binary.
22821
hardcode_direct=$hardcode_direct_RC
22822
 
22823
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22824
# resulting binary.
22825
hardcode_minus_L=$hardcode_minus_L_RC
22826
 
22827
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22828
# the resulting binary.
22829
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
22830
 
22831
# Set to yes if building a shared library automatically hardcodes DIR into the library
22832
# and all subsequent libraries and executables linked against it.
22833
hardcode_automatic=$hardcode_automatic_RC
22834
 
22835
# Variables whose values should be saved in libtool wrapper scripts and
22836
# restored at relink time.
22837
variables_saved_for_relink="$variables_saved_for_relink"
22838
 
22839
# Whether libtool must link a program against all its dependency libraries.
22840
link_all_deplibs=$link_all_deplibs_RC
22841
 
22842
# Compile-time system search path for libraries
22843
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22844
 
22845
# Run-time system search path for libraries
22846
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22847
 
22848
# Fix the shell variable \$srcfile for the compiler.
22849
fix_srcfile_path="$fix_srcfile_path_RC"
22850
 
22851
# Set to yes if exported symbols are required.
22852
always_export_symbols=$always_export_symbols_RC
22853
 
22854
# The commands to list exported symbols.
22855
export_symbols_cmds=$lt_export_symbols_cmds_RC
22856
 
22857
# The commands to extract the exported symbol list from a shared archive.
22858
extract_expsyms_cmds=$lt_extract_expsyms_cmds
22859
 
22860
# Symbols that should not be listed in the preloaded symbols.
22861
exclude_expsyms=$lt_exclude_expsyms_RC
22862
 
22863
# Symbols that must always be exported.
22864
include_expsyms=$lt_include_expsyms_RC
22865
 
22866
# ### END LIBTOOL TAG CONFIG: $tagname
22867
 
22868
__EOF__
22869
 
22870
 
22871
else
22872
  # If there is no Makefile yet, we rely on a make rule to execute
22873
  # `config.status --recheck' to rerun these tests and create the
22874
  # libtool script then.
22875
  test -f Makefile && make "$ltmain"
22876
fi
22877
 
22878
 
22879
ac_ext=c
22880
ac_cpp='$CPP $CPPFLAGS'
22881
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22882
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22883
ac_compiler_gnu=$ac_cv_c_compiler_gnu
22884
 
22885
CC="$lt_save_CC"
22886
 
22887
	;;
22888
 
22889
      *)
216 andreas 22890
	{ { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
22891
$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
88 andreas 22892
   { (exit 1); exit 1; }; }
22893
	;;
22894
      esac
22895
 
22896
      # Append the new tag name to the list of available tags.
22897
      if test -n "$tagname" ; then
22898
      available_tags="$available_tags $tagname"
22899
    fi
22900
    fi
22901
  done
22902
  IFS="$lt_save_ifs"
22903
 
22904
  # Now substitute the updated list of available tags.
22905
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
22906
    mv "${ofile}T" "$ofile"
22907
    chmod +x "$ofile"
22908
  else
22909
    rm -f "${ofile}T"
216 andreas 22910
    { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
22911
$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
88 andreas 22912
   { (exit 1); exit 1; }; }
22913
  fi
22914
fi
22915
 
22916
 
22917
 
22918
# This can be used to rebuild libtool when needed
22919
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
22920
 
22921
# Always use our own libtool.
22922
LIBTOOL='$(SHELL) $(top_builddir)/libtool --silent'
22923
 
22924
# Prevent multiple expansion
22925
 
22926
 
22927
 
22928
 
22929
 
22930
 
22931
 
22932
 
22933
 
22934
 
22935
 
22936
 
22937
 
22938
 
22939
 
22940
 
22941
 
22942
 
22943
 
22944
 
22945
 
22946
 
22947
 
22948
 
22949
 
22950
 
22951
 
22952
 
22953
 
22954
 
22955
 
22956
 
22957
 
22958
 
22959
LIBTOOL_SHELL="/bin/sh ./libtool"
22960
#  LIBTOOL="$LIBTOOL --silent"
22961
KDE_PLUGIN="-avoid-version -module -no-undefined \$(KDE_NO_UNDEFINED) \$(KDE_RPATH) \$(KDE_MT_LDFLAGS)"
22962
 
22963
 
22964
# This hack ensures that libtool creates shared libs for kunittest plugins. By default check_LTLIBRARIES makes static libs.
22965
KDE_CHECK_PLUGIN="\$(KDE_PLUGIN) -rpath \$(libdir)"
22966
 
22967
 
22968
# we patch configure quite some so we better keep that consistent for incremental runs
22969
AUTOCONF='$(SHELL) $(top_srcdir)/admin/cvs.sh configure || touch configure'
22970
 
22971
 
22972
 
22973
 
22974
 
22975
    # Extract the first word of "msgfmt", so it can be a program name with args.
22976
set dummy msgfmt; ac_word=$2
216 andreas 22977
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22978
$as_echo_n "checking for $ac_word... " >&6; }
88 andreas 22979
if test "${ac_cv_path_MSGFMT+set}" = set; then
216 andreas 22980
  $as_echo_n "(cached) " >&6
88 andreas 22981
else
22982
  case "$MSGFMT" in
22983
  /*)
22984
  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
22985
  ;;
22986
  *)
22987
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
22988
  for ac_dir in $PATH; do
22989
    test -z "$ac_dir" && ac_dir=.
22990
    if test -f $ac_dir/$ac_word; then
22991
      if test -n "`$ac_dir/$ac_word --version 2>&1 | grep 'GNU gettext'`"; then
22992
	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
22993
	break
22994
      fi
22995
    fi
22996
  done
22997
  IFS="$ac_save_ifs"
22998
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
22999
  ;;
23000
esac
23001
fi
23002
MSGFMT="$ac_cv_path_MSGFMT"
23003
if test -n "$MSGFMT"; then
216 andreas 23004
  { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
23005
$as_echo "$MSGFMT" >&6; }
88 andreas 23006
else
216 andreas 23007
  { $as_echo "$as_me:$LINENO: result: no" >&5
23008
$as_echo "no" >&6; }
88 andreas 23009
fi
23010
 
23011
    # Extract the first word of "gmsgfmt", so it can be a program name with args.
23012
set dummy gmsgfmt; ac_word=$2
216 andreas 23013
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23014
$as_echo_n "checking for $ac_word... " >&6; }
88 andreas 23015
if test "${ac_cv_path_GMSGFMT+set}" = set; then
216 andreas 23016
  $as_echo_n "(cached) " >&6
88 andreas 23017
else
23018
  case $GMSGFMT in
23019
  [\\/]* | ?:[\\/]*)
23020
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
23021
  ;;
23022
  *)
23023
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23024
for as_dir in $PATH
23025
do
23026
  IFS=$as_save_IFS
23027
  test -z "$as_dir" && as_dir=.
23028
  for ac_exec_ext in '' $ac_executable_extensions; do
23029
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23030
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
216 andreas 23031
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
88 andreas 23032
    break 2
23033
  fi
23034
done
23035
done
23036
IFS=$as_save_IFS
23037
 
23038
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
23039
  ;;
23040
esac
23041
fi
23042
GMSGFMT=$ac_cv_path_GMSGFMT
23043
if test -n "$GMSGFMT"; then
216 andreas 23044
  { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
23045
$as_echo "$GMSGFMT" >&6; }
88 andreas 23046
else
216 andreas 23047
  { $as_echo "$as_me:$LINENO: result: no" >&5
23048
$as_echo "no" >&6; }
88 andreas 23049
fi
23050
 
23051
 
23052
 
23053
     if test -z "`$GMSGFMT --version 2>&1 | grep 'GNU gettext'`"; then
216 andreas 23054
        { $as_echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
23055
$as_echo "found msgfmt program is not GNU msgfmt; ignore it" >&6; }
88 andreas 23056
        GMSGFMT=":"
23057
      fi
23058
      MSGFMT=$GMSGFMT
23059
 
23060
 
23061
 
23062
      # Extract the first word of "xgettext", so it can be a program name with args.
23063
set dummy xgettext; ac_word=$2
216 andreas 23064
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23065
$as_echo_n "checking for $ac_word... " >&6; }
88 andreas 23066
if test "${ac_cv_path_XGETTEXT+set}" = set; then
216 andreas 23067
  $as_echo_n "(cached) " >&6
88 andreas 23068
else
23069
  case "$XGETTEXT" in
23070
  /*)
23071
  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
23072
  ;;
23073
  *)
23074
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
23075
  for ac_dir in $PATH; do
23076
    test -z "$ac_dir" && ac_dir=.
23077
    if test -f $ac_dir/$ac_word; then
23078
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
23079
	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
23080
	break
23081
      fi
23082
    fi
23083
  done
23084
  IFS="$ac_save_ifs"
23085
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
23086
  ;;
23087
esac
23088
fi
23089
XGETTEXT="$ac_cv_path_XGETTEXT"
23090
if test -n "$XGETTEXT"; then
216 andreas 23091
  { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
23092
$as_echo "$XGETTEXT" >&6; }
88 andreas 23093
else
216 andreas 23094
  { $as_echo "$as_me:$LINENO: result: no" >&5
23095
$as_echo "no" >&6; }
88 andreas 23096
fi
23097
 
23098
 
23099
            if test "$XGETTEXT" != ":"; then
23100
			if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
23101
	  : ;
23102
	else
216 andreas 23103
	  { $as_echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
23104
$as_echo "found xgettext programs is not GNU xgettext; ignore it" >&6; }
88 andreas 23105
	  XGETTEXT=":"
23106
	fi
23107
      fi
23108
 
23109
 
23110
 
23111
 
23112
 
23113
if test -z "3.2.0"; then
23114
  # Current default Qt version: 3.3
23115
  kde_qtver=3
23116
  kde_qtsubver=3
23117
else
23118
  kde_qtsubver=`echo "3.2.0" | sed -e 's#[0-9][0-9]*\.\([0-9][0-9]*\).*#\1#'`
23119
  # following is the check if subversion isnt found in passed argument
23120
  if test "$kde_qtsubver" = "3.2.0"; then
23121
    kde_qtsubver=1
23122
  fi
23123
  kde_qtver=`echo "3.2.0" | sed -e 's#^\([0-9][0-9]*\)\..*#\1#'`
23124
  if test "$kde_qtver" = "1"; then
23125
    kde_qtsubver=42
23126
  fi
23127
fi
23128
 
23129
if test -z ""; then
23130
  if test "$kde_qtver" = "2"; then
23131
    if test $kde_qtsubver -gt 0; then
23132
      kde_qt_minversion=">= Qt 2.2.2"
23133
    else
23134
      kde_qt_minversion=">= Qt 2.0.2"
23135
    fi
23136
  fi
23137
  if test "$kde_qtver" = "3"; then
23138
    if test $kde_qtsubver -gt 0; then
23139
	 if test $kde_qtsubver -gt 1; then
23140
	    if test $kde_qtsubver -gt 2; then
23141
		kde_qt_minversion=">= Qt 3.3 and < 4.0"
23142
	    else
23143
	        kde_qt_minversion=">= Qt 3.2 and < 4.0"
23144
	    fi
23145
	 else
23146
            kde_qt_minversion=">= Qt 3.1 (20021021) and < 4.0"
23147
         fi
23148
    else
23149
      kde_qt_minversion=">= Qt 3.0 and < 4.0"
23150
    fi
23151
  fi
23152
  if test "$kde_qtver" = "1"; then
23153
    kde_qt_minversion=">= 1.42 and < 2.0"
23154
  fi
23155
else
23156
   kde_qt_minversion=""
23157
fi
23158
 
23159
if test -z ""; then
23160
   if test $kde_qtver = 3; then
23161
     if test $kde_qtsubver -gt 0; then
23162
       kde_qt_verstring="QT_VERSION >= 0x03@VER@00 && QT_VERSION < 0x040000"
23163
       qtsubver=`echo "00$kde_qtsubver" | sed -e 's,.*\(..\)$,\1,'`
23164
       kde_qt_verstring=`echo $kde_qt_verstring | sed -e "s,@VER@,$qtsubver,"`
23165
     else
23166
       kde_qt_verstring="QT_VERSION >= 300 && QT_VERSION < 0x040000"
23167
     fi
23168
   fi
23169
   if test $kde_qtver = 2; then
23170
     if test $kde_qtsubver -gt 0; then
23171
       kde_qt_verstring="QT_VERSION >= 222"
23172
     else
23173
       kde_qt_verstring="QT_VERSION >= 200"
23174
     fi
23175
   fi
23176
   if test $kde_qtver = 1; then
23177
    kde_qt_verstring="QT_VERSION >= 142 && QT_VERSION < 200"
23178
   fi
23179
else
23180
   kde_qt_verstring=""
23181
fi
23182
 
23183
if test $kde_qtver = 4; then
23184
  kde_qt_dirs="$QTDIR /usr/lib/qt4 /usr/lib/qt /usr/share/qt4"
23185
fi
23186
if test $kde_qtver = 3; then
23187
  kde_qt_dirs="$QTDIR /usr/lib/qt3 /usr/lib/qt /usr/share/qt3"
23188
fi
23189
if test $kde_qtver = 2; then
23190
   kde_qt_dirs="$QTDIR /usr/lib/qt2 /usr/lib/qt"
23191
fi
23192
if test $kde_qtver = 1; then
23193
   kde_qt_dirs="$QTDIR /usr/lib/qt"
23194
fi
23195
 
23196
 
23197
 
23198
     ac_ext=cpp
23199
ac_cpp='$CXXCPP $CPPFLAGS'
23200
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23201
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23202
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23203
 
23204
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23205
 
23206
 
23207
    ac_save_CXXFLAGS="$CXXFLAGS"
23208
    CXXFLAGS="`echo $CXXFLAGS | sed s/-fno-exceptions//`"
23209
 
216 andreas 23210
    { $as_echo "$as_me:$LINENO: checking if C++ programs can be compiled" >&5
23211
$as_echo_n "checking if C++ programs can be compiled... " >&6; }
88 andreas 23212
    if test "${kde_cv_stl_works+set}" = set; then
216 andreas 23213
  $as_echo_n "(cached) " >&6
88 andreas 23214
else
23215
 
23216
      cat >conftest.$ac_ext <<_ACEOF
23217
/* confdefs.h.  */
23218
_ACEOF
23219
cat confdefs.h >>conftest.$ac_ext
23220
cat >>conftest.$ac_ext <<_ACEOF
23221
/* end confdefs.h.  */
23222
 
23223
#include <string>
23224
using namespace std;
23225
 
23226
int
23227
main ()
23228
{
23229
 
23230
  string astring="Hallo Welt.";
23231
  astring.erase(0, 6); // now astring is "Welt"
23232
  return 0;
23233
 
23234
  ;
23235
  return 0;
23236
}
23237
_ACEOF
23238
rm -f conftest.$ac_objext
23239
if { (ac_try="$ac_compile"
23240
case "(($ac_try" in
23241
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23242
  *) ac_try_echo=$ac_try;;
23243
esac
216 andreas 23244
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23245
$as_echo "$ac_try_echo") >&5
88 andreas 23246
  (eval "$ac_compile") 2>conftest.er1
23247
  ac_status=$?
23248
  grep -v '^ *+' conftest.er1 >conftest.err
23249
  rm -f conftest.er1
23250
  cat conftest.err >&5
216 andreas 23251
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 23252
  (exit $ac_status); } && {
23253
	 test -z "$ac_cxx_werror_flag" ||
23254
	 test ! -s conftest.err
23255
       } && test -s conftest.$ac_objext; then
23256
  kde_cv_stl_works=yes
23257
else
216 andreas 23258
  $as_echo "$as_me: failed program was:" >&5
88 andreas 23259
sed 's/^/| /' conftest.$ac_ext >&5
23260
 
23261
	kde_cv_stl_works=no
23262
fi
23263
 
23264
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23265
 
23266
fi
23267
 
23268
 
216 andreas 23269
   { $as_echo "$as_me:$LINENO: result: $kde_cv_stl_works" >&5
23270
$as_echo "$kde_cv_stl_works" >&6; }
88 andreas 23271
 
23272
   if test "$kde_cv_stl_works" = "yes"; then
23273
     # back compatible
23274
 
23275
cat >>confdefs.h <<_ACEOF
23276
#define HAVE_SGI_STL 1
23277
_ACEOF
23278
 
23279
   else
216 andreas 23280
	 { { $as_echo "$as_me:$LINENO: error: Your Installation isn't able to compile simple C++ programs.
88 andreas 23281
Check config.log for details - if you're using a Linux distribution you might miss
23282
a package named similar to libstdc++-dev." >&5
216 andreas 23283
$as_echo "$as_me: error: Your Installation isn't able to compile simple C++ programs.
88 andreas 23284
Check config.log for details - if you're using a Linux distribution you might miss
23285
a package named similar to libstdc++-dev." >&2;}
23286
   { (exit 1); exit 1; }; }
23287
   fi
23288
 
23289
   CXXFLAGS="$ac_save_CXXFLAGS"
23290
   ac_ext=c
23291
ac_cpp='$CPP $CPPFLAGS'
23292
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23293
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23294
ac_compiler_gnu=$ac_cv_c_compiler_gnu
23295
 
23296
 
23297
 
23298
 
216 andreas 23299
{ $as_echo "$as_me:$LINENO: checking for strlcat" >&5
23300
$as_echo_n "checking for strlcat... " >&6; }
88 andreas 23301
if test "${kde_cv_func_strlcat+set}" = set; then
216 andreas 23302
  $as_echo_n "(cached) " >&6
88 andreas 23303
else
23304
 
23305
 
23306
 ac_ext=cpp
23307
ac_cpp='$CXXCPP $CPPFLAGS'
23308
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23309
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23310
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23311
 
23312
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23313
 
23314
 
23315
save_CXXFLAGS="$CXXFLAGS"
23316
kde_safe_LIBS="$LIBS"
23317
LIBS="$LIBS $X_EXTRA_LIBS"
23318
if test "$GXX" = "yes"; then
23319
CXXFLAGS="$CXXFLAGS -pedantic-errors"
23320
fi
23321
cat >conftest.$ac_ext <<_ACEOF
23322
/* confdefs.h.  */
23323
_ACEOF
23324
cat confdefs.h >>conftest.$ac_ext
23325
cat >>conftest.$ac_ext <<_ACEOF
23326
/* end confdefs.h.  */
23327
 
23328
 
23329
#include <string.h>
23330
 
23331
 
23332
int
23333
main ()
23334
{
23335
 
23336
 char buf[20];
23337
  buf[0]='\0';
23338
  strlcat(buf, "KDE function test", sizeof(buf));
23339
 
23340
 
23341
  ;
23342
  return 0;
23343
}
23344
_ACEOF
23345
rm -f conftest.$ac_objext
23346
if { (ac_try="$ac_compile"
23347
case "(($ac_try" in
23348
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23349
  *) ac_try_echo=$ac_try;;
23350
esac
216 andreas 23351
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23352
$as_echo "$ac_try_echo") >&5
88 andreas 23353
  (eval "$ac_compile") 2>conftest.er1
23354
  ac_status=$?
23355
  grep -v '^ *+' conftest.er1 >conftest.err
23356
  rm -f conftest.er1
23357
  cat conftest.err >&5
216 andreas 23358
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 23359
  (exit $ac_status); } && {
23360
	 test -z "$ac_cxx_werror_flag" ||
23361
	 test ! -s conftest.err
23362
       } && test -s conftest.$ac_objext; then
23363
  kde_cv_func_strlcat=yes
23364
else
216 andreas 23365
  $as_echo "$as_me: failed program was:" >&5
88 andreas 23366
sed 's/^/| /' conftest.$ac_ext >&5
23367
 
23368
	kde_cv_func_strlcat=no
23369
fi
23370
 
23371
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23372
CXXFLAGS="$save_CXXFLAGS"
23373
LIBS="$kde_safe_LIBS"
23374
ac_ext=c
23375
ac_cpp='$CPP $CPPFLAGS'
23376
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23377
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23378
ac_compiler_gnu=$ac_cv_c_compiler_gnu
23379
 
23380
 
23381
fi
23382
 
23383
 
216 andreas 23384
{ $as_echo "$as_me:$LINENO: result: $kde_cv_func_strlcat" >&5
23385
$as_echo "$kde_cv_func_strlcat" >&6; }
88 andreas 23386
 
216 andreas 23387
{ $as_echo "$as_me:$LINENO: checking if strlcat needs custom prototype" >&5
23388
$as_echo_n "checking if strlcat needs custom prototype... " >&6; }
88 andreas 23389
if test "${kde_cv_proto_strlcat+set}" = set; then
216 andreas 23390
  $as_echo_n "(cached) " >&6
88 andreas 23391
else
23392
 
23393
if test "x$kde_cv_func_strlcat" = xyes; then
23394
  kde_cv_proto_strlcat=no
23395
else
23396
  case "strlcat" in
23397
	setenv|unsetenv|usleep|random|srandom|seteuid|mkstemps|mkstemp|revoke|vsnprintf|strlcpy|strlcat)
23398
		kde_cv_proto_strlcat="yes - in libkdefakes"
23399
		;;
23400
	*)
23401
		kde_cv_proto_strlcat=unknown
23402
		;;
23403
  esac
23404
fi
23405
 
23406
if test "x$kde_cv_proto_strlcat" = xunknown; then
23407
 
23408
 
23409
 ac_ext=cpp
23410
ac_cpp='$CXXCPP $CPPFLAGS'
23411
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23412
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23413
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23414
 
23415
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23416
 
23417
 
23418
  kde_safe_libs=$LIBS
23419
  LIBS="$LIBS $X_EXTRA_LIBS"
23420
  cat >conftest.$ac_ext <<_ACEOF
23421
/* confdefs.h.  */
23422
_ACEOF
23423
cat confdefs.h >>conftest.$ac_ext
23424
cat >>conftest.$ac_ext <<_ACEOF
23425
/* end confdefs.h.  */
23426
 
23427
 
23428
#include <string.h>
23429
 
23430
 
23431
extern "C" unsigned long strlcat(char*, const char*, unsigned long);
23432
 
23433
int
23434
main ()
23435
{
23436
 
23437
 char buf[20];
23438
  buf[0]='\0';
23439
  strlcat(buf, "KDE function test", sizeof(buf));
23440
 
23441
 
23442
  ;
23443
  return 0;
23444
}
23445
_ACEOF
23446
rm -f conftest.$ac_objext conftest$ac_exeext
23447
if { (ac_try="$ac_link"
23448
case "(($ac_try" in
23449
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23450
  *) ac_try_echo=$ac_try;;
23451
esac
216 andreas 23452
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23453
$as_echo "$ac_try_echo") >&5
88 andreas 23454
  (eval "$ac_link") 2>conftest.er1
23455
  ac_status=$?
23456
  grep -v '^ *+' conftest.er1 >conftest.err
23457
  rm -f conftest.er1
23458
  cat conftest.err >&5
216 andreas 23459
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 23460
  (exit $ac_status); } && {
23461
	 test -z "$ac_cxx_werror_flag" ||
23462
	 test ! -s conftest.err
216 andreas 23463
       } && test -s conftest$ac_exeext && {
23464
	 test "$cross_compiling" = yes ||
23465
	 $as_test_x conftest$ac_exeext
23466
       }; then
88 andreas 23467
   kde_cv_func_strlcat=yes
23468
  kde_cv_proto_strlcat=yes
23469
else
216 andreas 23470
  $as_echo "$as_me: failed program was:" >&5
88 andreas 23471
sed 's/^/| /' conftest.$ac_ext >&5
23472
 
23473
	kde_cv_proto_strlcat="strlcat unavailable"
23474
 
23475
fi
23476
 
216 andreas 23477
rm -rf conftest.dSYM
88 andreas 23478
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23479
      conftest$ac_exeext conftest.$ac_ext
23480
LIBS=$kde_safe_libs
23481
ac_ext=c
23482
ac_cpp='$CPP $CPPFLAGS'
23483
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23484
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23485
ac_compiler_gnu=$ac_cv_c_compiler_gnu
23486
 
23487
fi
23488
 
23489
fi
23490
 
216 andreas 23491
{ $as_echo "$as_me:$LINENO: result: $kde_cv_proto_strlcat" >&5
23492
$as_echo "$kde_cv_proto_strlcat" >&6; }
88 andreas 23493
 
23494
if test "x$kde_cv_func_strlcat" = xyes; then
23495
 
23496
cat >>confdefs.h <<\_ACEOF
23497
#define HAVE_STRLCAT 1
23498
_ACEOF
23499
 
23500
 
23501
fi
23502
if test "x$kde_cv_proto_strlcat" = xno; then
23503
 
23504
cat >>confdefs.h <<\_ACEOF
23505
#define HAVE_STRLCAT_PROTO 1
23506
_ACEOF
23507
 
23508
fi
23509
 
23510
 
23511
 
23512
 
23513
 
23514
 
23515
 
216 andreas 23516
{ $as_echo "$as_me:$LINENO: checking for strlcpy" >&5
23517
$as_echo_n "checking for strlcpy... " >&6; }
88 andreas 23518
if test "${kde_cv_func_strlcpy+set}" = set; then
216 andreas 23519
  $as_echo_n "(cached) " >&6
88 andreas 23520
else
23521
 
23522
 
23523
 ac_ext=cpp
23524
ac_cpp='$CXXCPP $CPPFLAGS'
23525
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23526
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23527
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23528
 
23529
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23530
 
23531
 
23532
save_CXXFLAGS="$CXXFLAGS"
23533
kde_safe_LIBS="$LIBS"
23534
LIBS="$LIBS $X_EXTRA_LIBS"
23535
if test "$GXX" = "yes"; then
23536
CXXFLAGS="$CXXFLAGS -pedantic-errors"
23537
fi
23538
cat >conftest.$ac_ext <<_ACEOF
23539
/* confdefs.h.  */
23540
_ACEOF
23541
cat confdefs.h >>conftest.$ac_ext
23542
cat >>conftest.$ac_ext <<_ACEOF
23543
/* end confdefs.h.  */
23544
 
23545
 
23546
#include <string.h>
23547
 
23548
 
23549
int
23550
main ()
23551
{
23552
 
23553
 char buf[20];
23554
  strlcpy(buf, "KDE function test", sizeof(buf));
23555
 
23556
 
23557
  ;
23558
  return 0;
23559
}
23560
_ACEOF
23561
rm -f conftest.$ac_objext
23562
if { (ac_try="$ac_compile"
23563
case "(($ac_try" in
23564
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23565
  *) ac_try_echo=$ac_try;;
23566
esac
216 andreas 23567
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23568
$as_echo "$ac_try_echo") >&5
88 andreas 23569
  (eval "$ac_compile") 2>conftest.er1
23570
  ac_status=$?
23571
  grep -v '^ *+' conftest.er1 >conftest.err
23572
  rm -f conftest.er1
23573
  cat conftest.err >&5
216 andreas 23574
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 23575
  (exit $ac_status); } && {
23576
	 test -z "$ac_cxx_werror_flag" ||
23577
	 test ! -s conftest.err
23578
       } && test -s conftest.$ac_objext; then
23579
  kde_cv_func_strlcpy=yes
23580
else
216 andreas 23581
  $as_echo "$as_me: failed program was:" >&5
88 andreas 23582
sed 's/^/| /' conftest.$ac_ext >&5
23583
 
23584
	kde_cv_func_strlcpy=no
23585
fi
23586
 
23587
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23588
CXXFLAGS="$save_CXXFLAGS"
23589
LIBS="$kde_safe_LIBS"
23590
ac_ext=c
23591
ac_cpp='$CPP $CPPFLAGS'
23592
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23593
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23594
ac_compiler_gnu=$ac_cv_c_compiler_gnu
23595
 
23596
 
23597
fi
23598
 
23599
 
216 andreas 23600
{ $as_echo "$as_me:$LINENO: result: $kde_cv_func_strlcpy" >&5
23601
$as_echo "$kde_cv_func_strlcpy" >&6; }
88 andreas 23602
 
216 andreas 23603
{ $as_echo "$as_me:$LINENO: checking if strlcpy needs custom prototype" >&5
23604
$as_echo_n "checking if strlcpy needs custom prototype... " >&6; }
88 andreas 23605
if test "${kde_cv_proto_strlcpy+set}" = set; then
216 andreas 23606
  $as_echo_n "(cached) " >&6
88 andreas 23607
else
23608
 
23609
if test "x$kde_cv_func_strlcpy" = xyes; then
23610
  kde_cv_proto_strlcpy=no
23611
else
23612
  case "strlcpy" in
23613
	setenv|unsetenv|usleep|random|srandom|seteuid|mkstemps|mkstemp|revoke|vsnprintf|strlcpy|strlcat)
23614
		kde_cv_proto_strlcpy="yes - in libkdefakes"
23615
		;;
23616
	*)
23617
		kde_cv_proto_strlcpy=unknown
23618
		;;
23619
  esac
23620
fi
23621
 
23622
if test "x$kde_cv_proto_strlcpy" = xunknown; then
23623
 
23624
 
23625
 ac_ext=cpp
23626
ac_cpp='$CXXCPP $CPPFLAGS'
23627
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23628
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23629
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23630
 
23631
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23632
 
23633
 
23634
  kde_safe_libs=$LIBS
23635
  LIBS="$LIBS $X_EXTRA_LIBS"
23636
  cat >conftest.$ac_ext <<_ACEOF
23637
/* confdefs.h.  */
23638
_ACEOF
23639
cat confdefs.h >>conftest.$ac_ext
23640
cat >>conftest.$ac_ext <<_ACEOF
23641
/* end confdefs.h.  */
23642
 
23643
 
23644
#include <string.h>
23645
 
23646
 
23647
extern "C" unsigned long strlcpy(char*, const char*, unsigned long);
23648
 
23649
int
23650
main ()
23651
{
23652
 
23653
 char buf[20];
23654
  strlcpy(buf, "KDE function test", sizeof(buf));
23655
 
23656
 
23657
  ;
23658
  return 0;
23659
}
23660
_ACEOF
23661
rm -f conftest.$ac_objext conftest$ac_exeext
23662
if { (ac_try="$ac_link"
23663
case "(($ac_try" in
23664
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23665
  *) ac_try_echo=$ac_try;;
23666
esac
216 andreas 23667
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23668
$as_echo "$ac_try_echo") >&5
88 andreas 23669
  (eval "$ac_link") 2>conftest.er1
23670
  ac_status=$?
23671
  grep -v '^ *+' conftest.er1 >conftest.err
23672
  rm -f conftest.er1
23673
  cat conftest.err >&5
216 andreas 23674
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 23675
  (exit $ac_status); } && {
23676
	 test -z "$ac_cxx_werror_flag" ||
23677
	 test ! -s conftest.err
216 andreas 23678
       } && test -s conftest$ac_exeext && {
23679
	 test "$cross_compiling" = yes ||
23680
	 $as_test_x conftest$ac_exeext
23681
       }; then
88 andreas 23682
   kde_cv_func_strlcpy=yes
23683
  kde_cv_proto_strlcpy=yes
23684
else
216 andreas 23685
  $as_echo "$as_me: failed program was:" >&5
88 andreas 23686
sed 's/^/| /' conftest.$ac_ext >&5
23687
 
23688
	kde_cv_proto_strlcpy="strlcpy unavailable"
23689
 
23690
fi
23691
 
216 andreas 23692
rm -rf conftest.dSYM
88 andreas 23693
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23694
      conftest$ac_exeext conftest.$ac_ext
23695
LIBS=$kde_safe_libs
23696
ac_ext=c
23697
ac_cpp='$CPP $CPPFLAGS'
23698
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23699
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23700
ac_compiler_gnu=$ac_cv_c_compiler_gnu
23701
 
23702
fi
23703
 
23704
fi
23705
 
216 andreas 23706
{ $as_echo "$as_me:$LINENO: result: $kde_cv_proto_strlcpy" >&5
23707
$as_echo "$kde_cv_proto_strlcpy" >&6; }
88 andreas 23708
 
23709
if test "x$kde_cv_func_strlcpy" = xyes; then
23710
 
23711
cat >>confdefs.h <<\_ACEOF
23712
#define HAVE_STRLCPY 1
23713
_ACEOF
23714
 
23715
 
23716
fi
23717
if test "x$kde_cv_proto_strlcpy" = xno; then
23718
 
23719
cat >>confdefs.h <<\_ACEOF
23720
#define HAVE_STRLCPY_PROTO 1
23721
_ACEOF
23722
 
23723
fi
23724
 
23725
 
23726
 
23727
 
23728
 
23729
 
216 andreas 23730
      { $as_echo "$as_me:$LINENO: checking for main in -lutil" >&5
23731
$as_echo_n "checking for main in -lutil... " >&6; }
88 andreas 23732
if test "${ac_cv_lib_util_main+set}" = set; then
216 andreas 23733
  $as_echo_n "(cached) " >&6
88 andreas 23734
else
23735
  ac_check_lib_save_LIBS=$LIBS
23736
LIBS="-lutil  $LIBS"
23737
cat >conftest.$ac_ext <<_ACEOF
23738
/* confdefs.h.  */
23739
_ACEOF
23740
cat confdefs.h >>conftest.$ac_ext
23741
cat >>conftest.$ac_ext <<_ACEOF
23742
/* end confdefs.h.  */
23743
 
23744
 
23745
int
23746
main ()
23747
{
23748
return main ();
23749
  ;
23750
  return 0;
23751
}
23752
_ACEOF
23753
rm -f conftest.$ac_objext conftest$ac_exeext
23754
if { (ac_try="$ac_link"
23755
case "(($ac_try" in
23756
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23757
  *) ac_try_echo=$ac_try;;
23758
esac
216 andreas 23759
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23760
$as_echo "$ac_try_echo") >&5
88 andreas 23761
  (eval "$ac_link") 2>conftest.er1
23762
  ac_status=$?
23763
  grep -v '^ *+' conftest.er1 >conftest.err
23764
  rm -f conftest.er1
23765
  cat conftest.err >&5
216 andreas 23766
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 23767
  (exit $ac_status); } && {
23768
	 test -z "$ac_c_werror_flag" ||
23769
	 test ! -s conftest.err
216 andreas 23770
       } && test -s conftest$ac_exeext && {
23771
	 test "$cross_compiling" = yes ||
23772
	 $as_test_x conftest$ac_exeext
23773
       }; then
88 andreas 23774
  ac_cv_lib_util_main=yes
23775
else
216 andreas 23776
  $as_echo "$as_me: failed program was:" >&5
88 andreas 23777
sed 's/^/| /' conftest.$ac_ext >&5
23778
 
23779
	ac_cv_lib_util_main=no
23780
fi
23781
 
216 andreas 23782
rm -rf conftest.dSYM
88 andreas 23783
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23784
      conftest$ac_exeext conftest.$ac_ext
23785
LIBS=$ac_check_lib_save_LIBS
23786
fi
216 andreas 23787
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_main" >&5
23788
$as_echo "$ac_cv_lib_util_main" >&6; }
23789
if test "x$ac_cv_lib_util_main" = x""yes; then
88 andreas 23790
  LIBUTIL="-lutil"
23791
fi
23792
 
216 andreas 23793
   { $as_echo "$as_me:$LINENO: checking for main in -lcompat" >&5
23794
$as_echo_n "checking for main in -lcompat... " >&6; }
88 andreas 23795
if test "${ac_cv_lib_compat_main+set}" = set; then
216 andreas 23796
  $as_echo_n "(cached) " >&6
88 andreas 23797
else
23798
  ac_check_lib_save_LIBS=$LIBS
23799
LIBS="-lcompat  $LIBS"
23800
cat >conftest.$ac_ext <<_ACEOF
23801
/* confdefs.h.  */
23802
_ACEOF
23803
cat confdefs.h >>conftest.$ac_ext
23804
cat >>conftest.$ac_ext <<_ACEOF
23805
/* end confdefs.h.  */
23806
 
23807
 
23808
int
23809
main ()
23810
{
23811
return main ();
23812
  ;
23813
  return 0;
23814
}
23815
_ACEOF
23816
rm -f conftest.$ac_objext conftest$ac_exeext
23817
if { (ac_try="$ac_link"
23818
case "(($ac_try" in
23819
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23820
  *) ac_try_echo=$ac_try;;
23821
esac
216 andreas 23822
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23823
$as_echo "$ac_try_echo") >&5
88 andreas 23824
  (eval "$ac_link") 2>conftest.er1
23825
  ac_status=$?
23826
  grep -v '^ *+' conftest.er1 >conftest.err
23827
  rm -f conftest.er1
23828
  cat conftest.err >&5
216 andreas 23829
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 23830
  (exit $ac_status); } && {
23831
	 test -z "$ac_c_werror_flag" ||
23832
	 test ! -s conftest.err
216 andreas 23833
       } && test -s conftest$ac_exeext && {
23834
	 test "$cross_compiling" = yes ||
23835
	 $as_test_x conftest$ac_exeext
23836
       }; then
88 andreas 23837
  ac_cv_lib_compat_main=yes
23838
else
216 andreas 23839
  $as_echo "$as_me: failed program was:" >&5
88 andreas 23840
sed 's/^/| /' conftest.$ac_ext >&5
23841
 
23842
	ac_cv_lib_compat_main=no
23843
fi
23844
 
216 andreas 23845
rm -rf conftest.dSYM
88 andreas 23846
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23847
      conftest$ac_exeext conftest.$ac_ext
23848
LIBS=$ac_check_lib_save_LIBS
23849
fi
216 andreas 23850
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
23851
$as_echo "$ac_cv_lib_compat_main" >&6; }
23852
if test "x$ac_cv_lib_compat_main" = x""yes; then
88 andreas 23853
  LIBCOMPAT="-lcompat"
23854
fi
23855
 
23856
   kde_have_crypt=
216 andreas 23857
   { $as_echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
23858
$as_echo_n "checking for crypt in -lcrypt... " >&6; }
88 andreas 23859
if test "${ac_cv_lib_crypt_crypt+set}" = set; then
216 andreas 23860
  $as_echo_n "(cached) " >&6
88 andreas 23861
else
23862
  ac_check_lib_save_LIBS=$LIBS
23863
LIBS="-lcrypt  $LIBS"
23864
cat >conftest.$ac_ext <<_ACEOF
23865
/* confdefs.h.  */
23866
_ACEOF
23867
cat confdefs.h >>conftest.$ac_ext
23868
cat >>conftest.$ac_ext <<_ACEOF
23869
/* end confdefs.h.  */
23870
 
23871
/* Override any GCC internal prototype to avoid an error.
23872
   Use char because int might match the return type of a GCC
23873
   builtin and then its argument prototype would still apply.  */
23874
#ifdef __cplusplus
23875
extern "C"
23876
#endif
23877
char crypt ();
23878
int
23879
main ()
23880
{
23881
return crypt ();
23882
  ;
23883
  return 0;
23884
}
23885
_ACEOF
23886
rm -f conftest.$ac_objext conftest$ac_exeext
23887
if { (ac_try="$ac_link"
23888
case "(($ac_try" in
23889
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23890
  *) ac_try_echo=$ac_try;;
23891
esac
216 andreas 23892
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23893
$as_echo "$ac_try_echo") >&5
88 andreas 23894
  (eval "$ac_link") 2>conftest.er1
23895
  ac_status=$?
23896
  grep -v '^ *+' conftest.er1 >conftest.err
23897
  rm -f conftest.er1
23898
  cat conftest.err >&5
216 andreas 23899
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 23900
  (exit $ac_status); } && {
23901
	 test -z "$ac_c_werror_flag" ||
23902
	 test ! -s conftest.err
216 andreas 23903
       } && test -s conftest$ac_exeext && {
23904
	 test "$cross_compiling" = yes ||
23905
	 $as_test_x conftest$ac_exeext
23906
       }; then
88 andreas 23907
  ac_cv_lib_crypt_crypt=yes
23908
else
216 andreas 23909
  $as_echo "$as_me: failed program was:" >&5
88 andreas 23910
sed 's/^/| /' conftest.$ac_ext >&5
23911
 
23912
	ac_cv_lib_crypt_crypt=no
23913
fi
23914
 
216 andreas 23915
rm -rf conftest.dSYM
88 andreas 23916
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23917
      conftest$ac_exeext conftest.$ac_ext
23918
LIBS=$ac_check_lib_save_LIBS
23919
fi
216 andreas 23920
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
23921
$as_echo "$ac_cv_lib_crypt_crypt" >&6; }
23922
if test "x$ac_cv_lib_crypt_crypt" = x""yes; then
88 andreas 23923
  LIBCRYPT="-lcrypt"; kde_have_crypt=yes
23924
else
216 andreas 23925
  { $as_echo "$as_me:$LINENO: checking for crypt in -lc" >&5
23926
$as_echo_n "checking for crypt in -lc... " >&6; }
88 andreas 23927
if test "${ac_cv_lib_c_crypt+set}" = set; then
216 andreas 23928
  $as_echo_n "(cached) " >&6
88 andreas 23929
else
23930
  ac_check_lib_save_LIBS=$LIBS
23931
LIBS="-lc  $LIBS"
23932
cat >conftest.$ac_ext <<_ACEOF
23933
/* confdefs.h.  */
23934
_ACEOF
23935
cat confdefs.h >>conftest.$ac_ext
23936
cat >>conftest.$ac_ext <<_ACEOF
23937
/* end confdefs.h.  */
23938
 
23939
/* Override any GCC internal prototype to avoid an error.
23940
   Use char because int might match the return type of a GCC
23941
   builtin and then its argument prototype would still apply.  */
23942
#ifdef __cplusplus
23943
extern "C"
23944
#endif
23945
char crypt ();
23946
int
23947
main ()
23948
{
23949
return crypt ();
23950
  ;
23951
  return 0;
23952
}
23953
_ACEOF
23954
rm -f conftest.$ac_objext conftest$ac_exeext
23955
if { (ac_try="$ac_link"
23956
case "(($ac_try" in
23957
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23958
  *) ac_try_echo=$ac_try;;
23959
esac
216 andreas 23960
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23961
$as_echo "$ac_try_echo") >&5
88 andreas 23962
  (eval "$ac_link") 2>conftest.er1
23963
  ac_status=$?
23964
  grep -v '^ *+' conftest.er1 >conftest.err
23965
  rm -f conftest.er1
23966
  cat conftest.err >&5
216 andreas 23967
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 23968
  (exit $ac_status); } && {
23969
	 test -z "$ac_c_werror_flag" ||
23970
	 test ! -s conftest.err
216 andreas 23971
       } && test -s conftest$ac_exeext && {
23972
	 test "$cross_compiling" = yes ||
23973
	 $as_test_x conftest$ac_exeext
23974
       }; then
88 andreas 23975
  ac_cv_lib_c_crypt=yes
23976
else
216 andreas 23977
  $as_echo "$as_me: failed program was:" >&5
88 andreas 23978
sed 's/^/| /' conftest.$ac_ext >&5
23979
 
23980
	ac_cv_lib_c_crypt=no
23981
fi
23982
 
216 andreas 23983
rm -rf conftest.dSYM
88 andreas 23984
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23985
      conftest$ac_exeext conftest.$ac_ext
23986
LIBS=$ac_check_lib_save_LIBS
23987
fi
216 andreas 23988
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_crypt" >&5
23989
$as_echo "$ac_cv_lib_c_crypt" >&6; }
23990
if test "x$ac_cv_lib_c_crypt" = x""yes; then
88 andreas 23991
  kde_have_crypt=yes
23992
else
23993
 
216 andreas 23994
        { $as_echo "$as_me:$LINENO: WARNING: you have no crypt in either libcrypt or libc.
88 andreas 23995
You should install libcrypt from another source or configure with PAM
23996
support" >&5
216 andreas 23997
$as_echo "$as_me: WARNING: you have no crypt in either libcrypt or libc.
88 andreas 23998
You should install libcrypt from another source or configure with PAM
23999
support" >&2;}
24000
	kde_have_crypt=no
24001
 
24002
fi
24003
 
24004
fi
24005
 
24006
 
24007
   if test $kde_have_crypt = yes; then
24008
 
24009
cat >>confdefs.h <<_ACEOF
24010
#define HAVE_CRYPT 1
24011
_ACEOF
24012
 
24013
   fi
24014
 
216 andreas 24015
   { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
24016
$as_echo_n "checking for socklen_t... " >&6; }
88 andreas 24017
   if test "${kde_cv_socklen_t+set}" = set; then
216 andreas 24018
  $as_echo_n "(cached) " >&6
88 andreas 24019
else
24020
 
24021
      ac_ext=cpp
24022
ac_cpp='$CXXCPP $CPPFLAGS'
24023
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24024
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24025
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24026
 
24027
      kde_cv_socklen_t=no
24028
      cat >conftest.$ac_ext <<_ACEOF
24029
/* confdefs.h.  */
24030
_ACEOF
24031
cat confdefs.h >>conftest.$ac_ext
24032
cat >>conftest.$ac_ext <<_ACEOF
24033
/* end confdefs.h.  */
24034
 
24035
         #include <sys/types.h>
24036
         #include <sys/socket.h>
24037
 
24038
int
24039
main ()
24040
{
24041
 
24042
         socklen_t len;
24043
         getpeername(0,0,&len);
24044
 
24045
  ;
24046
  return 0;
24047
}
24048
_ACEOF
24049
rm -f conftest.$ac_objext
24050
if { (ac_try="$ac_compile"
24051
case "(($ac_try" in
24052
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24053
  *) ac_try_echo=$ac_try;;
24054
esac
216 andreas 24055
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24056
$as_echo "$ac_try_echo") >&5
88 andreas 24057
  (eval "$ac_compile") 2>conftest.er1
24058
  ac_status=$?
24059
  grep -v '^ *+' conftest.er1 >conftest.err
24060
  rm -f conftest.er1
24061
  cat conftest.err >&5
216 andreas 24062
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 24063
  (exit $ac_status); } && {
24064
	 test -z "$ac_cxx_werror_flag" ||
24065
	 test ! -s conftest.err
24066
       } && test -s conftest.$ac_objext; then
24067
 
24068
         kde_cv_socklen_t=yes
24069
         kde_cv_socklen_t_equiv=socklen_t
24070
 
24071
else
216 andreas 24072
  $as_echo "$as_me: failed program was:" >&5
88 andreas 24073
sed 's/^/| /' conftest.$ac_ext >&5
24074
 
24075
 
24076
fi
24077
 
24078
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24079
      ac_ext=c
24080
ac_cpp='$CPP $CPPFLAGS'
24081
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24082
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24083
ac_compiler_gnu=$ac_cv_c_compiler_gnu
24084
 
24085
 
24086
fi
24087
 
216 andreas 24088
   { $as_echo "$as_me:$LINENO: result: $kde_cv_socklen_t" >&5
24089
$as_echo "$kde_cv_socklen_t" >&6; }
88 andreas 24090
   if test $kde_cv_socklen_t = no; then
216 andreas 24091
      { $as_echo "$as_me:$LINENO: checking for socklen_t equivalent for socket functions" >&5
24092
$as_echo_n "checking for socklen_t equivalent for socket functions... " >&6; }
88 andreas 24093
      if test "${kde_cv_socklen_t_equiv+set}" = set; then
216 andreas 24094
  $as_echo_n "(cached) " >&6
88 andreas 24095
else
24096
 
24097
         kde_cv_socklen_t_equiv=int
24098
         ac_ext=cpp
24099
ac_cpp='$CXXCPP $CPPFLAGS'
24100
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24101
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24102
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24103
 
24104
         for t in int size_t unsigned long "unsigned long"; do
24105
            cat >conftest.$ac_ext <<_ACEOF
24106
/* confdefs.h.  */
24107
_ACEOF
24108
cat confdefs.h >>conftest.$ac_ext
24109
cat >>conftest.$ac_ext <<_ACEOF
24110
/* end confdefs.h.  */
24111
 
24112
               #include <sys/types.h>
24113
               #include <sys/socket.h>
24114
 
24115
int
24116
main ()
24117
{
24118
 
24119
               $t len;
24120
               getpeername(0,0,&len);
24121
 
24122
  ;
24123
  return 0;
24124
}
24125
_ACEOF
24126
rm -f conftest.$ac_objext
24127
if { (ac_try="$ac_compile"
24128
case "(($ac_try" in
24129
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24130
  *) ac_try_echo=$ac_try;;
24131
esac
216 andreas 24132
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24133
$as_echo "$ac_try_echo") >&5
88 andreas 24134
  (eval "$ac_compile") 2>conftest.er1
24135
  ac_status=$?
24136
  grep -v '^ *+' conftest.er1 >conftest.err
24137
  rm -f conftest.er1
24138
  cat conftest.err >&5
216 andreas 24139
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 24140
  (exit $ac_status); } && {
24141
	 test -z "$ac_cxx_werror_flag" ||
24142
	 test ! -s conftest.err
24143
       } && test -s conftest.$ac_objext; then
24144
 
24145
               kde_cv_socklen_t_equiv="$t"
24146
               break
24147
 
24148
else
216 andreas 24149
  $as_echo "$as_me: failed program was:" >&5
88 andreas 24150
sed 's/^/| /' conftest.$ac_ext >&5
24151
 
24152
 
24153
fi
24154
 
24155
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24156
         done
24157
         ac_ext=c
24158
ac_cpp='$CPP $CPPFLAGS'
24159
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24160
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24161
ac_compiler_gnu=$ac_cv_c_compiler_gnu
24162
 
24163
 
24164
fi
24165
 
216 andreas 24166
      { $as_echo "$as_me:$LINENO: result: $kde_cv_socklen_t_equiv" >&5
24167
$as_echo "$kde_cv_socklen_t_equiv" >&6; }
88 andreas 24168
   fi
24169
 
24170
cat >>confdefs.h <<_ACEOF
24171
#define kde_socklen_t $kde_cv_socklen_t_equiv
24172
_ACEOF
24173
 
24174
 
24175
cat >>confdefs.h <<_ACEOF
24176
#define ksize_t $kde_cv_socklen_t_equiv
24177
_ACEOF
24178
 
24179
 
216 andreas 24180
   { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
24181
$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
88 andreas 24182
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
216 andreas 24183
  $as_echo_n "(cached) " >&6
88 andreas 24184
else
24185
  ac_check_lib_save_LIBS=$LIBS
24186
LIBS="-ldnet  $LIBS"
24187
cat >conftest.$ac_ext <<_ACEOF
24188
/* confdefs.h.  */
24189
_ACEOF
24190
cat confdefs.h >>conftest.$ac_ext
24191
cat >>conftest.$ac_ext <<_ACEOF
24192
/* end confdefs.h.  */
24193
 
24194
/* Override any GCC internal prototype to avoid an error.
24195
   Use char because int might match the return type of a GCC
24196
   builtin and then its argument prototype would still apply.  */
24197
#ifdef __cplusplus
24198
extern "C"
24199
#endif
24200
char dnet_ntoa ();
24201
int
24202
main ()
24203
{
24204
return dnet_ntoa ();
24205
  ;
24206
  return 0;
24207
}
24208
_ACEOF
24209
rm -f conftest.$ac_objext conftest$ac_exeext
24210
if { (ac_try="$ac_link"
24211
case "(($ac_try" in
24212
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24213
  *) ac_try_echo=$ac_try;;
24214
esac
216 andreas 24215
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24216
$as_echo "$ac_try_echo") >&5
88 andreas 24217
  (eval "$ac_link") 2>conftest.er1
24218
  ac_status=$?
24219
  grep -v '^ *+' conftest.er1 >conftest.err
24220
  rm -f conftest.er1
24221
  cat conftest.err >&5
216 andreas 24222
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 24223
  (exit $ac_status); } && {
24224
	 test -z "$ac_c_werror_flag" ||
24225
	 test ! -s conftest.err
216 andreas 24226
       } && test -s conftest$ac_exeext && {
24227
	 test "$cross_compiling" = yes ||
24228
	 $as_test_x conftest$ac_exeext
24229
       }; then
88 andreas 24230
  ac_cv_lib_dnet_dnet_ntoa=yes
24231
else
216 andreas 24232
  $as_echo "$as_me: failed program was:" >&5
88 andreas 24233
sed 's/^/| /' conftest.$ac_ext >&5
24234
 
24235
	ac_cv_lib_dnet_dnet_ntoa=no
24236
fi
24237
 
216 andreas 24238
rm -rf conftest.dSYM
88 andreas 24239
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24240
      conftest$ac_exeext conftest.$ac_ext
24241
LIBS=$ac_check_lib_save_LIBS
24242
fi
216 andreas 24243
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24244
$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
24245
if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then
88 andreas 24246
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24247
fi
24248
 
24249
   if test $ac_cv_lib_dnet_dnet_ntoa = no; then
216 andreas 24250
      { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
24251
$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
88 andreas 24252
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
216 andreas 24253
  $as_echo_n "(cached) " >&6
88 andreas 24254
else
24255
  ac_check_lib_save_LIBS=$LIBS
24256
LIBS="-ldnet_stub  $LIBS"
24257
cat >conftest.$ac_ext <<_ACEOF
24258
/* confdefs.h.  */
24259
_ACEOF
24260
cat confdefs.h >>conftest.$ac_ext
24261
cat >>conftest.$ac_ext <<_ACEOF
24262
/* end confdefs.h.  */
24263
 
24264
/* Override any GCC internal prototype to avoid an error.
24265
   Use char because int might match the return type of a GCC
24266
   builtin and then its argument prototype would still apply.  */
24267
#ifdef __cplusplus
24268
extern "C"
24269
#endif
24270
char dnet_ntoa ();
24271
int
24272
main ()
24273
{
24274
return dnet_ntoa ();
24275
  ;
24276
  return 0;
24277
}
24278
_ACEOF
24279
rm -f conftest.$ac_objext conftest$ac_exeext
24280
if { (ac_try="$ac_link"
24281
case "(($ac_try" in
24282
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24283
  *) ac_try_echo=$ac_try;;
24284
esac
216 andreas 24285
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24286
$as_echo "$ac_try_echo") >&5
88 andreas 24287
  (eval "$ac_link") 2>conftest.er1
24288
  ac_status=$?
24289
  grep -v '^ *+' conftest.er1 >conftest.err
24290
  rm -f conftest.er1
24291
  cat conftest.err >&5
216 andreas 24292
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 24293
  (exit $ac_status); } && {
24294
	 test -z "$ac_c_werror_flag" ||
24295
	 test ! -s conftest.err
216 andreas 24296
       } && test -s conftest$ac_exeext && {
24297
	 test "$cross_compiling" = yes ||
24298
	 $as_test_x conftest$ac_exeext
24299
       }; then
88 andreas 24300
  ac_cv_lib_dnet_stub_dnet_ntoa=yes
24301
else
216 andreas 24302
  $as_echo "$as_me: failed program was:" >&5
88 andreas 24303
sed 's/^/| /' conftest.$ac_ext >&5
24304
 
24305
	ac_cv_lib_dnet_stub_dnet_ntoa=no
24306
fi
24307
 
216 andreas 24308
rm -rf conftest.dSYM
88 andreas 24309
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24310
      conftest$ac_exeext conftest.$ac_ext
24311
LIBS=$ac_check_lib_save_LIBS
24312
fi
216 andreas 24313
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24314
$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
24315
if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then
88 andreas 24316
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24317
fi
24318
 
24319
   fi
216 andreas 24320
   { $as_echo "$as_me:$LINENO: checking for inet_ntoa" >&5
24321
$as_echo_n "checking for inet_ntoa... " >&6; }
88 andreas 24322
if test "${ac_cv_func_inet_ntoa+set}" = set; then
216 andreas 24323
  $as_echo_n "(cached) " >&6
88 andreas 24324
else
24325
  cat >conftest.$ac_ext <<_ACEOF
24326
/* confdefs.h.  */
24327
_ACEOF
24328
cat confdefs.h >>conftest.$ac_ext
24329
cat >>conftest.$ac_ext <<_ACEOF
24330
/* end confdefs.h.  */
24331
/* Define inet_ntoa to an innocuous variant, in case <limits.h> declares inet_ntoa.
24332
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24333
#define inet_ntoa innocuous_inet_ntoa
24334
 
24335
/* System header to define __stub macros and hopefully few prototypes,
24336
    which can conflict with char inet_ntoa (); below.
24337
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24338
    <limits.h> exists even on freestanding compilers.  */
24339
 
24340
#ifdef __STDC__
24341
# include <limits.h>
24342
#else
24343
# include <assert.h>
24344
#endif
24345
 
24346
#undef inet_ntoa
24347
 
24348
/* Override any GCC internal prototype to avoid an error.
24349
   Use char because int might match the return type of a GCC
24350
   builtin and then its argument prototype would still apply.  */
24351
#ifdef __cplusplus
24352
extern "C"
24353
#endif
24354
char inet_ntoa ();
24355
/* The GNU C library defines this for functions which it implements
24356
    to always fail with ENOSYS.  Some functions are actually named
24357
    something starting with __ and the normal name is an alias.  */
24358
#if defined __stub_inet_ntoa || defined __stub___inet_ntoa
24359
choke me
24360
#endif
24361
 
24362
int
24363
main ()
24364
{
24365
return inet_ntoa ();
24366
  ;
24367
  return 0;
24368
}
24369
_ACEOF
24370
rm -f conftest.$ac_objext conftest$ac_exeext
24371
if { (ac_try="$ac_link"
24372
case "(($ac_try" in
24373
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24374
  *) ac_try_echo=$ac_try;;
24375
esac
216 andreas 24376
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24377
$as_echo "$ac_try_echo") >&5
88 andreas 24378
  (eval "$ac_link") 2>conftest.er1
24379
  ac_status=$?
24380
  grep -v '^ *+' conftest.er1 >conftest.err
24381
  rm -f conftest.er1
24382
  cat conftest.err >&5
216 andreas 24383
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 24384
  (exit $ac_status); } && {
24385
	 test -z "$ac_c_werror_flag" ||
24386
	 test ! -s conftest.err
216 andreas 24387
       } && test -s conftest$ac_exeext && {
24388
	 test "$cross_compiling" = yes ||
24389
	 $as_test_x conftest$ac_exeext
24390
       }; then
88 andreas 24391
  ac_cv_func_inet_ntoa=yes
24392
else
216 andreas 24393
  $as_echo "$as_me: failed program was:" >&5
88 andreas 24394
sed 's/^/| /' conftest.$ac_ext >&5
24395
 
24396
	ac_cv_func_inet_ntoa=no
24397
fi
24398
 
216 andreas 24399
rm -rf conftest.dSYM
88 andreas 24400
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24401
      conftest$ac_exeext conftest.$ac_ext
24402
fi
216 andreas 24403
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntoa" >&5
24404
$as_echo "$ac_cv_func_inet_ntoa" >&6; }
88 andreas 24405
 
24406
   if test $ac_cv_func_inet_ntoa = no; then
216 andreas 24407
     { $as_echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
24408
$as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
88 andreas 24409
if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
216 andreas 24410
  $as_echo_n "(cached) " >&6
88 andreas 24411
else
24412
  ac_check_lib_save_LIBS=$LIBS
24413
LIBS="-lnsl  $LIBS"
24414
cat >conftest.$ac_ext <<_ACEOF
24415
/* confdefs.h.  */
24416
_ACEOF
24417
cat confdefs.h >>conftest.$ac_ext
24418
cat >>conftest.$ac_ext <<_ACEOF
24419
/* end confdefs.h.  */
24420
 
24421
/* Override any GCC internal prototype to avoid an error.
24422
   Use char because int might match the return type of a GCC
24423
   builtin and then its argument prototype would still apply.  */
24424
#ifdef __cplusplus
24425
extern "C"
24426
#endif
24427
char inet_ntoa ();
24428
int
24429
main ()
24430
{
24431
return inet_ntoa ();
24432
  ;
24433
  return 0;
24434
}
24435
_ACEOF
24436
rm -f conftest.$ac_objext conftest$ac_exeext
24437
if { (ac_try="$ac_link"
24438
case "(($ac_try" in
24439
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24440
  *) ac_try_echo=$ac_try;;
24441
esac
216 andreas 24442
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24443
$as_echo "$ac_try_echo") >&5
88 andreas 24444
  (eval "$ac_link") 2>conftest.er1
24445
  ac_status=$?
24446
  grep -v '^ *+' conftest.er1 >conftest.err
24447
  rm -f conftest.er1
24448
  cat conftest.err >&5
216 andreas 24449
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 24450
  (exit $ac_status); } && {
24451
	 test -z "$ac_c_werror_flag" ||
24452
	 test ! -s conftest.err
216 andreas 24453
       } && test -s conftest$ac_exeext && {
24454
	 test "$cross_compiling" = yes ||
24455
	 $as_test_x conftest$ac_exeext
24456
       }; then
88 andreas 24457
  ac_cv_lib_nsl_inet_ntoa=yes
24458
else
216 andreas 24459
  $as_echo "$as_me: failed program was:" >&5
88 andreas 24460
sed 's/^/| /' conftest.$ac_ext >&5
24461
 
24462
	ac_cv_lib_nsl_inet_ntoa=no
24463
fi
24464
 
216 andreas 24465
rm -rf conftest.dSYM
88 andreas 24466
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24467
      conftest$ac_exeext conftest.$ac_ext
24468
LIBS=$ac_check_lib_save_LIBS
24469
fi
216 andreas 24470
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
24471
$as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
24472
if test "x$ac_cv_lib_nsl_inet_ntoa" = x""yes; then
88 andreas 24473
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24474
fi
24475
 
24476
   fi
216 andreas 24477
   { $as_echo "$as_me:$LINENO: checking for connect" >&5
24478
$as_echo_n "checking for connect... " >&6; }
88 andreas 24479
if test "${ac_cv_func_connect+set}" = set; then
216 andreas 24480
  $as_echo_n "(cached) " >&6
88 andreas 24481
else
24482
  cat >conftest.$ac_ext <<_ACEOF
24483
/* confdefs.h.  */
24484
_ACEOF
24485
cat confdefs.h >>conftest.$ac_ext
24486
cat >>conftest.$ac_ext <<_ACEOF
24487
/* end confdefs.h.  */
24488
/* Define connect to an innocuous variant, in case <limits.h> declares connect.
24489
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24490
#define connect innocuous_connect
24491
 
24492
/* System header to define __stub macros and hopefully few prototypes,
24493
    which can conflict with char connect (); below.
24494
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24495
    <limits.h> exists even on freestanding compilers.  */
24496
 
24497
#ifdef __STDC__
24498
# include <limits.h>
24499
#else
24500
# include <assert.h>
24501
#endif
24502
 
24503
#undef connect
24504
 
24505
/* Override any GCC internal prototype to avoid an error.
24506
   Use char because int might match the return type of a GCC
24507
   builtin and then its argument prototype would still apply.  */
24508
#ifdef __cplusplus
24509
extern "C"
24510
#endif
24511
char connect ();
24512
/* The GNU C library defines this for functions which it implements
24513
    to always fail with ENOSYS.  Some functions are actually named
24514
    something starting with __ and the normal name is an alias.  */
24515
#if defined __stub_connect || defined __stub___connect
24516
choke me
24517
#endif
24518
 
24519
int
24520
main ()
24521
{
24522
return connect ();
24523
  ;
24524
  return 0;
24525
}
24526
_ACEOF
24527
rm -f conftest.$ac_objext conftest$ac_exeext
24528
if { (ac_try="$ac_link"
24529
case "(($ac_try" in
24530
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24531
  *) ac_try_echo=$ac_try;;
24532
esac
216 andreas 24533
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24534
$as_echo "$ac_try_echo") >&5
88 andreas 24535
  (eval "$ac_link") 2>conftest.er1
24536
  ac_status=$?
24537
  grep -v '^ *+' conftest.er1 >conftest.err
24538
  rm -f conftest.er1
24539
  cat conftest.err >&5
216 andreas 24540
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 24541
  (exit $ac_status); } && {
24542
	 test -z "$ac_c_werror_flag" ||
24543
	 test ! -s conftest.err
216 andreas 24544
       } && test -s conftest$ac_exeext && {
24545
	 test "$cross_compiling" = yes ||
24546
	 $as_test_x conftest$ac_exeext
24547
       }; then
88 andreas 24548
  ac_cv_func_connect=yes
24549
else
216 andreas 24550
  $as_echo "$as_me: failed program was:" >&5
88 andreas 24551
sed 's/^/| /' conftest.$ac_ext >&5
24552
 
24553
	ac_cv_func_connect=no
24554
fi
24555
 
216 andreas 24556
rm -rf conftest.dSYM
88 andreas 24557
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24558
      conftest$ac_exeext conftest.$ac_ext
24559
fi
216 andreas 24560
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
24561
$as_echo "$ac_cv_func_connect" >&6; }
88 andreas 24562
 
24563
   if test $ac_cv_func_connect = no; then
216 andreas 24564
      { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
24565
$as_echo_n "checking for connect in -lsocket... " >&6; }
88 andreas 24566
if test "${ac_cv_lib_socket_connect+set}" = set; then
216 andreas 24567
  $as_echo_n "(cached) " >&6
88 andreas 24568
else
24569
  ac_check_lib_save_LIBS=$LIBS
24570
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24571
cat >conftest.$ac_ext <<_ACEOF
24572
/* confdefs.h.  */
24573
_ACEOF
24574
cat confdefs.h >>conftest.$ac_ext
24575
cat >>conftest.$ac_ext <<_ACEOF
24576
/* end confdefs.h.  */
24577
 
24578
/* Override any GCC internal prototype to avoid an error.
24579
   Use char because int might match the return type of a GCC
24580
   builtin and then its argument prototype would still apply.  */
24581
#ifdef __cplusplus
24582
extern "C"
24583
#endif
24584
char connect ();
24585
int
24586
main ()
24587
{
24588
return connect ();
24589
  ;
24590
  return 0;
24591
}
24592
_ACEOF
24593
rm -f conftest.$ac_objext conftest$ac_exeext
24594
if { (ac_try="$ac_link"
24595
case "(($ac_try" in
24596
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24597
  *) ac_try_echo=$ac_try;;
24598
esac
216 andreas 24599
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24600
$as_echo "$ac_try_echo") >&5
88 andreas 24601
  (eval "$ac_link") 2>conftest.er1
24602
  ac_status=$?
24603
  grep -v '^ *+' conftest.er1 >conftest.err
24604
  rm -f conftest.er1
24605
  cat conftest.err >&5
216 andreas 24606
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 24607
  (exit $ac_status); } && {
24608
	 test -z "$ac_c_werror_flag" ||
24609
	 test ! -s conftest.err
216 andreas 24610
       } && test -s conftest$ac_exeext && {
24611
	 test "$cross_compiling" = yes ||
24612
	 $as_test_x conftest$ac_exeext
24613
       }; then
88 andreas 24614
  ac_cv_lib_socket_connect=yes
24615
else
216 andreas 24616
  $as_echo "$as_me: failed program was:" >&5
88 andreas 24617
sed 's/^/| /' conftest.$ac_ext >&5
24618
 
24619
	ac_cv_lib_socket_connect=no
24620
fi
24621
 
216 andreas 24622
rm -rf conftest.dSYM
88 andreas 24623
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24624
      conftest$ac_exeext conftest.$ac_ext
24625
LIBS=$ac_check_lib_save_LIBS
24626
fi
216 andreas 24627
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
24628
$as_echo "$ac_cv_lib_socket_connect" >&6; }
24629
if test "x$ac_cv_lib_socket_connect" = x""yes; then
88 andreas 24630
  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24631
fi
24632
 
24633
   fi
24634
 
216 andreas 24635
   { $as_echo "$as_me:$LINENO: checking for remove" >&5
24636
$as_echo_n "checking for remove... " >&6; }
88 andreas 24637
if test "${ac_cv_func_remove+set}" = set; then
216 andreas 24638
  $as_echo_n "(cached) " >&6
88 andreas 24639
else
24640
  cat >conftest.$ac_ext <<_ACEOF
24641
/* confdefs.h.  */
24642
_ACEOF
24643
cat confdefs.h >>conftest.$ac_ext
24644
cat >>conftest.$ac_ext <<_ACEOF
24645
/* end confdefs.h.  */
24646
/* Define remove to an innocuous variant, in case <limits.h> declares remove.
24647
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24648
#define remove innocuous_remove
24649
 
24650
/* System header to define __stub macros and hopefully few prototypes,
24651
    which can conflict with char remove (); below.
24652
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24653
    <limits.h> exists even on freestanding compilers.  */
24654
 
24655
#ifdef __STDC__
24656
# include <limits.h>
24657
#else
24658
# include <assert.h>
24659
#endif
24660
 
24661
#undef remove
24662
 
24663
/* Override any GCC internal prototype to avoid an error.
24664
   Use char because int might match the return type of a GCC
24665
   builtin and then its argument prototype would still apply.  */
24666
#ifdef __cplusplus
24667
extern "C"
24668
#endif
24669
char remove ();
24670
/* The GNU C library defines this for functions which it implements
24671
    to always fail with ENOSYS.  Some functions are actually named
24672
    something starting with __ and the normal name is an alias.  */
24673
#if defined __stub_remove || defined __stub___remove
24674
choke me
24675
#endif
24676
 
24677
int
24678
main ()
24679
{
24680
return remove ();
24681
  ;
24682
  return 0;
24683
}
24684
_ACEOF
24685
rm -f conftest.$ac_objext conftest$ac_exeext
24686
if { (ac_try="$ac_link"
24687
case "(($ac_try" in
24688
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24689
  *) ac_try_echo=$ac_try;;
24690
esac
216 andreas 24691
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24692
$as_echo "$ac_try_echo") >&5
88 andreas 24693
  (eval "$ac_link") 2>conftest.er1
24694
  ac_status=$?
24695
  grep -v '^ *+' conftest.er1 >conftest.err
24696
  rm -f conftest.er1
24697
  cat conftest.err >&5
216 andreas 24698
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 24699
  (exit $ac_status); } && {
24700
	 test -z "$ac_c_werror_flag" ||
24701
	 test ! -s conftest.err
216 andreas 24702
       } && test -s conftest$ac_exeext && {
24703
	 test "$cross_compiling" = yes ||
24704
	 $as_test_x conftest$ac_exeext
24705
       }; then
88 andreas 24706
  ac_cv_func_remove=yes
24707
else
216 andreas 24708
  $as_echo "$as_me: failed program was:" >&5
88 andreas 24709
sed 's/^/| /' conftest.$ac_ext >&5
24710
 
24711
	ac_cv_func_remove=no
24712
fi
24713
 
216 andreas 24714
rm -rf conftest.dSYM
88 andreas 24715
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24716
      conftest$ac_exeext conftest.$ac_ext
24717
fi
216 andreas 24718
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
24719
$as_echo "$ac_cv_func_remove" >&6; }
88 andreas 24720
 
24721
   if test $ac_cv_func_remove = no; then
216 andreas 24722
      { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5
24723
$as_echo_n "checking for remove in -lposix... " >&6; }
88 andreas 24724
if test "${ac_cv_lib_posix_remove+set}" = set; then
216 andreas 24725
  $as_echo_n "(cached) " >&6
88 andreas 24726
else
24727
  ac_check_lib_save_LIBS=$LIBS
24728
LIBS="-lposix  $LIBS"
24729
cat >conftest.$ac_ext <<_ACEOF
24730
/* confdefs.h.  */
24731
_ACEOF
24732
cat confdefs.h >>conftest.$ac_ext
24733
cat >>conftest.$ac_ext <<_ACEOF
24734
/* end confdefs.h.  */
24735
 
24736
/* Override any GCC internal prototype to avoid an error.
24737
   Use char because int might match the return type of a GCC
24738
   builtin and then its argument prototype would still apply.  */
24739
#ifdef __cplusplus
24740
extern "C"
24741
#endif
24742
char remove ();
24743
int
24744
main ()
24745
{
24746
return remove ();
24747
  ;
24748
  return 0;
24749
}
24750
_ACEOF
24751
rm -f conftest.$ac_objext conftest$ac_exeext
24752
if { (ac_try="$ac_link"
24753
case "(($ac_try" in
24754
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24755
  *) ac_try_echo=$ac_try;;
24756
esac
216 andreas 24757
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24758
$as_echo "$ac_try_echo") >&5
88 andreas 24759
  (eval "$ac_link") 2>conftest.er1
24760
  ac_status=$?
24761
  grep -v '^ *+' conftest.er1 >conftest.err
24762
  rm -f conftest.er1
24763
  cat conftest.err >&5
216 andreas 24764
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 24765
  (exit $ac_status); } && {
24766
	 test -z "$ac_c_werror_flag" ||
24767
	 test ! -s conftest.err
216 andreas 24768
       } && test -s conftest$ac_exeext && {
24769
	 test "$cross_compiling" = yes ||
24770
	 $as_test_x conftest$ac_exeext
24771
       }; then
88 andreas 24772
  ac_cv_lib_posix_remove=yes
24773
else
216 andreas 24774
  $as_echo "$as_me: failed program was:" >&5
88 andreas 24775
sed 's/^/| /' conftest.$ac_ext >&5
24776
 
24777
	ac_cv_lib_posix_remove=no
24778
fi
24779
 
216 andreas 24780
rm -rf conftest.dSYM
88 andreas 24781
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24782
      conftest$ac_exeext conftest.$ac_ext
24783
LIBS=$ac_check_lib_save_LIBS
24784
fi
216 andreas 24785
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
24786
$as_echo "$ac_cv_lib_posix_remove" >&6; }
24787
if test "x$ac_cv_lib_posix_remove" = x""yes; then
88 andreas 24788
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24789
fi
24790
 
24791
   fi
24792
 
24793
   # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
216 andreas 24794
   { $as_echo "$as_me:$LINENO: checking for shmat" >&5
24795
$as_echo_n "checking for shmat... " >&6; }
88 andreas 24796
if test "${ac_cv_func_shmat+set}" = set; then
216 andreas 24797
  $as_echo_n "(cached) " >&6
88 andreas 24798
else
24799
  cat >conftest.$ac_ext <<_ACEOF
24800
/* confdefs.h.  */
24801
_ACEOF
24802
cat confdefs.h >>conftest.$ac_ext
24803
cat >>conftest.$ac_ext <<_ACEOF
24804
/* end confdefs.h.  */
24805
/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
24806
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24807
#define shmat innocuous_shmat
24808
 
24809
/* System header to define __stub macros and hopefully few prototypes,
24810
    which can conflict with char shmat (); below.
24811
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24812
    <limits.h> exists even on freestanding compilers.  */
24813
 
24814
#ifdef __STDC__
24815
# include <limits.h>
24816
#else
24817
# include <assert.h>
24818
#endif
24819
 
24820
#undef shmat
24821
 
24822
/* Override any GCC internal prototype to avoid an error.
24823
   Use char because int might match the return type of a GCC
24824
   builtin and then its argument prototype would still apply.  */
24825
#ifdef __cplusplus
24826
extern "C"
24827
#endif
24828
char shmat ();
24829
/* The GNU C library defines this for functions which it implements
24830
    to always fail with ENOSYS.  Some functions are actually named
24831
    something starting with __ and the normal name is an alias.  */
24832
#if defined __stub_shmat || defined __stub___shmat
24833
choke me
24834
#endif
24835
 
24836
int
24837
main ()
24838
{
24839
return shmat ();
24840
  ;
24841
  return 0;
24842
}
24843
_ACEOF
24844
rm -f conftest.$ac_objext conftest$ac_exeext
24845
if { (ac_try="$ac_link"
24846
case "(($ac_try" in
24847
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24848
  *) ac_try_echo=$ac_try;;
24849
esac
216 andreas 24850
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24851
$as_echo "$ac_try_echo") >&5
88 andreas 24852
  (eval "$ac_link") 2>conftest.er1
24853
  ac_status=$?
24854
  grep -v '^ *+' conftest.er1 >conftest.err
24855
  rm -f conftest.er1
24856
  cat conftest.err >&5
216 andreas 24857
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 24858
  (exit $ac_status); } && {
24859
	 test -z "$ac_c_werror_flag" ||
24860
	 test ! -s conftest.err
216 andreas 24861
       } && test -s conftest$ac_exeext && {
24862
	 test "$cross_compiling" = yes ||
24863
	 $as_test_x conftest$ac_exeext
24864
       }; then
88 andreas 24865
  ac_cv_func_shmat=yes
24866
else
216 andreas 24867
  $as_echo "$as_me: failed program was:" >&5
88 andreas 24868
sed 's/^/| /' conftest.$ac_ext >&5
24869
 
24870
	ac_cv_func_shmat=no
24871
fi
24872
 
216 andreas 24873
rm -rf conftest.dSYM
88 andreas 24874
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24875
      conftest$ac_exeext conftest.$ac_ext
24876
fi
216 andreas 24877
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
24878
$as_echo "$ac_cv_func_shmat" >&6; }
24879
if test "x$ac_cv_func_shmat" = x""yes; then
88 andreas 24880
  :
24881
else
216 andreas 24882
  { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
24883
$as_echo_n "checking for shmat in -lipc... " >&6; }
88 andreas 24884
if test "${ac_cv_lib_ipc_shmat+set}" = set; then
216 andreas 24885
  $as_echo_n "(cached) " >&6
88 andreas 24886
else
24887
  ac_check_lib_save_LIBS=$LIBS
24888
LIBS="-lipc  $LIBS"
24889
cat >conftest.$ac_ext <<_ACEOF
24890
/* confdefs.h.  */
24891
_ACEOF
24892
cat confdefs.h >>conftest.$ac_ext
24893
cat >>conftest.$ac_ext <<_ACEOF
24894
/* end confdefs.h.  */
24895
 
24896
/* Override any GCC internal prototype to avoid an error.
24897
   Use char because int might match the return type of a GCC
24898
   builtin and then its argument prototype would still apply.  */
24899
#ifdef __cplusplus
24900
extern "C"
24901
#endif
24902
char shmat ();
24903
int
24904
main ()
24905
{
24906
return shmat ();
24907
  ;
24908
  return 0;
24909
}
24910
_ACEOF
24911
rm -f conftest.$ac_objext conftest$ac_exeext
24912
if { (ac_try="$ac_link"
24913
case "(($ac_try" in
24914
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24915
  *) ac_try_echo=$ac_try;;
24916
esac
216 andreas 24917
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24918
$as_echo "$ac_try_echo") >&5
88 andreas 24919
  (eval "$ac_link") 2>conftest.er1
24920
  ac_status=$?
24921
  grep -v '^ *+' conftest.er1 >conftest.err
24922
  rm -f conftest.er1
24923
  cat conftest.err >&5
216 andreas 24924
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 24925
  (exit $ac_status); } && {
24926
	 test -z "$ac_c_werror_flag" ||
24927
	 test ! -s conftest.err
216 andreas 24928
       } && test -s conftest$ac_exeext && {
24929
	 test "$cross_compiling" = yes ||
24930
	 $as_test_x conftest$ac_exeext
24931
       }; then
88 andreas 24932
  ac_cv_lib_ipc_shmat=yes
24933
else
216 andreas 24934
  $as_echo "$as_me: failed program was:" >&5
88 andreas 24935
sed 's/^/| /' conftest.$ac_ext >&5
24936
 
24937
	ac_cv_lib_ipc_shmat=no
24938
fi
24939
 
216 andreas 24940
rm -rf conftest.dSYM
88 andreas 24941
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24942
      conftest$ac_exeext conftest.$ac_ext
24943
LIBS=$ac_check_lib_save_LIBS
24944
fi
216 andreas 24945
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
24946
$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
24947
if test "x$ac_cv_lib_ipc_shmat" = x""yes; then
88 andreas 24948
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24949
fi
24950
 
24951
fi
24952
 
24953
 
24954
   # more headers that need to be explicitly included on darwin
24955
 
24956
 
24957
for ac_header in sys/types.h stdint.h
24958
do
216 andreas 24959
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
88 andreas 24960
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
216 andreas 24961
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24962
$as_echo_n "checking for $ac_header... " >&6; }
88 andreas 24963
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
216 andreas 24964
  $as_echo_n "(cached) " >&6
88 andreas 24965
fi
216 andreas 24966
ac_res=`eval 'as_val=${'$as_ac_Header'}
24967
		 $as_echo "$as_val"'`
24968
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24969
$as_echo "$ac_res" >&6; }
88 andreas 24970
else
24971
  # Is the header compilable?
216 andreas 24972
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24973
$as_echo_n "checking $ac_header usability... " >&6; }
88 andreas 24974
cat >conftest.$ac_ext <<_ACEOF
24975
/* confdefs.h.  */
24976
_ACEOF
24977
cat confdefs.h >>conftest.$ac_ext
24978
cat >>conftest.$ac_ext <<_ACEOF
24979
/* end confdefs.h.  */
24980
$ac_includes_default
24981
#include <$ac_header>
24982
_ACEOF
24983
rm -f conftest.$ac_objext
24984
if { (ac_try="$ac_compile"
24985
case "(($ac_try" in
24986
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24987
  *) ac_try_echo=$ac_try;;
24988
esac
216 andreas 24989
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24990
$as_echo "$ac_try_echo") >&5
88 andreas 24991
  (eval "$ac_compile") 2>conftest.er1
24992
  ac_status=$?
24993
  grep -v '^ *+' conftest.er1 >conftest.err
24994
  rm -f conftest.er1
24995
  cat conftest.err >&5
216 andreas 24996
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 24997
  (exit $ac_status); } && {
24998
	 test -z "$ac_c_werror_flag" ||
24999
	 test ! -s conftest.err
25000
       } && test -s conftest.$ac_objext; then
25001
  ac_header_compiler=yes
25002
else
216 andreas 25003
  $as_echo "$as_me: failed program was:" >&5
88 andreas 25004
sed 's/^/| /' conftest.$ac_ext >&5
25005
 
25006
	ac_header_compiler=no
25007
fi
25008
 
25009
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
216 andreas 25010
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25011
$as_echo "$ac_header_compiler" >&6; }
88 andreas 25012
 
25013
# Is the header present?
216 andreas 25014
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25015
$as_echo_n "checking $ac_header presence... " >&6; }
88 andreas 25016
cat >conftest.$ac_ext <<_ACEOF
25017
/* confdefs.h.  */
25018
_ACEOF
25019
cat confdefs.h >>conftest.$ac_ext
25020
cat >>conftest.$ac_ext <<_ACEOF
25021
/* end confdefs.h.  */
25022
#include <$ac_header>
25023
_ACEOF
25024
if { (ac_try="$ac_cpp conftest.$ac_ext"
25025
case "(($ac_try" in
25026
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25027
  *) ac_try_echo=$ac_try;;
25028
esac
216 andreas 25029
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25030
$as_echo "$ac_try_echo") >&5
88 andreas 25031
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25032
  ac_status=$?
25033
  grep -v '^ *+' conftest.er1 >conftest.err
25034
  rm -f conftest.er1
25035
  cat conftest.err >&5
216 andreas 25036
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 25037
  (exit $ac_status); } >/dev/null && {
25038
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25039
	 test ! -s conftest.err
25040
       }; then
25041
  ac_header_preproc=yes
25042
else
216 andreas 25043
  $as_echo "$as_me: failed program was:" >&5
88 andreas 25044
sed 's/^/| /' conftest.$ac_ext >&5
25045
 
25046
  ac_header_preproc=no
25047
fi
25048
 
25049
rm -f conftest.err conftest.$ac_ext
216 andreas 25050
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25051
$as_echo "$ac_header_preproc" >&6; }
88 andreas 25052
 
25053
# So?  What about this header?
25054
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25055
  yes:no: )
216 andreas 25056
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25057
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25058
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25059
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
88 andreas 25060
    ac_header_preproc=yes
25061
    ;;
25062
  no:yes:* )
216 andreas 25063
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25064
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25065
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25066
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25067
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25068
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25069
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25070
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25071
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25072
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25073
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25074
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
88 andreas 25075
 
25076
    ;;
25077
esac
216 andreas 25078
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25079
$as_echo_n "checking for $ac_header... " >&6; }
88 andreas 25080
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
216 andreas 25081
  $as_echo_n "(cached) " >&6
88 andreas 25082
else
25083
  eval "$as_ac_Header=\$ac_header_preproc"
25084
fi
216 andreas 25085
ac_res=`eval 'as_val=${'$as_ac_Header'}
25086
		 $as_echo "$as_val"'`
25087
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25088
$as_echo "$ac_res" >&6; }
88 andreas 25089
 
25090
fi
216 andreas 25091
as_val=`eval 'as_val=${'$as_ac_Header'}
25092
		 $as_echo "$as_val"'`
25093
   if test "x$as_val" = x""yes; then
88 andreas 25094
  cat >>confdefs.h <<_ACEOF
216 andreas 25095
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
88 andreas 25096
_ACEOF
25097
 
25098
fi
25099
 
25100
done
25101
 
25102
 
25103
   # sys/bitypes.h is needed for uint32_t and friends on Tru64
25104
 
25105
for ac_header in sys/bitypes.h
25106
do
216 andreas 25107
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
88 andreas 25108
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
216 andreas 25109
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25110
$as_echo_n "checking for $ac_header... " >&6; }
88 andreas 25111
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
216 andreas 25112
  $as_echo_n "(cached) " >&6
88 andreas 25113
fi
216 andreas 25114
ac_res=`eval 'as_val=${'$as_ac_Header'}
25115
		 $as_echo "$as_val"'`
25116
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25117
$as_echo "$ac_res" >&6; }
88 andreas 25118
else
25119
  # Is the header compilable?
216 andreas 25120
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25121
$as_echo_n "checking $ac_header usability... " >&6; }
88 andreas 25122
cat >conftest.$ac_ext <<_ACEOF
25123
/* confdefs.h.  */
25124
_ACEOF
25125
cat confdefs.h >>conftest.$ac_ext
25126
cat >>conftest.$ac_ext <<_ACEOF
25127
/* end confdefs.h.  */
25128
$ac_includes_default
25129
#include <$ac_header>
25130
_ACEOF
25131
rm -f conftest.$ac_objext
25132
if { (ac_try="$ac_compile"
25133
case "(($ac_try" in
25134
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25135
  *) ac_try_echo=$ac_try;;
25136
esac
216 andreas 25137
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25138
$as_echo "$ac_try_echo") >&5
88 andreas 25139
  (eval "$ac_compile") 2>conftest.er1
25140
  ac_status=$?
25141
  grep -v '^ *+' conftest.er1 >conftest.err
25142
  rm -f conftest.er1
25143
  cat conftest.err >&5
216 andreas 25144
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 25145
  (exit $ac_status); } && {
25146
	 test -z "$ac_c_werror_flag" ||
25147
	 test ! -s conftest.err
25148
       } && test -s conftest.$ac_objext; then
25149
  ac_header_compiler=yes
25150
else
216 andreas 25151
  $as_echo "$as_me: failed program was:" >&5
88 andreas 25152
sed 's/^/| /' conftest.$ac_ext >&5
25153
 
25154
	ac_header_compiler=no
25155
fi
25156
 
25157
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
216 andreas 25158
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25159
$as_echo "$ac_header_compiler" >&6; }
88 andreas 25160
 
25161
# Is the header present?
216 andreas 25162
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25163
$as_echo_n "checking $ac_header presence... " >&6; }
88 andreas 25164
cat >conftest.$ac_ext <<_ACEOF
25165
/* confdefs.h.  */
25166
_ACEOF
25167
cat confdefs.h >>conftest.$ac_ext
25168
cat >>conftest.$ac_ext <<_ACEOF
25169
/* end confdefs.h.  */
25170
#include <$ac_header>
25171
_ACEOF
25172
if { (ac_try="$ac_cpp conftest.$ac_ext"
25173
case "(($ac_try" in
25174
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25175
  *) ac_try_echo=$ac_try;;
25176
esac
216 andreas 25177
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25178
$as_echo "$ac_try_echo") >&5
88 andreas 25179
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25180
  ac_status=$?
25181
  grep -v '^ *+' conftest.er1 >conftest.err
25182
  rm -f conftest.er1
25183
  cat conftest.err >&5
216 andreas 25184
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 25185
  (exit $ac_status); } >/dev/null && {
25186
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25187
	 test ! -s conftest.err
25188
       }; then
25189
  ac_header_preproc=yes
25190
else
216 andreas 25191
  $as_echo "$as_me: failed program was:" >&5
88 andreas 25192
sed 's/^/| /' conftest.$ac_ext >&5
25193
 
25194
  ac_header_preproc=no
25195
fi
25196
 
25197
rm -f conftest.err conftest.$ac_ext
216 andreas 25198
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25199
$as_echo "$ac_header_preproc" >&6; }
88 andreas 25200
 
25201
# So?  What about this header?
25202
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25203
  yes:no: )
216 andreas 25204
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25205
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25206
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25207
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
88 andreas 25208
    ac_header_preproc=yes
25209
    ;;
25210
  no:yes:* )
216 andreas 25211
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25212
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25213
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25214
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25215
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25216
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25217
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25218
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25219
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25220
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25221
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25222
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
88 andreas 25223
 
25224
    ;;
25225
esac
216 andreas 25226
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25227
$as_echo_n "checking for $ac_header... " >&6; }
88 andreas 25228
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
216 andreas 25229
  $as_echo_n "(cached) " >&6
88 andreas 25230
else
25231
  eval "$as_ac_Header=\$ac_header_preproc"
25232
fi
216 andreas 25233
ac_res=`eval 'as_val=${'$as_ac_Header'}
25234
		 $as_echo "$as_val"'`
25235
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25236
$as_echo "$ac_res" >&6; }
88 andreas 25237
 
25238
fi
216 andreas 25239
as_val=`eval 'as_val=${'$as_ac_Header'}
25240
		 $as_echo "$as_val"'`
25241
   if test "x$as_val" = x""yes; then
88 andreas 25242
  cat >>confdefs.h <<_ACEOF
216 andreas 25243
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
88 andreas 25244
_ACEOF
25245
 
25246
fi
25247
 
25248
done
25249
 
25250
 
25251
   # darwin requires a poll emulation library
216 andreas 25252
   { $as_echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
25253
$as_echo_n "checking for poll in -lpoll... " >&6; }
88 andreas 25254
if test "${ac_cv_lib_poll_poll+set}" = set; then
216 andreas 25255
  $as_echo_n "(cached) " >&6
88 andreas 25256
else
25257
  ac_check_lib_save_LIBS=$LIBS
25258
LIBS="-lpoll  $LIBS"
25259
cat >conftest.$ac_ext <<_ACEOF
25260
/* confdefs.h.  */
25261
_ACEOF
25262
cat confdefs.h >>conftest.$ac_ext
25263
cat >>conftest.$ac_ext <<_ACEOF
25264
/* end confdefs.h.  */
25265
 
25266
/* Override any GCC internal prototype to avoid an error.
25267
   Use char because int might match the return type of a GCC
25268
   builtin and then its argument prototype would still apply.  */
25269
#ifdef __cplusplus
25270
extern "C"
25271
#endif
25272
char poll ();
25273
int
25274
main ()
25275
{
25276
return poll ();
25277
  ;
25278
  return 0;
25279
}
25280
_ACEOF
25281
rm -f conftest.$ac_objext conftest$ac_exeext
25282
if { (ac_try="$ac_link"
25283
case "(($ac_try" in
25284
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25285
  *) ac_try_echo=$ac_try;;
25286
esac
216 andreas 25287
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25288
$as_echo "$ac_try_echo") >&5
88 andreas 25289
  (eval "$ac_link") 2>conftest.er1
25290
  ac_status=$?
25291
  grep -v '^ *+' conftest.er1 >conftest.err
25292
  rm -f conftest.er1
25293
  cat conftest.err >&5
216 andreas 25294
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 25295
  (exit $ac_status); } && {
25296
	 test -z "$ac_c_werror_flag" ||
25297
	 test ! -s conftest.err
216 andreas 25298
       } && test -s conftest$ac_exeext && {
25299
	 test "$cross_compiling" = yes ||
25300
	 $as_test_x conftest$ac_exeext
25301
       }; then
88 andreas 25302
  ac_cv_lib_poll_poll=yes
25303
else
216 andreas 25304
  $as_echo "$as_me: failed program was:" >&5
88 andreas 25305
sed 's/^/| /' conftest.$ac_ext >&5
25306
 
25307
	ac_cv_lib_poll_poll=no
25308
fi
25309
 
216 andreas 25310
rm -rf conftest.dSYM
88 andreas 25311
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25312
      conftest$ac_exeext conftest.$ac_ext
25313
LIBS=$ac_check_lib_save_LIBS
25314
fi
216 andreas 25315
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
25316
$as_echo "$ac_cv_lib_poll_poll" >&6; }
25317
if test "x$ac_cv_lib_poll_poll" = x""yes; then
88 andreas 25318
  LIB_POLL="-lpoll"
25319
fi
25320
 
25321
 
25322
   # for some image handling on Mac OS X
25323
 
25324
for ac_header in Carbon/Carbon.h
25325
do
216 andreas 25326
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
88 andreas 25327
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
216 andreas 25328
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25329
$as_echo_n "checking for $ac_header... " >&6; }
88 andreas 25330
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
216 andreas 25331
  $as_echo_n "(cached) " >&6
88 andreas 25332
fi
216 andreas 25333
ac_res=`eval 'as_val=${'$as_ac_Header'}
25334
		 $as_echo "$as_val"'`
25335
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25336
$as_echo "$ac_res" >&6; }
88 andreas 25337
else
25338
  # Is the header compilable?
216 andreas 25339
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25340
$as_echo_n "checking $ac_header usability... " >&6; }
88 andreas 25341
cat >conftest.$ac_ext <<_ACEOF
25342
/* confdefs.h.  */
25343
_ACEOF
25344
cat confdefs.h >>conftest.$ac_ext
25345
cat >>conftest.$ac_ext <<_ACEOF
25346
/* end confdefs.h.  */
25347
$ac_includes_default
25348
#include <$ac_header>
25349
_ACEOF
25350
rm -f conftest.$ac_objext
25351
if { (ac_try="$ac_compile"
25352
case "(($ac_try" in
25353
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25354
  *) ac_try_echo=$ac_try;;
25355
esac
216 andreas 25356
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25357
$as_echo "$ac_try_echo") >&5
88 andreas 25358
  (eval "$ac_compile") 2>conftest.er1
25359
  ac_status=$?
25360
  grep -v '^ *+' conftest.er1 >conftest.err
25361
  rm -f conftest.er1
25362
  cat conftest.err >&5
216 andreas 25363
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 25364
  (exit $ac_status); } && {
25365
	 test -z "$ac_c_werror_flag" ||
25366
	 test ! -s conftest.err
25367
       } && test -s conftest.$ac_objext; then
25368
  ac_header_compiler=yes
25369
else
216 andreas 25370
  $as_echo "$as_me: failed program was:" >&5
88 andreas 25371
sed 's/^/| /' conftest.$ac_ext >&5
25372
 
25373
	ac_header_compiler=no
25374
fi
25375
 
25376
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
216 andreas 25377
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25378
$as_echo "$ac_header_compiler" >&6; }
88 andreas 25379
 
25380
# Is the header present?
216 andreas 25381
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25382
$as_echo_n "checking $ac_header presence... " >&6; }
88 andreas 25383
cat >conftest.$ac_ext <<_ACEOF
25384
/* confdefs.h.  */
25385
_ACEOF
25386
cat confdefs.h >>conftest.$ac_ext
25387
cat >>conftest.$ac_ext <<_ACEOF
25388
/* end confdefs.h.  */
25389
#include <$ac_header>
25390
_ACEOF
25391
if { (ac_try="$ac_cpp conftest.$ac_ext"
25392
case "(($ac_try" in
25393
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25394
  *) ac_try_echo=$ac_try;;
25395
esac
216 andreas 25396
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25397
$as_echo "$ac_try_echo") >&5
88 andreas 25398
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25399
  ac_status=$?
25400
  grep -v '^ *+' conftest.er1 >conftest.err
25401
  rm -f conftest.er1
25402
  cat conftest.err >&5
216 andreas 25403
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 25404
  (exit $ac_status); } >/dev/null && {
25405
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25406
	 test ! -s conftest.err
25407
       }; then
25408
  ac_header_preproc=yes
25409
else
216 andreas 25410
  $as_echo "$as_me: failed program was:" >&5
88 andreas 25411
sed 's/^/| /' conftest.$ac_ext >&5
25412
 
25413
  ac_header_preproc=no
25414
fi
25415
 
25416
rm -f conftest.err conftest.$ac_ext
216 andreas 25417
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25418
$as_echo "$ac_header_preproc" >&6; }
88 andreas 25419
 
25420
# So?  What about this header?
25421
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25422
  yes:no: )
216 andreas 25423
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25424
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25425
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25426
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
88 andreas 25427
    ac_header_preproc=yes
25428
    ;;
25429
  no:yes:* )
216 andreas 25430
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25431
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25432
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25433
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25434
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25435
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25436
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25437
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25438
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25439
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25440
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25441
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
88 andreas 25442
 
25443
    ;;
25444
esac
216 andreas 25445
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25446
$as_echo_n "checking for $ac_header... " >&6; }
88 andreas 25447
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
216 andreas 25448
  $as_echo_n "(cached) " >&6
88 andreas 25449
else
25450
  eval "$as_ac_Header=\$ac_header_preproc"
25451
fi
216 andreas 25452
ac_res=`eval 'as_val=${'$as_ac_Header'}
25453
		 $as_echo "$as_val"'`
25454
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25455
$as_echo "$ac_res" >&6; }
88 andreas 25456
 
25457
fi
216 andreas 25458
as_val=`eval 'as_val=${'$as_ac_Header'}
25459
		 $as_echo "$as_val"'`
25460
   if test "x$as_val" = x""yes; then
88 andreas 25461
  cat >>confdefs.h <<_ACEOF
216 andreas 25462
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
88 andreas 25463
_ACEOF
25464
 
25465
fi
25466
 
25467
done
25468
 
25469
 
155 andreas 25470
   # Geodetic library
25471
   if test "${ac_cv_header_gdal_gdal_h+set}" = set; then
216 andreas 25472
  { $as_echo "$as_me:$LINENO: checking for gdal/gdal.h" >&5
25473
$as_echo_n "checking for gdal/gdal.h... " >&6; }
155 andreas 25474
if test "${ac_cv_header_gdal_gdal_h+set}" = set; then
216 andreas 25475
  $as_echo_n "(cached) " >&6
155 andreas 25476
fi
216 andreas 25477
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_gdal_gdal_h" >&5
25478
$as_echo "$ac_cv_header_gdal_gdal_h" >&6; }
155 andreas 25479
else
25480
  # Is the header compilable?
216 andreas 25481
{ $as_echo "$as_me:$LINENO: checking gdal/gdal.h usability" >&5
25482
$as_echo_n "checking gdal/gdal.h usability... " >&6; }
155 andreas 25483
cat >conftest.$ac_ext <<_ACEOF
25484
/* confdefs.h.  */
25485
_ACEOF
25486
cat confdefs.h >>conftest.$ac_ext
25487
cat >>conftest.$ac_ext <<_ACEOF
25488
/* end confdefs.h.  */
25489
$ac_includes_default
25490
#include <gdal/gdal.h>
25491
_ACEOF
25492
rm -f conftest.$ac_objext
25493
if { (ac_try="$ac_compile"
25494
case "(($ac_try" in
25495
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25496
  *) ac_try_echo=$ac_try;;
25497
esac
216 andreas 25498
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25499
$as_echo "$ac_try_echo") >&5
155 andreas 25500
  (eval "$ac_compile") 2>conftest.er1
25501
  ac_status=$?
25502
  grep -v '^ *+' conftest.er1 >conftest.err
25503
  rm -f conftest.er1
25504
  cat conftest.err >&5
216 andreas 25505
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
155 andreas 25506
  (exit $ac_status); } && {
25507
	 test -z "$ac_c_werror_flag" ||
25508
	 test ! -s conftest.err
25509
       } && test -s conftest.$ac_objext; then
25510
  ac_header_compiler=yes
25511
else
216 andreas 25512
  $as_echo "$as_me: failed program was:" >&5
155 andreas 25513
sed 's/^/| /' conftest.$ac_ext >&5
25514
 
25515
	ac_header_compiler=no
25516
fi
25517
 
25518
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
216 andreas 25519
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25520
$as_echo "$ac_header_compiler" >&6; }
155 andreas 25521
 
25522
# Is the header present?
216 andreas 25523
{ $as_echo "$as_me:$LINENO: checking gdal/gdal.h presence" >&5
25524
$as_echo_n "checking gdal/gdal.h presence... " >&6; }
155 andreas 25525
cat >conftest.$ac_ext <<_ACEOF
25526
/* confdefs.h.  */
25527
_ACEOF
25528
cat confdefs.h >>conftest.$ac_ext
25529
cat >>conftest.$ac_ext <<_ACEOF
25530
/* end confdefs.h.  */
25531
#include <gdal/gdal.h>
25532
_ACEOF
25533
if { (ac_try="$ac_cpp conftest.$ac_ext"
25534
case "(($ac_try" in
25535
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25536
  *) ac_try_echo=$ac_try;;
25537
esac
216 andreas 25538
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25539
$as_echo "$ac_try_echo") >&5
155 andreas 25540
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25541
  ac_status=$?
25542
  grep -v '^ *+' conftest.er1 >conftest.err
25543
  rm -f conftest.er1
25544
  cat conftest.err >&5
216 andreas 25545
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
155 andreas 25546
  (exit $ac_status); } >/dev/null && {
25547
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25548
	 test ! -s conftest.err
25549
       }; then
25550
  ac_header_preproc=yes
25551
else
216 andreas 25552
  $as_echo "$as_me: failed program was:" >&5
155 andreas 25553
sed 's/^/| /' conftest.$ac_ext >&5
25554
 
25555
  ac_header_preproc=no
25556
fi
25557
 
25558
rm -f conftest.err conftest.$ac_ext
216 andreas 25559
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25560
$as_echo "$ac_header_preproc" >&6; }
155 andreas 25561
 
25562
# So?  What about this header?
25563
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25564
  yes:no: )
216 andreas 25565
    { $as_echo "$as_me:$LINENO: WARNING: gdal/gdal.h: accepted by the compiler, rejected by the preprocessor!" >&5
25566
$as_echo "$as_me: WARNING: gdal/gdal.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25567
    { $as_echo "$as_me:$LINENO: WARNING: gdal/gdal.h: proceeding with the compiler's result" >&5
25568
$as_echo "$as_me: WARNING: gdal/gdal.h: proceeding with the compiler's result" >&2;}
155 andreas 25569
    ac_header_preproc=yes
25570
    ;;
25571
  no:yes:* )
216 andreas 25572
    { $as_echo "$as_me:$LINENO: WARNING: gdal/gdal.h: present but cannot be compiled" >&5
25573
$as_echo "$as_me: WARNING: gdal/gdal.h: present but cannot be compiled" >&2;}
25574
    { $as_echo "$as_me:$LINENO: WARNING: gdal/gdal.h:     check for missing prerequisite headers?" >&5
25575
$as_echo "$as_me: WARNING: gdal/gdal.h:     check for missing prerequisite headers?" >&2;}
25576
    { $as_echo "$as_me:$LINENO: WARNING: gdal/gdal.h: see the Autoconf documentation" >&5
25577
$as_echo "$as_me: WARNING: gdal/gdal.h: see the Autoconf documentation" >&2;}
25578
    { $as_echo "$as_me:$LINENO: WARNING: gdal/gdal.h:     section \"Present But Cannot Be Compiled\"" >&5
25579
$as_echo "$as_me: WARNING: gdal/gdal.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25580
    { $as_echo "$as_me:$LINENO: WARNING: gdal/gdal.h: proceeding with the preprocessor's result" >&5
25581
$as_echo "$as_me: WARNING: gdal/gdal.h: proceeding with the preprocessor's result" >&2;}
25582
    { $as_echo "$as_me:$LINENO: WARNING: gdal/gdal.h: in the future, the compiler will take precedence" >&5
25583
$as_echo "$as_me: WARNING: gdal/gdal.h: in the future, the compiler will take precedence" >&2;}
155 andreas 25584
 
25585
    ;;
25586
esac
216 andreas 25587
{ $as_echo "$as_me:$LINENO: checking for gdal/gdal.h" >&5
25588
$as_echo_n "checking for gdal/gdal.h... " >&6; }
155 andreas 25589
if test "${ac_cv_header_gdal_gdal_h+set}" = set; then
216 andreas 25590
  $as_echo_n "(cached) " >&6
155 andreas 25591
else
25592
  ac_cv_header_gdal_gdal_h=$ac_header_preproc
25593
fi
216 andreas 25594
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_gdal_gdal_h" >&5
25595
$as_echo "$ac_cv_header_gdal_gdal_h" >&6; }
155 andreas 25596
 
25597
fi
216 andreas 25598
if test "x$ac_cv_header_gdal_gdal_h" = x""yes; then
155 andreas 25599
 
25600
 
25601
cat >>confdefs.h <<\_ACEOF
25602
#define HAVE_GDAL 1
25603
_ACEOF
25604
 
25605
 
25606
fi
25607
 
25608
 
25609
 
216 andreas 25610
   { $as_echo "$as_me:$LINENO: checking for GDALAllRegister" >&5
25611
$as_echo_n "checking for GDALAllRegister... " >&6; }
155 andreas 25612
if test "${ac_cv_func_GDALAllRegister+set}" = set; then
216 andreas 25613
  $as_echo_n "(cached) " >&6
155 andreas 25614
else
25615
  cat >conftest.$ac_ext <<_ACEOF
25616
/* confdefs.h.  */
25617
_ACEOF
25618
cat confdefs.h >>conftest.$ac_ext
25619
cat >>conftest.$ac_ext <<_ACEOF
25620
/* end confdefs.h.  */
25621
/* Define GDALAllRegister to an innocuous variant, in case <limits.h> declares GDALAllRegister.
25622
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25623
#define GDALAllRegister innocuous_GDALAllRegister
25624
 
25625
/* System header to define __stub macros and hopefully few prototypes,
25626
    which can conflict with char GDALAllRegister (); below.
25627
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25628
    <limits.h> exists even on freestanding compilers.  */
25629
 
25630
#ifdef __STDC__
25631
# include <limits.h>
25632
#else
25633
# include <assert.h>
25634
#endif
25635
 
25636
#undef GDALAllRegister
25637
 
25638
/* Override any GCC internal prototype to avoid an error.
25639
   Use char because int might match the return type of a GCC
25640
   builtin and then its argument prototype would still apply.  */
25641
#ifdef __cplusplus
25642
extern "C"
25643
#endif
25644
char GDALAllRegister ();
25645
/* The GNU C library defines this for functions which it implements
25646
    to always fail with ENOSYS.  Some functions are actually named
25647
    something starting with __ and the normal name is an alias.  */
25648
#if defined __stub_GDALAllRegister || defined __stub___GDALAllRegister
25649
choke me
25650
#endif
25651
 
25652
int
25653
main ()
25654
{
25655
return GDALAllRegister ();
25656
  ;
25657
  return 0;
25658
}
25659
_ACEOF
25660
rm -f conftest.$ac_objext conftest$ac_exeext
25661
if { (ac_try="$ac_link"
25662
case "(($ac_try" in
25663
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25664
  *) ac_try_echo=$ac_try;;
25665
esac
216 andreas 25666
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25667
$as_echo "$ac_try_echo") >&5
155 andreas 25668
  (eval "$ac_link") 2>conftest.er1
25669
  ac_status=$?
25670
  grep -v '^ *+' conftest.er1 >conftest.err
25671
  rm -f conftest.er1
25672
  cat conftest.err >&5
216 andreas 25673
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
155 andreas 25674
  (exit $ac_status); } && {
25675
	 test -z "$ac_c_werror_flag" ||
25676
	 test ! -s conftest.err
216 andreas 25677
       } && test -s conftest$ac_exeext && {
25678
	 test "$cross_compiling" = yes ||
25679
	 $as_test_x conftest$ac_exeext
25680
       }; then
155 andreas 25681
  ac_cv_func_GDALAllRegister=yes
25682
else
216 andreas 25683
  $as_echo "$as_me: failed program was:" >&5
155 andreas 25684
sed 's/^/| /' conftest.$ac_ext >&5
25685
 
25686
	ac_cv_func_GDALAllRegister=no
25687
fi
25688
 
216 andreas 25689
rm -rf conftest.dSYM
155 andreas 25690
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25691
      conftest$ac_exeext conftest.$ac_ext
25692
fi
216 andreas 25693
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_GDALAllRegister" >&5
25694
$as_echo "$ac_cv_func_GDALAllRegister" >&6; }
25695
if test "x$ac_cv_func_GDALAllRegister" = x""yes; then
155 andreas 25696
  :
25697
else
25698
 
216 andreas 25699
{ $as_echo "$as_me:$LINENO: checking for GDALAllRegister in -lgdal1.5.0" >&5
25700
$as_echo_n "checking for GDALAllRegister in -lgdal1.5.0... " >&6; }
155 andreas 25701
if test "${ac_cv_lib_gdal1_5_0_GDALAllRegister+set}" = set; then
216 andreas 25702
  $as_echo_n "(cached) " >&6
155 andreas 25703
else
25704
  ac_check_lib_save_LIBS=$LIBS
25705
LIBS="-lgdal1.5.0  $LIBS"
25706
cat >conftest.$ac_ext <<_ACEOF
25707
/* confdefs.h.  */
25708
_ACEOF
25709
cat confdefs.h >>conftest.$ac_ext
25710
cat >>conftest.$ac_ext <<_ACEOF
25711
/* end confdefs.h.  */
25712
 
25713
/* Override any GCC internal prototype to avoid an error.
25714
   Use char because int might match the return type of a GCC
25715
   builtin and then its argument prototype would still apply.  */
25716
#ifdef __cplusplus
25717
extern "C"
25718
#endif
25719
char GDALAllRegister ();
25720
int
25721
main ()
25722
{
25723
return GDALAllRegister ();
25724
  ;
25725
  return 0;
25726
}
25727
_ACEOF
25728
rm -f conftest.$ac_objext conftest$ac_exeext
25729
if { (ac_try="$ac_link"
25730
case "(($ac_try" in
25731
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25732
  *) ac_try_echo=$ac_try;;
25733
esac
216 andreas 25734
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25735
$as_echo "$ac_try_echo") >&5
155 andreas 25736
  (eval "$ac_link") 2>conftest.er1
25737
  ac_status=$?
25738
  grep -v '^ *+' conftest.er1 >conftest.err
25739
  rm -f conftest.er1
25740
  cat conftest.err >&5
216 andreas 25741
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
155 andreas 25742
  (exit $ac_status); } && {
25743
	 test -z "$ac_c_werror_flag" ||
25744
	 test ! -s conftest.err
216 andreas 25745
       } && test -s conftest$ac_exeext && {
25746
	 test "$cross_compiling" = yes ||
25747
	 $as_test_x conftest$ac_exeext
25748
       }; then
155 andreas 25749
  ac_cv_lib_gdal1_5_0_GDALAllRegister=yes
25750
else
216 andreas 25751
  $as_echo "$as_me: failed program was:" >&5
155 andreas 25752
sed 's/^/| /' conftest.$ac_ext >&5
25753
 
25754
	ac_cv_lib_gdal1_5_0_GDALAllRegister=no
25755
fi
25756
 
216 andreas 25757
rm -rf conftest.dSYM
155 andreas 25758
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25759
      conftest$ac_exeext conftest.$ac_ext
25760
LIBS=$ac_check_lib_save_LIBS
25761
fi
216 andreas 25762
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gdal1_5_0_GDALAllRegister" >&5
25763
$as_echo "$ac_cv_lib_gdal1_5_0_GDALAllRegister" >&6; }
25764
if test "x$ac_cv_lib_gdal1_5_0_GDALAllRegister" = x""yes; then
155 andreas 25765
  cat >>confdefs.h <<_ACEOF
25766
#define HAVE_LIBGDAL1_5_0 1
25767
_ACEOF
25768
 
25769
  LIBS="-lgdal1.5.0 $LIBS"
25770
 
25771
else
25772
   echo "ERROR: GDAL library v1.5.0 was not found!"
25773
fi
25774
 
25775
fi
25776
 
25777
 
88 andreas 25778
   # CoreAudio framework
25779
   if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
216 andreas 25780
  { $as_echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
25781
$as_echo_n "checking for CoreAudio/CoreAudio.h... " >&6; }
88 andreas 25782
if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
216 andreas 25783
  $as_echo_n "(cached) " >&6
88 andreas 25784
fi
216 andreas 25785
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
25786
$as_echo "$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
88 andreas 25787
else
25788
  # Is the header compilable?
216 andreas 25789
{ $as_echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
25790
$as_echo_n "checking CoreAudio/CoreAudio.h usability... " >&6; }
88 andreas 25791
cat >conftest.$ac_ext <<_ACEOF
25792
/* confdefs.h.  */
25793
_ACEOF
25794
cat confdefs.h >>conftest.$ac_ext
25795
cat >>conftest.$ac_ext <<_ACEOF
25796
/* end confdefs.h.  */
25797
$ac_includes_default
25798
#include <CoreAudio/CoreAudio.h>
25799
_ACEOF
25800
rm -f conftest.$ac_objext
25801
if { (ac_try="$ac_compile"
25802
case "(($ac_try" in
25803
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25804
  *) ac_try_echo=$ac_try;;
25805
esac
216 andreas 25806
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25807
$as_echo "$ac_try_echo") >&5
88 andreas 25808
  (eval "$ac_compile") 2>conftest.er1
25809
  ac_status=$?
25810
  grep -v '^ *+' conftest.er1 >conftest.err
25811
  rm -f conftest.er1
25812
  cat conftest.err >&5
216 andreas 25813
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 25814
  (exit $ac_status); } && {
25815
	 test -z "$ac_c_werror_flag" ||
25816
	 test ! -s conftest.err
25817
       } && test -s conftest.$ac_objext; then
25818
  ac_header_compiler=yes
25819
else
216 andreas 25820
  $as_echo "$as_me: failed program was:" >&5
88 andreas 25821
sed 's/^/| /' conftest.$ac_ext >&5
25822
 
25823
	ac_header_compiler=no
25824
fi
25825
 
25826
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
216 andreas 25827
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25828
$as_echo "$ac_header_compiler" >&6; }
88 andreas 25829
 
25830
# Is the header present?
216 andreas 25831
{ $as_echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
25832
$as_echo_n "checking CoreAudio/CoreAudio.h presence... " >&6; }
88 andreas 25833
cat >conftest.$ac_ext <<_ACEOF
25834
/* confdefs.h.  */
25835
_ACEOF
25836
cat confdefs.h >>conftest.$ac_ext
25837
cat >>conftest.$ac_ext <<_ACEOF
25838
/* end confdefs.h.  */
25839
#include <CoreAudio/CoreAudio.h>
25840
_ACEOF
25841
if { (ac_try="$ac_cpp conftest.$ac_ext"
25842
case "(($ac_try" in
25843
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25844
  *) ac_try_echo=$ac_try;;
25845
esac
216 andreas 25846
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25847
$as_echo "$ac_try_echo") >&5
88 andreas 25848
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25849
  ac_status=$?
25850
  grep -v '^ *+' conftest.er1 >conftest.err
25851
  rm -f conftest.er1
25852
  cat conftest.err >&5
216 andreas 25853
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 25854
  (exit $ac_status); } >/dev/null && {
25855
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25856
	 test ! -s conftest.err
25857
       }; then
25858
  ac_header_preproc=yes
25859
else
216 andreas 25860
  $as_echo "$as_me: failed program was:" >&5
88 andreas 25861
sed 's/^/| /' conftest.$ac_ext >&5
25862
 
25863
  ac_header_preproc=no
25864
fi
25865
 
25866
rm -f conftest.err conftest.$ac_ext
216 andreas 25867
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25868
$as_echo "$ac_header_preproc" >&6; }
88 andreas 25869
 
25870
# So?  What about this header?
25871
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25872
  yes:no: )
216 andreas 25873
    { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
25874
$as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25875
    { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
25876
$as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
88 andreas 25877
    ac_header_preproc=yes
25878
    ;;
25879
  no:yes:* )
216 andreas 25880
    { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
25881
$as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
25882
    { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h:     check for missing prerequisite headers?" >&5
25883
$as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h:     check for missing prerequisite headers?" >&2;}
25884
    { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
25885
$as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
25886
    { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h:     section \"Present But Cannot Be Compiled\"" >&5
25887
$as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25888
    { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
25889
$as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
25890
    { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
25891
$as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
88 andreas 25892
 
25893
    ;;
25894
esac
216 andreas 25895
{ $as_echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
25896
$as_echo_n "checking for CoreAudio/CoreAudio.h... " >&6; }
88 andreas 25897
if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
216 andreas 25898
  $as_echo_n "(cached) " >&6
88 andreas 25899
else
25900
  ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
25901
fi
216 andreas 25902
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
25903
$as_echo "$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
88 andreas 25904
 
25905
fi
216 andreas 25906
if test "x$ac_cv_header_CoreAudio_CoreAudio_h" = x""yes; then
88 andreas 25907
 
25908
 
25909
cat >>confdefs.h <<\_ACEOF
25910
#define HAVE_COREAUDIO 1
25911
_ACEOF
25912
 
25913
     FRAMEWORK_COREAUDIO="-Wl,-framework,CoreAudio"
25914
 
25915
fi
25916
 
25917
 
25918
 
25919
 
216 andreas 25920
  { $as_echo "$as_me:$LINENO: checking if res_init needs -lresolv" >&5
25921
$as_echo_n "checking if res_init needs -lresolv... " >&6; }
88 andreas 25922
  kde_libs_safe="$LIBS"
25923
  LIBS="$LIBS $X_EXTRA_LIBS -lresolv"
25924
  cat >conftest.$ac_ext <<_ACEOF
25925
/* confdefs.h.  */
25926
_ACEOF
25927
cat confdefs.h >>conftest.$ac_ext
25928
cat >>conftest.$ac_ext <<_ACEOF
25929
/* end confdefs.h.  */
25930
 
25931
#include <sys/types.h>
25932
#include <netinet/in.h>
25933
#include <arpa/nameser.h>
25934
#include <resolv.h>
25935
 
25936
int
25937
main ()
25938
{
25939
 
25940
      res_init();
25941
 
25942
  ;
25943
  return 0;
25944
}
25945
_ACEOF
25946
rm -f conftest.$ac_objext conftest$ac_exeext
25947
if { (ac_try="$ac_link"
25948
case "(($ac_try" in
25949
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25950
  *) ac_try_echo=$ac_try;;
25951
esac
216 andreas 25952
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25953
$as_echo "$ac_try_echo") >&5
88 andreas 25954
  (eval "$ac_link") 2>conftest.er1
25955
  ac_status=$?
25956
  grep -v '^ *+' conftest.er1 >conftest.err
25957
  rm -f conftest.er1
25958
  cat conftest.err >&5
216 andreas 25959
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 25960
  (exit $ac_status); } && {
25961
	 test -z "$ac_c_werror_flag" ||
25962
	 test ! -s conftest.err
216 andreas 25963
       } && test -s conftest$ac_exeext && {
25964
	 test "$cross_compiling" = yes ||
25965
	 $as_test_x conftest$ac_exeext
25966
       }; then
88 andreas 25967
 
25968
      LIBRESOLV="-lresolv"
216 andreas 25969
      { $as_echo "$as_me:$LINENO: result: yes" >&5
25970
$as_echo "yes" >&6; }
88 andreas 25971
 
25972
cat >>confdefs.h <<\_ACEOF
25973
#define HAVE_RES_INIT 1
25974
_ACEOF
25975
 
25976
 
25977
else
216 andreas 25978
  $as_echo "$as_me: failed program was:" >&5
88 andreas 25979
sed 's/^/| /' conftest.$ac_ext >&5
25980
 
216 andreas 25981
	 { $as_echo "$as_me:$LINENO: result: no" >&5
25982
$as_echo "no" >&6; }
88 andreas 25983
 
25984
fi
25985
 
216 andreas 25986
rm -rf conftest.dSYM
88 andreas 25987
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25988
      conftest$ac_exeext conftest.$ac_ext
25989
  LIBS=$kde_libs_safe
25990
 
25991
 
25992
 
216 andreas 25993
{ $as_echo "$as_me:$LINENO: checking for res_init" >&5
25994
$as_echo_n "checking for res_init... " >&6; }
88 andreas 25995
if test "${kde_cv_func_res_init+set}" = set; then
216 andreas 25996
  $as_echo_n "(cached) " >&6
88 andreas 25997
else
25998
 
25999
 
26000
 ac_ext=cpp
26001
ac_cpp='$CXXCPP $CPPFLAGS'
26002
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26003
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26004
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26005
 
26006
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
26007
 
26008
 
26009
save_CXXFLAGS="$CXXFLAGS"
26010
kde_safe_LIBS="$LIBS"
26011
LIBS="$LIBS $X_EXTRA_LIBS"
26012
if test "$GXX" = "yes"; then
26013
CXXFLAGS="$CXXFLAGS -pedantic-errors"
26014
fi
26015
cat >conftest.$ac_ext <<_ACEOF
26016
/* confdefs.h.  */
26017
_ACEOF
26018
cat confdefs.h >>conftest.$ac_ext
26019
cat >>conftest.$ac_ext <<_ACEOF
26020
/* end confdefs.h.  */
26021
 
26022
 
26023
#include <sys/types.h>
26024
#include <netinet/in.h>
26025
#include <arpa/nameser.h>
26026
#include <resolv.h>
26027
 
26028
 
26029
int
26030
main ()
26031
{
26032
 
26033
res_init()
26034
 
26035
  ;
26036
  return 0;
26037
}
26038
_ACEOF
26039
rm -f conftest.$ac_objext
26040
if { (ac_try="$ac_compile"
26041
case "(($ac_try" in
26042
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26043
  *) ac_try_echo=$ac_try;;
26044
esac
216 andreas 26045
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26046
$as_echo "$ac_try_echo") >&5
88 andreas 26047
  (eval "$ac_compile") 2>conftest.er1
26048
  ac_status=$?
26049
  grep -v '^ *+' conftest.er1 >conftest.err
26050
  rm -f conftest.er1
26051
  cat conftest.err >&5
216 andreas 26052
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 26053
  (exit $ac_status); } && {
26054
	 test -z "$ac_cxx_werror_flag" ||
26055
	 test ! -s conftest.err
26056
       } && test -s conftest.$ac_objext; then
26057
  kde_cv_func_res_init=yes
26058
else
216 andreas 26059
  $as_echo "$as_me: failed program was:" >&5
88 andreas 26060
sed 's/^/| /' conftest.$ac_ext >&5
26061
 
26062
	kde_cv_func_res_init=no
26063
fi
26064
 
26065
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26066
CXXFLAGS="$save_CXXFLAGS"
26067
LIBS="$kde_safe_LIBS"
26068
ac_ext=c
26069
ac_cpp='$CPP $CPPFLAGS'
26070
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26071
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26072
ac_compiler_gnu=$ac_cv_c_compiler_gnu
26073
 
26074
 
26075
fi
26076
 
26077
 
216 andreas 26078
{ $as_echo "$as_me:$LINENO: result: $kde_cv_func_res_init" >&5
26079
$as_echo "$kde_cv_func_res_init" >&6; }
88 andreas 26080
 
216 andreas 26081
{ $as_echo "$as_me:$LINENO: checking if res_init needs custom prototype" >&5
26082
$as_echo_n "checking if res_init needs custom prototype... " >&6; }
88 andreas 26083
if test "${kde_cv_proto_res_init+set}" = set; then
216 andreas 26084
  $as_echo_n "(cached) " >&6
88 andreas 26085
else
26086
 
26087
if test "x$kde_cv_func_res_init" = xyes; then
26088
  kde_cv_proto_res_init=no
26089
else
26090
  case "res_init" in
26091
	setenv|unsetenv|usleep|random|srandom|seteuid|mkstemps|mkstemp|revoke|vsnprintf|strlcpy|strlcat)
26092
		kde_cv_proto_res_init="yes - in libkdefakes"
26093
		;;
26094
	*)
26095
		kde_cv_proto_res_init=unknown
26096
		;;
26097
  esac
26098
fi
26099
 
26100
if test "x$kde_cv_proto_res_init" = xunknown; then
26101
 
26102
 
26103
 ac_ext=cpp
26104
ac_cpp='$CXXCPP $CPPFLAGS'
26105
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26106
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26107
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26108
 
26109
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
26110
 
26111
 
26112
  kde_safe_libs=$LIBS
26113
  LIBS="$LIBS $X_EXTRA_LIBS"
26114
  cat >conftest.$ac_ext <<_ACEOF
26115
/* confdefs.h.  */
26116
_ACEOF
26117
cat confdefs.h >>conftest.$ac_ext
26118
cat >>conftest.$ac_ext <<_ACEOF
26119
/* end confdefs.h.  */
26120
 
26121
 
26122
#include <sys/types.h>
26123
#include <netinet/in.h>
26124
#include <arpa/nameser.h>
26125
#include <resolv.h>
26126
 
26127
 
26128
extern "C" int res_init(void);
26129
 
26130
int
26131
main ()
26132
{
26133
 
26134
res_init()
26135
 
26136
  ;
26137
  return 0;
26138
}
26139
_ACEOF
26140
rm -f conftest.$ac_objext conftest$ac_exeext
26141
if { (ac_try="$ac_link"
26142
case "(($ac_try" in
26143
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26144
  *) ac_try_echo=$ac_try;;
26145
esac
216 andreas 26146
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26147
$as_echo "$ac_try_echo") >&5
88 andreas 26148
  (eval "$ac_link") 2>conftest.er1
26149
  ac_status=$?
26150
  grep -v '^ *+' conftest.er1 >conftest.err
26151
  rm -f conftest.er1
26152
  cat conftest.err >&5
216 andreas 26153
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 26154
  (exit $ac_status); } && {
26155
	 test -z "$ac_cxx_werror_flag" ||
26156
	 test ! -s conftest.err
216 andreas 26157
       } && test -s conftest$ac_exeext && {
26158
	 test "$cross_compiling" = yes ||
26159
	 $as_test_x conftest$ac_exeext
26160
       }; then
88 andreas 26161
   kde_cv_func_res_init=yes
26162
  kde_cv_proto_res_init=yes
26163
else
216 andreas 26164
  $as_echo "$as_me: failed program was:" >&5
88 andreas 26165
sed 's/^/| /' conftest.$ac_ext >&5
26166
 
26167
	kde_cv_proto_res_init="res_init unavailable"
26168
 
26169
fi
26170
 
216 andreas 26171
rm -rf conftest.dSYM
88 andreas 26172
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26173
      conftest$ac_exeext conftest.$ac_ext
26174
LIBS=$kde_safe_libs
26175
ac_ext=c
26176
ac_cpp='$CPP $CPPFLAGS'
26177
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26178
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26179
ac_compiler_gnu=$ac_cv_c_compiler_gnu
26180
 
26181
fi
26182
 
26183
fi
26184
 
216 andreas 26185
{ $as_echo "$as_me:$LINENO: result: $kde_cv_proto_res_init" >&5
26186
$as_echo "$kde_cv_proto_res_init" >&6; }
88 andreas 26187
 
26188
if test "x$kde_cv_func_res_init" = xyes; then
26189
 
26190
cat >>confdefs.h <<\_ACEOF
26191
#define HAVE_RES_INIT 1
26192
_ACEOF
26193
 
26194
 
26195
fi
26196
if test "x$kde_cv_proto_res_init" = xno; then
26197
 
26198
cat >>confdefs.h <<\_ACEOF
26199
#define HAVE_RES_INIT_PROTO 1
26200
_ACEOF
26201
 
26202
fi
26203
 
26204
 
26205
 
26206
 
26207
 
26208
 
26209
 
26210
   LIBSOCKET="$X_EXTRA_LIBS"
26211
 
26212
 
216 andreas 26213
   { $as_echo "$as_me:$LINENO: checking for killpg in -lucb" >&5
26214
$as_echo_n "checking for killpg in -lucb... " >&6; }
88 andreas 26215
if test "${ac_cv_lib_ucb_killpg+set}" = set; then
216 andreas 26216
  $as_echo_n "(cached) " >&6
88 andreas 26217
else
26218
  ac_check_lib_save_LIBS=$LIBS
26219
LIBS="-lucb  $LIBS"
26220
cat >conftest.$ac_ext <<_ACEOF
26221
/* confdefs.h.  */
26222
_ACEOF
26223
cat confdefs.h >>conftest.$ac_ext
26224
cat >>conftest.$ac_ext <<_ACEOF
26225
/* end confdefs.h.  */
26226
 
26227
/* Override any GCC internal prototype to avoid an error.
26228
   Use char because int might match the return type of a GCC
26229
   builtin and then its argument prototype would still apply.  */
26230
#ifdef __cplusplus
26231
extern "C"
26232
#endif
26233
char killpg ();
26234
int
26235
main ()
26236
{
26237
return killpg ();
26238
  ;
26239
  return 0;
26240
}
26241
_ACEOF
26242
rm -f conftest.$ac_objext conftest$ac_exeext
26243
if { (ac_try="$ac_link"
26244
case "(($ac_try" in
26245
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26246
  *) ac_try_echo=$ac_try;;
26247
esac
216 andreas 26248
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26249
$as_echo "$ac_try_echo") >&5
88 andreas 26250
  (eval "$ac_link") 2>conftest.er1
26251
  ac_status=$?
26252
  grep -v '^ *+' conftest.er1 >conftest.err
26253
  rm -f conftest.er1
26254
  cat conftest.err >&5
216 andreas 26255
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 26256
  (exit $ac_status); } && {
26257
	 test -z "$ac_c_werror_flag" ||
26258
	 test ! -s conftest.err
216 andreas 26259
       } && test -s conftest$ac_exeext && {
26260
	 test "$cross_compiling" = yes ||
26261
	 $as_test_x conftest$ac_exeext
26262
       }; then
88 andreas 26263
  ac_cv_lib_ucb_killpg=yes
26264
else
216 andreas 26265
  $as_echo "$as_me: failed program was:" >&5
88 andreas 26266
sed 's/^/| /' conftest.$ac_ext >&5
26267
 
26268
	ac_cv_lib_ucb_killpg=no
26269
fi
26270
 
216 andreas 26271
rm -rf conftest.dSYM
88 andreas 26272
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26273
      conftest$ac_exeext conftest.$ac_ext
26274
LIBS=$ac_check_lib_save_LIBS
26275
fi
216 andreas 26276
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_killpg" >&5
26277
$as_echo "$ac_cv_lib_ucb_killpg" >&6; }
26278
if test "x$ac_cv_lib_ucb_killpg" = x""yes; then
88 andreas 26279
  LIBUCB="-lucb"
26280
fi
26281
 
26282
 
26283
   case $host in     *-*-lynxos* )
216 andreas 26284
        { $as_echo "$as_me:$LINENO: checking LynxOS header file wrappers" >&5
26285
$as_echo_n "checking LynxOS header file wrappers... " >&6; }
88 andreas 26286
        CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
216 andreas 26287
        { $as_echo "$as_me:$LINENO: result: disabled" >&5
26288
$as_echo "disabled" >&6; }
26289
        { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
26290
$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
88 andreas 26291
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
216 andreas 26292
  $as_echo_n "(cached) " >&6
88 andreas 26293
else
26294
  ac_check_lib_save_LIBS=$LIBS
26295
LIBS="-lbsd  $LIBS"
26296
cat >conftest.$ac_ext <<_ACEOF
26297
/* confdefs.h.  */
26298
_ACEOF
26299
cat confdefs.h >>conftest.$ac_ext
26300
cat >>conftest.$ac_ext <<_ACEOF
26301
/* end confdefs.h.  */
26302
 
26303
/* Override any GCC internal prototype to avoid an error.
26304
   Use char because int might match the return type of a GCC
26305
   builtin and then its argument prototype would still apply.  */
26306
#ifdef __cplusplus
26307
extern "C"
26308
#endif
26309
char gethostbyname ();
26310
int
26311
main ()
26312
{
26313
return gethostbyname ();
26314
  ;
26315
  return 0;
26316
}
26317
_ACEOF
26318
rm -f conftest.$ac_objext conftest$ac_exeext
26319
if { (ac_try="$ac_link"
26320
case "(($ac_try" in
26321
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26322
  *) ac_try_echo=$ac_try;;
26323
esac
216 andreas 26324
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26325
$as_echo "$ac_try_echo") >&5
88 andreas 26326
  (eval "$ac_link") 2>conftest.er1
26327
  ac_status=$?
26328
  grep -v '^ *+' conftest.er1 >conftest.err
26329
  rm -f conftest.er1
26330
  cat conftest.err >&5
216 andreas 26331
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 26332
  (exit $ac_status); } && {
26333
	 test -z "$ac_c_werror_flag" ||
26334
	 test ! -s conftest.err
216 andreas 26335
       } && test -s conftest$ac_exeext && {
26336
	 test "$cross_compiling" = yes ||
26337
	 $as_test_x conftest$ac_exeext
26338
       }; then
88 andreas 26339
  ac_cv_lib_bsd_gethostbyname=yes
26340
else
216 andreas 26341
  $as_echo "$as_me: failed program was:" >&5
88 andreas 26342
sed 's/^/| /' conftest.$ac_ext >&5
26343
 
26344
	ac_cv_lib_bsd_gethostbyname=no
26345
fi
26346
 
216 andreas 26347
rm -rf conftest.dSYM
88 andreas 26348
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26349
      conftest$ac_exeext conftest.$ac_ext
26350
LIBS=$ac_check_lib_save_LIBS
26351
fi
216 andreas 26352
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
26353
$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
26354
if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then
88 andreas 26355
  LIBSOCKET="-lbsd"
26356
fi
26357
          ;;
26358
    esac
26359
 
216 andreas 26360
     # The cast to long int works around a bug in the HP C Compiler
88 andreas 26361
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26362
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26363
# This bug is HP SR number 8606223364.
216 andreas 26364
{ $as_echo "$as_me:$LINENO: checking size of int" >&5
26365
$as_echo_n "checking size of int... " >&6; }
88 andreas 26366
if test "${ac_cv_sizeof_int+set}" = set; then
216 andreas 26367
  $as_echo_n "(cached) " >&6
88 andreas 26368
else
26369
  if test "$cross_compiling" = yes; then
26370
  # Depending upon the size, compute the lo and hi bounds.
26371
cat >conftest.$ac_ext <<_ACEOF
26372
/* confdefs.h.  */
26373
_ACEOF
26374
cat confdefs.h >>conftest.$ac_ext
26375
cat >>conftest.$ac_ext <<_ACEOF
26376
/* end confdefs.h.  */
26377
$ac_includes_default
26378
int
26379
main ()
26380
{
216 andreas 26381
static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
88 andreas 26382
test_array [0] = 0
26383
 
26384
  ;
26385
  return 0;
26386
}
26387
_ACEOF
26388
rm -f conftest.$ac_objext
26389
if { (ac_try="$ac_compile"
26390
case "(($ac_try" in
26391
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26392
  *) ac_try_echo=$ac_try;;
26393
esac
216 andreas 26394
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26395
$as_echo "$ac_try_echo") >&5
88 andreas 26396
  (eval "$ac_compile") 2>conftest.er1
26397
  ac_status=$?
26398
  grep -v '^ *+' conftest.er1 >conftest.err
26399
  rm -f conftest.er1
26400
  cat conftest.err >&5
216 andreas 26401
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 26402
  (exit $ac_status); } && {
26403
	 test -z "$ac_c_werror_flag" ||
26404
	 test ! -s conftest.err
26405
       } && test -s conftest.$ac_objext; then
26406
  ac_lo=0 ac_mid=0
26407
  while :; do
26408
    cat >conftest.$ac_ext <<_ACEOF
26409
/* confdefs.h.  */
26410
_ACEOF
26411
cat confdefs.h >>conftest.$ac_ext
26412
cat >>conftest.$ac_ext <<_ACEOF
26413
/* end confdefs.h.  */
26414
$ac_includes_default
26415
int
26416
main ()
26417
{
216 andreas 26418
static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
88 andreas 26419
test_array [0] = 0
26420
 
26421
  ;
26422
  return 0;
26423
}
26424
_ACEOF
26425
rm -f conftest.$ac_objext
26426
if { (ac_try="$ac_compile"
26427
case "(($ac_try" in
26428
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26429
  *) ac_try_echo=$ac_try;;
26430
esac
216 andreas 26431
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26432
$as_echo "$ac_try_echo") >&5
88 andreas 26433
  (eval "$ac_compile") 2>conftest.er1
26434
  ac_status=$?
26435
  grep -v '^ *+' conftest.er1 >conftest.err
26436
  rm -f conftest.er1
26437
  cat conftest.err >&5
216 andreas 26438
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 26439
  (exit $ac_status); } && {
26440
	 test -z "$ac_c_werror_flag" ||
26441
	 test ! -s conftest.err
26442
       } && test -s conftest.$ac_objext; then
26443
  ac_hi=$ac_mid; break
26444
else
216 andreas 26445
  $as_echo "$as_me: failed program was:" >&5
88 andreas 26446
sed 's/^/| /' conftest.$ac_ext >&5
26447
 
26448
	ac_lo=`expr $ac_mid + 1`
26449
			if test $ac_lo -le $ac_mid; then
26450
			  ac_lo= ac_hi=
26451
			  break
26452
			fi
26453
			ac_mid=`expr 2 '*' $ac_mid + 1`
26454
fi
26455
 
26456
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26457
  done
26458
else
216 andreas 26459
  $as_echo "$as_me: failed program was:" >&5
88 andreas 26460
sed 's/^/| /' conftest.$ac_ext >&5
26461
 
26462
	cat >conftest.$ac_ext <<_ACEOF
26463
/* confdefs.h.  */
26464
_ACEOF
26465
cat confdefs.h >>conftest.$ac_ext
26466
cat >>conftest.$ac_ext <<_ACEOF
26467
/* end confdefs.h.  */
26468
$ac_includes_default
26469
int
26470
main ()
26471
{
216 andreas 26472
static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
88 andreas 26473
test_array [0] = 0
26474
 
26475
  ;
26476
  return 0;
26477
}
26478
_ACEOF
26479
rm -f conftest.$ac_objext
26480
if { (ac_try="$ac_compile"
26481
case "(($ac_try" in
26482
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26483
  *) ac_try_echo=$ac_try;;
26484
esac
216 andreas 26485
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26486
$as_echo "$ac_try_echo") >&5
88 andreas 26487
  (eval "$ac_compile") 2>conftest.er1
26488
  ac_status=$?
26489
  grep -v '^ *+' conftest.er1 >conftest.err
26490
  rm -f conftest.er1
26491
  cat conftest.err >&5
216 andreas 26492
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 26493
  (exit $ac_status); } && {
26494
	 test -z "$ac_c_werror_flag" ||
26495
	 test ! -s conftest.err
26496
       } && test -s conftest.$ac_objext; then
26497
  ac_hi=-1 ac_mid=-1
26498
  while :; do
26499
    cat >conftest.$ac_ext <<_ACEOF
26500
/* confdefs.h.  */
26501
_ACEOF
26502
cat confdefs.h >>conftest.$ac_ext
26503
cat >>conftest.$ac_ext <<_ACEOF
26504
/* end confdefs.h.  */
26505
$ac_includes_default
26506
int
26507
main ()
26508
{
216 andreas 26509
static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
88 andreas 26510
test_array [0] = 0
26511
 
26512
  ;
26513
  return 0;
26514
}
26515
_ACEOF
26516
rm -f conftest.$ac_objext
26517
if { (ac_try="$ac_compile"
26518
case "(($ac_try" in
26519
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26520
  *) ac_try_echo=$ac_try;;
26521
esac
216 andreas 26522
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26523
$as_echo "$ac_try_echo") >&5
88 andreas 26524
  (eval "$ac_compile") 2>conftest.er1
26525
  ac_status=$?
26526
  grep -v '^ *+' conftest.er1 >conftest.err
26527
  rm -f conftest.er1
26528
  cat conftest.err >&5
216 andreas 26529
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 26530
  (exit $ac_status); } && {
26531
	 test -z "$ac_c_werror_flag" ||
26532
	 test ! -s conftest.err
26533
       } && test -s conftest.$ac_objext; then
26534
  ac_lo=$ac_mid; break
26535
else
216 andreas 26536
  $as_echo "$as_me: failed program was:" >&5
88 andreas 26537
sed 's/^/| /' conftest.$ac_ext >&5
26538
 
26539
	ac_hi=`expr '(' $ac_mid ')' - 1`
26540
			if test $ac_mid -le $ac_hi; then
26541
			  ac_lo= ac_hi=
26542
			  break
26543
			fi
26544
			ac_mid=`expr 2 '*' $ac_mid`
26545
fi
26546
 
26547
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26548
  done
26549
else
216 andreas 26550
  $as_echo "$as_me: failed program was:" >&5
88 andreas 26551
sed 's/^/| /' conftest.$ac_ext >&5
26552
 
26553
	ac_lo= ac_hi=
26554
fi
26555
 
26556
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26557
fi
26558
 
26559
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26560
# Binary search between lo and hi bounds.
26561
while test "x$ac_lo" != "x$ac_hi"; do
26562
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26563
  cat >conftest.$ac_ext <<_ACEOF
26564
/* confdefs.h.  */
26565
_ACEOF
26566
cat confdefs.h >>conftest.$ac_ext
26567
cat >>conftest.$ac_ext <<_ACEOF
26568
/* end confdefs.h.  */
26569
$ac_includes_default
26570
int
26571
main ()
26572
{
216 andreas 26573
static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
88 andreas 26574
test_array [0] = 0
26575
 
26576
  ;
26577
  return 0;
26578
}
26579
_ACEOF
26580
rm -f conftest.$ac_objext
26581
if { (ac_try="$ac_compile"
26582
case "(($ac_try" in
26583
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26584
  *) ac_try_echo=$ac_try;;
26585
esac
216 andreas 26586
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26587
$as_echo "$ac_try_echo") >&5
88 andreas 26588
  (eval "$ac_compile") 2>conftest.er1
26589
  ac_status=$?
26590
  grep -v '^ *+' conftest.er1 >conftest.err
26591
  rm -f conftest.er1
26592
  cat conftest.err >&5
216 andreas 26593
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 26594
  (exit $ac_status); } && {
26595
	 test -z "$ac_c_werror_flag" ||
26596
	 test ! -s conftest.err
26597
       } && test -s conftest.$ac_objext; then
26598
  ac_hi=$ac_mid
26599
else
216 andreas 26600
  $as_echo "$as_me: failed program was:" >&5
88 andreas 26601
sed 's/^/| /' conftest.$ac_ext >&5
26602
 
26603
	ac_lo=`expr '(' $ac_mid ')' + 1`
26604
fi
26605
 
26606
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26607
done
26608
case $ac_lo in
26609
?*) ac_cv_sizeof_int=$ac_lo;;
26610
'') if test "$ac_cv_type_int" = yes; then
216 andreas 26611
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26612
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26613
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
88 andreas 26614
See \`config.log' for more details." >&5
216 andreas 26615
$as_echo "$as_me: error: cannot compute sizeof (int)
88 andreas 26616
See \`config.log' for more details." >&2;}
216 andreas 26617
   { (exit 77); exit 77; }; }; }
88 andreas 26618
   else
26619
     ac_cv_sizeof_int=0
26620
   fi ;;
26621
esac
26622
else
26623
  cat >conftest.$ac_ext <<_ACEOF
26624
/* confdefs.h.  */
26625
_ACEOF
26626
cat confdefs.h >>conftest.$ac_ext
26627
cat >>conftest.$ac_ext <<_ACEOF
26628
/* end confdefs.h.  */
26629
$ac_includes_default
216 andreas 26630
static long int longval () { return (long int) (sizeof (int)); }
26631
static unsigned long int ulongval () { return (long int) (sizeof (int)); }
88 andreas 26632
#include <stdio.h>
26633
#include <stdlib.h>
26634
int
26635
main ()
26636
{
26637
 
26638
  FILE *f = fopen ("conftest.val", "w");
26639
  if (! f)
26640
    return 1;
216 andreas 26641
  if (((long int) (sizeof (int))) < 0)
88 andreas 26642
    {
26643
      long int i = longval ();
216 andreas 26644
      if (i != ((long int) (sizeof (int))))
88 andreas 26645
	return 1;
216 andreas 26646
      fprintf (f, "%ld", i);
88 andreas 26647
    }
26648
  else
26649
    {
26650
      unsigned long int i = ulongval ();
216 andreas 26651
      if (i != ((long int) (sizeof (int))))
88 andreas 26652
	return 1;
216 andreas 26653
      fprintf (f, "%lu", i);
88 andreas 26654
    }
216 andreas 26655
  /* Do not output a trailing newline, as this causes \r\n confusion
26656
     on some platforms.  */
88 andreas 26657
  return ferror (f) || fclose (f) != 0;
26658
 
26659
  ;
26660
  return 0;
26661
}
26662
_ACEOF
26663
rm -f conftest$ac_exeext
26664
if { (ac_try="$ac_link"
26665
case "(($ac_try" in
26666
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26667
  *) ac_try_echo=$ac_try;;
26668
esac
216 andreas 26669
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26670
$as_echo "$ac_try_echo") >&5
88 andreas 26671
  (eval "$ac_link") 2>&5
26672
  ac_status=$?
216 andreas 26673
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 26674
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26675
  { (case "(($ac_try" in
26676
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26677
  *) ac_try_echo=$ac_try;;
26678
esac
216 andreas 26679
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26680
$as_echo "$ac_try_echo") >&5
88 andreas 26681
  (eval "$ac_try") 2>&5
26682
  ac_status=$?
216 andreas 26683
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 26684
  (exit $ac_status); }; }; then
26685
  ac_cv_sizeof_int=`cat conftest.val`
26686
else
216 andreas 26687
  $as_echo "$as_me: program exited with status $ac_status" >&5
26688
$as_echo "$as_me: failed program was:" >&5
88 andreas 26689
sed 's/^/| /' conftest.$ac_ext >&5
26690
 
26691
( exit $ac_status )
26692
if test "$ac_cv_type_int" = yes; then
216 andreas 26693
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26694
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26695
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
88 andreas 26696
See \`config.log' for more details." >&5
216 andreas 26697
$as_echo "$as_me: error: cannot compute sizeof (int)
88 andreas 26698
See \`config.log' for more details." >&2;}
216 andreas 26699
   { (exit 77); exit 77; }; }; }
88 andreas 26700
   else
26701
     ac_cv_sizeof_int=0
26702
   fi
26703
fi
216 andreas 26704
rm -rf conftest.dSYM
88 andreas 26705
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26706
fi
26707
rm -f conftest.val
26708
fi
216 andreas 26709
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
26710
$as_echo "$ac_cv_sizeof_int" >&6; }
88 andreas 26711
 
26712
 
26713
 
26714
cat >>confdefs.h <<_ACEOF
26715
#define SIZEOF_INT $ac_cv_sizeof_int
26716
_ACEOF
26717
 
216 andreas 26718
   # The cast to long int works around a bug in the HP C Compiler
88 andreas 26719
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26720
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26721
# This bug is HP SR number 8606223364.
216 andreas 26722
{ $as_echo "$as_me:$LINENO: checking size of short" >&5
26723
$as_echo_n "checking size of short... " >&6; }
88 andreas 26724
if test "${ac_cv_sizeof_short+set}" = set; then
216 andreas 26725
  $as_echo_n "(cached) " >&6
88 andreas 26726
else
26727
  if test "$cross_compiling" = yes; then
26728
  # Depending upon the size, compute the lo and hi bounds.
26729
cat >conftest.$ac_ext <<_ACEOF
26730
/* confdefs.h.  */
26731
_ACEOF
26732
cat confdefs.h >>conftest.$ac_ext
26733
cat >>conftest.$ac_ext <<_ACEOF
26734
/* end confdefs.h.  */
26735
$ac_includes_default
26736
int
26737
main ()
26738
{
216 andreas 26739
static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
88 andreas 26740
test_array [0] = 0
26741
 
26742
  ;
26743
  return 0;
26744
}
26745
_ACEOF
26746
rm -f conftest.$ac_objext
26747
if { (ac_try="$ac_compile"
26748
case "(($ac_try" in
26749
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26750
  *) ac_try_echo=$ac_try;;
26751
esac
216 andreas 26752
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26753
$as_echo "$ac_try_echo") >&5
88 andreas 26754
  (eval "$ac_compile") 2>conftest.er1
26755
  ac_status=$?
26756
  grep -v '^ *+' conftest.er1 >conftest.err
26757
  rm -f conftest.er1
26758
  cat conftest.err >&5
216 andreas 26759
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 26760
  (exit $ac_status); } && {
26761
	 test -z "$ac_c_werror_flag" ||
26762
	 test ! -s conftest.err
26763
       } && test -s conftest.$ac_objext; then
26764
  ac_lo=0 ac_mid=0
26765
  while :; do
26766
    cat >conftest.$ac_ext <<_ACEOF
26767
/* confdefs.h.  */
26768
_ACEOF
26769
cat confdefs.h >>conftest.$ac_ext
26770
cat >>conftest.$ac_ext <<_ACEOF
26771
/* end confdefs.h.  */
26772
$ac_includes_default
26773
int
26774
main ()
26775
{
216 andreas 26776
static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
88 andreas 26777
test_array [0] = 0
26778
 
26779
  ;
26780
  return 0;
26781
}
26782
_ACEOF
26783
rm -f conftest.$ac_objext
26784
if { (ac_try="$ac_compile"
26785
case "(($ac_try" in
26786
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26787
  *) ac_try_echo=$ac_try;;
26788
esac
216 andreas 26789
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26790
$as_echo "$ac_try_echo") >&5
88 andreas 26791
  (eval "$ac_compile") 2>conftest.er1
26792
  ac_status=$?
26793
  grep -v '^ *+' conftest.er1 >conftest.err
26794
  rm -f conftest.er1
26795
  cat conftest.err >&5
216 andreas 26796
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 26797
  (exit $ac_status); } && {
26798
	 test -z "$ac_c_werror_flag" ||
26799
	 test ! -s conftest.err
26800
       } && test -s conftest.$ac_objext; then
26801
  ac_hi=$ac_mid; break
26802
else
216 andreas 26803
  $as_echo "$as_me: failed program was:" >&5
88 andreas 26804
sed 's/^/| /' conftest.$ac_ext >&5
26805
 
26806
	ac_lo=`expr $ac_mid + 1`
26807
			if test $ac_lo -le $ac_mid; then
26808
			  ac_lo= ac_hi=
26809
			  break
26810
			fi
26811
			ac_mid=`expr 2 '*' $ac_mid + 1`
26812
fi
26813
 
26814
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26815
  done
26816
else
216 andreas 26817
  $as_echo "$as_me: failed program was:" >&5
88 andreas 26818
sed 's/^/| /' conftest.$ac_ext >&5
26819
 
26820
	cat >conftest.$ac_ext <<_ACEOF
26821
/* confdefs.h.  */
26822
_ACEOF
26823
cat confdefs.h >>conftest.$ac_ext
26824
cat >>conftest.$ac_ext <<_ACEOF
26825
/* end confdefs.h.  */
26826
$ac_includes_default
26827
int
26828
main ()
26829
{
216 andreas 26830
static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
88 andreas 26831
test_array [0] = 0
26832
 
26833
  ;
26834
  return 0;
26835
}
26836
_ACEOF
26837
rm -f conftest.$ac_objext
26838
if { (ac_try="$ac_compile"
26839
case "(($ac_try" in
26840
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26841
  *) ac_try_echo=$ac_try;;
26842
esac
216 andreas 26843
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26844
$as_echo "$ac_try_echo") >&5
88 andreas 26845
  (eval "$ac_compile") 2>conftest.er1
26846
  ac_status=$?
26847
  grep -v '^ *+' conftest.er1 >conftest.err
26848
  rm -f conftest.er1
26849
  cat conftest.err >&5
216 andreas 26850
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 26851
  (exit $ac_status); } && {
26852
	 test -z "$ac_c_werror_flag" ||
26853
	 test ! -s conftest.err
26854
       } && test -s conftest.$ac_objext; then
26855
  ac_hi=-1 ac_mid=-1
26856
  while :; do
26857
    cat >conftest.$ac_ext <<_ACEOF
26858
/* confdefs.h.  */
26859
_ACEOF
26860
cat confdefs.h >>conftest.$ac_ext
26861
cat >>conftest.$ac_ext <<_ACEOF
26862
/* end confdefs.h.  */
26863
$ac_includes_default
26864
int
26865
main ()
26866
{
216 andreas 26867
static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
88 andreas 26868
test_array [0] = 0
26869
 
26870
  ;
26871
  return 0;
26872
}
26873
_ACEOF
26874
rm -f conftest.$ac_objext
26875
if { (ac_try="$ac_compile"
26876
case "(($ac_try" in
26877
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26878
  *) ac_try_echo=$ac_try;;
26879
esac
216 andreas 26880
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26881
$as_echo "$ac_try_echo") >&5
88 andreas 26882
  (eval "$ac_compile") 2>conftest.er1
26883
  ac_status=$?
26884
  grep -v '^ *+' conftest.er1 >conftest.err
26885
  rm -f conftest.er1
26886
  cat conftest.err >&5
216 andreas 26887
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 26888
  (exit $ac_status); } && {
26889
	 test -z "$ac_c_werror_flag" ||
26890
	 test ! -s conftest.err
26891
       } && test -s conftest.$ac_objext; then
26892
  ac_lo=$ac_mid; break
26893
else
216 andreas 26894
  $as_echo "$as_me: failed program was:" >&5
88 andreas 26895
sed 's/^/| /' conftest.$ac_ext >&5
26896
 
26897
	ac_hi=`expr '(' $ac_mid ')' - 1`
26898
			if test $ac_mid -le $ac_hi; then
26899
			  ac_lo= ac_hi=
26900
			  break
26901
			fi
26902
			ac_mid=`expr 2 '*' $ac_mid`
26903
fi
26904
 
26905
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26906
  done
26907
else
216 andreas 26908
  $as_echo "$as_me: failed program was:" >&5
88 andreas 26909
sed 's/^/| /' conftest.$ac_ext >&5
26910
 
26911
	ac_lo= ac_hi=
26912
fi
26913
 
26914
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26915
fi
26916
 
26917
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26918
# Binary search between lo and hi bounds.
26919
while test "x$ac_lo" != "x$ac_hi"; do
26920
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26921
  cat >conftest.$ac_ext <<_ACEOF
26922
/* confdefs.h.  */
26923
_ACEOF
26924
cat confdefs.h >>conftest.$ac_ext
26925
cat >>conftest.$ac_ext <<_ACEOF
26926
/* end confdefs.h.  */
26927
$ac_includes_default
26928
int
26929
main ()
26930
{
216 andreas 26931
static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
88 andreas 26932
test_array [0] = 0
26933
 
26934
  ;
26935
  return 0;
26936
}
26937
_ACEOF
26938
rm -f conftest.$ac_objext
26939
if { (ac_try="$ac_compile"
26940
case "(($ac_try" in
26941
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26942
  *) ac_try_echo=$ac_try;;
26943
esac
216 andreas 26944
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26945
$as_echo "$ac_try_echo") >&5
88 andreas 26946
  (eval "$ac_compile") 2>conftest.er1
26947
  ac_status=$?
26948
  grep -v '^ *+' conftest.er1 >conftest.err
26949
  rm -f conftest.er1
26950
  cat conftest.err >&5
216 andreas 26951
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 26952
  (exit $ac_status); } && {
26953
	 test -z "$ac_c_werror_flag" ||
26954
	 test ! -s conftest.err
26955
       } && test -s conftest.$ac_objext; then
26956
  ac_hi=$ac_mid
26957
else
216 andreas 26958
  $as_echo "$as_me: failed program was:" >&5
88 andreas 26959
sed 's/^/| /' conftest.$ac_ext >&5
26960
 
26961
	ac_lo=`expr '(' $ac_mid ')' + 1`
26962
fi
26963
 
26964
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26965
done
26966
case $ac_lo in
26967
?*) ac_cv_sizeof_short=$ac_lo;;
26968
'') if test "$ac_cv_type_short" = yes; then
216 andreas 26969
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26970
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26971
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
88 andreas 26972
See \`config.log' for more details." >&5
216 andreas 26973
$as_echo "$as_me: error: cannot compute sizeof (short)
88 andreas 26974
See \`config.log' for more details." >&2;}
216 andreas 26975
   { (exit 77); exit 77; }; }; }
88 andreas 26976
   else
26977
     ac_cv_sizeof_short=0
26978
   fi ;;
26979
esac
26980
else
26981
  cat >conftest.$ac_ext <<_ACEOF
26982
/* confdefs.h.  */
26983
_ACEOF
26984
cat confdefs.h >>conftest.$ac_ext
26985
cat >>conftest.$ac_ext <<_ACEOF
26986
/* end confdefs.h.  */
26987
$ac_includes_default
216 andreas 26988
static long int longval () { return (long int) (sizeof (short)); }
26989
static unsigned long int ulongval () { return (long int) (sizeof (short)); }
88 andreas 26990
#include <stdio.h>
26991
#include <stdlib.h>
26992
int
26993
main ()
26994
{
26995
 
26996
  FILE *f = fopen ("conftest.val", "w");
26997
  if (! f)
26998
    return 1;
216 andreas 26999
  if (((long int) (sizeof (short))) < 0)
88 andreas 27000
    {
27001
      long int i = longval ();
216 andreas 27002
      if (i != ((long int) (sizeof (short))))
88 andreas 27003
	return 1;
216 andreas 27004
      fprintf (f, "%ld", i);
88 andreas 27005
    }
27006
  else
27007
    {
27008
      unsigned long int i = ulongval ();
216 andreas 27009
      if (i != ((long int) (sizeof (short))))
88 andreas 27010
	return 1;
216 andreas 27011
      fprintf (f, "%lu", i);
88 andreas 27012
    }
216 andreas 27013
  /* Do not output a trailing newline, as this causes \r\n confusion
27014
     on some platforms.  */
88 andreas 27015
  return ferror (f) || fclose (f) != 0;
27016
 
27017
  ;
27018
  return 0;
27019
}
27020
_ACEOF
27021
rm -f conftest$ac_exeext
27022
if { (ac_try="$ac_link"
27023
case "(($ac_try" in
27024
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27025
  *) ac_try_echo=$ac_try;;
27026
esac
216 andreas 27027
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27028
$as_echo "$ac_try_echo") >&5
88 andreas 27029
  (eval "$ac_link") 2>&5
27030
  ac_status=$?
216 andreas 27031
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 27032
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27033
  { (case "(($ac_try" in
27034
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27035
  *) ac_try_echo=$ac_try;;
27036
esac
216 andreas 27037
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27038
$as_echo "$ac_try_echo") >&5
88 andreas 27039
  (eval "$ac_try") 2>&5
27040
  ac_status=$?
216 andreas 27041
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 27042
  (exit $ac_status); }; }; then
27043
  ac_cv_sizeof_short=`cat conftest.val`
27044
else
216 andreas 27045
  $as_echo "$as_me: program exited with status $ac_status" >&5
27046
$as_echo "$as_me: failed program was:" >&5
88 andreas 27047
sed 's/^/| /' conftest.$ac_ext >&5
27048
 
27049
( exit $ac_status )
27050
if test "$ac_cv_type_short" = yes; then
216 andreas 27051
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27052
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27053
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
88 andreas 27054
See \`config.log' for more details." >&5
216 andreas 27055
$as_echo "$as_me: error: cannot compute sizeof (short)
88 andreas 27056
See \`config.log' for more details." >&2;}
216 andreas 27057
   { (exit 77); exit 77; }; }; }
88 andreas 27058
   else
27059
     ac_cv_sizeof_short=0
27060
   fi
27061
fi
216 andreas 27062
rm -rf conftest.dSYM
88 andreas 27063
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27064
fi
27065
rm -f conftest.val
27066
fi
216 andreas 27067
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
27068
$as_echo "$ac_cv_sizeof_short" >&6; }
88 andreas 27069
 
27070
 
27071
 
27072
cat >>confdefs.h <<_ACEOF
27073
#define SIZEOF_SHORT $ac_cv_sizeof_short
27074
_ACEOF
27075
 
216 andreas 27076
  # The cast to long int works around a bug in the HP C Compiler
88 andreas 27077
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27078
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27079
# This bug is HP SR number 8606223364.
216 andreas 27080
{ $as_echo "$as_me:$LINENO: checking size of long" >&5
27081
$as_echo_n "checking size of long... " >&6; }
88 andreas 27082
if test "${ac_cv_sizeof_long+set}" = set; then
216 andreas 27083
  $as_echo_n "(cached) " >&6
88 andreas 27084
else
27085
  if test "$cross_compiling" = yes; then
27086
  # Depending upon the size, compute the lo and hi bounds.
27087
cat >conftest.$ac_ext <<_ACEOF
27088
/* confdefs.h.  */
27089
_ACEOF
27090
cat confdefs.h >>conftest.$ac_ext
27091
cat >>conftest.$ac_ext <<_ACEOF
27092
/* end confdefs.h.  */
27093
$ac_includes_default
27094
int
27095
main ()
27096
{
216 andreas 27097
static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
88 andreas 27098
test_array [0] = 0
27099
 
27100
  ;
27101
  return 0;
27102
}
27103
_ACEOF
27104
rm -f conftest.$ac_objext
27105
if { (ac_try="$ac_compile"
27106
case "(($ac_try" in
27107
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27108
  *) ac_try_echo=$ac_try;;
27109
esac
216 andreas 27110
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27111
$as_echo "$ac_try_echo") >&5
88 andreas 27112
  (eval "$ac_compile") 2>conftest.er1
27113
  ac_status=$?
27114
  grep -v '^ *+' conftest.er1 >conftest.err
27115
  rm -f conftest.er1
27116
  cat conftest.err >&5
216 andreas 27117
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 27118
  (exit $ac_status); } && {
27119
	 test -z "$ac_c_werror_flag" ||
27120
	 test ! -s conftest.err
27121
       } && test -s conftest.$ac_objext; then
27122
  ac_lo=0 ac_mid=0
27123
  while :; do
27124
    cat >conftest.$ac_ext <<_ACEOF
27125
/* confdefs.h.  */
27126
_ACEOF
27127
cat confdefs.h >>conftest.$ac_ext
27128
cat >>conftest.$ac_ext <<_ACEOF
27129
/* end confdefs.h.  */
27130
$ac_includes_default
27131
int
27132
main ()
27133
{
216 andreas 27134
static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
88 andreas 27135
test_array [0] = 0
27136
 
27137
  ;
27138
  return 0;
27139
}
27140
_ACEOF
27141
rm -f conftest.$ac_objext
27142
if { (ac_try="$ac_compile"
27143
case "(($ac_try" in
27144
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27145
  *) ac_try_echo=$ac_try;;
27146
esac
216 andreas 27147
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27148
$as_echo "$ac_try_echo") >&5
88 andreas 27149
  (eval "$ac_compile") 2>conftest.er1
27150
  ac_status=$?
27151
  grep -v '^ *+' conftest.er1 >conftest.err
27152
  rm -f conftest.er1
27153
  cat conftest.err >&5
216 andreas 27154
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 27155
  (exit $ac_status); } && {
27156
	 test -z "$ac_c_werror_flag" ||
27157
	 test ! -s conftest.err
27158
       } && test -s conftest.$ac_objext; then
27159
  ac_hi=$ac_mid; break
27160
else
216 andreas 27161
  $as_echo "$as_me: failed program was:" >&5
88 andreas 27162
sed 's/^/| /' conftest.$ac_ext >&5
27163
 
27164
	ac_lo=`expr $ac_mid + 1`
27165
			if test $ac_lo -le $ac_mid; then
27166
			  ac_lo= ac_hi=
27167
			  break
27168
			fi
27169
			ac_mid=`expr 2 '*' $ac_mid + 1`
27170
fi
27171
 
27172
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27173
  done
27174
else
216 andreas 27175
  $as_echo "$as_me: failed program was:" >&5
88 andreas 27176
sed 's/^/| /' conftest.$ac_ext >&5
27177
 
27178
	cat >conftest.$ac_ext <<_ACEOF
27179
/* confdefs.h.  */
27180
_ACEOF
27181
cat confdefs.h >>conftest.$ac_ext
27182
cat >>conftest.$ac_ext <<_ACEOF
27183
/* end confdefs.h.  */
27184
$ac_includes_default
27185
int
27186
main ()
27187
{
216 andreas 27188
static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
88 andreas 27189
test_array [0] = 0
27190
 
27191
  ;
27192
  return 0;
27193
}
27194
_ACEOF
27195
rm -f conftest.$ac_objext
27196
if { (ac_try="$ac_compile"
27197
case "(($ac_try" in
27198
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27199
  *) ac_try_echo=$ac_try;;
27200
esac
216 andreas 27201
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27202
$as_echo "$ac_try_echo") >&5
88 andreas 27203
  (eval "$ac_compile") 2>conftest.er1
27204
  ac_status=$?
27205
  grep -v '^ *+' conftest.er1 >conftest.err
27206
  rm -f conftest.er1
27207
  cat conftest.err >&5
216 andreas 27208
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 27209
  (exit $ac_status); } && {
27210
	 test -z "$ac_c_werror_flag" ||
27211
	 test ! -s conftest.err
27212
       } && test -s conftest.$ac_objext; then
27213
  ac_hi=-1 ac_mid=-1
27214
  while :; do
27215
    cat >conftest.$ac_ext <<_ACEOF
27216
/* confdefs.h.  */
27217
_ACEOF
27218
cat confdefs.h >>conftest.$ac_ext
27219
cat >>conftest.$ac_ext <<_ACEOF
27220
/* end confdefs.h.  */
27221
$ac_includes_default
27222
int
27223
main ()
27224
{
216 andreas 27225
static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
88 andreas 27226
test_array [0] = 0
27227
 
27228
  ;
27229
  return 0;
27230
}
27231
_ACEOF
27232
rm -f conftest.$ac_objext
27233
if { (ac_try="$ac_compile"
27234
case "(($ac_try" in
27235
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27236
  *) ac_try_echo=$ac_try;;
27237
esac
216 andreas 27238
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27239
$as_echo "$ac_try_echo") >&5
88 andreas 27240
  (eval "$ac_compile") 2>conftest.er1
27241
  ac_status=$?
27242
  grep -v '^ *+' conftest.er1 >conftest.err
27243
  rm -f conftest.er1
27244
  cat conftest.err >&5
216 andreas 27245
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 27246
  (exit $ac_status); } && {
27247
	 test -z "$ac_c_werror_flag" ||
27248
	 test ! -s conftest.err
27249
       } && test -s conftest.$ac_objext; then
27250
  ac_lo=$ac_mid; break
27251
else
216 andreas 27252
  $as_echo "$as_me: failed program was:" >&5
88 andreas 27253
sed 's/^/| /' conftest.$ac_ext >&5
27254
 
27255
	ac_hi=`expr '(' $ac_mid ')' - 1`
27256
			if test $ac_mid -le $ac_hi; then
27257
			  ac_lo= ac_hi=
27258
			  break
27259
			fi
27260
			ac_mid=`expr 2 '*' $ac_mid`
27261
fi
27262
 
27263
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27264
  done
27265
else
216 andreas 27266
  $as_echo "$as_me: failed program was:" >&5
88 andreas 27267
sed 's/^/| /' conftest.$ac_ext >&5
27268
 
27269
	ac_lo= ac_hi=
27270
fi
27271
 
27272
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27273
fi
27274
 
27275
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27276
# Binary search between lo and hi bounds.
27277
while test "x$ac_lo" != "x$ac_hi"; do
27278
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27279
  cat >conftest.$ac_ext <<_ACEOF
27280
/* confdefs.h.  */
27281
_ACEOF
27282
cat confdefs.h >>conftest.$ac_ext
27283
cat >>conftest.$ac_ext <<_ACEOF
27284
/* end confdefs.h.  */
27285
$ac_includes_default
27286
int
27287
main ()
27288
{
216 andreas 27289
static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
88 andreas 27290
test_array [0] = 0
27291
 
27292
  ;
27293
  return 0;
27294
}
27295
_ACEOF
27296
rm -f conftest.$ac_objext
27297
if { (ac_try="$ac_compile"
27298
case "(($ac_try" in
27299
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27300
  *) ac_try_echo=$ac_try;;
27301
esac
216 andreas 27302
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27303
$as_echo "$ac_try_echo") >&5
88 andreas 27304
  (eval "$ac_compile") 2>conftest.er1
27305
  ac_status=$?
27306
  grep -v '^ *+' conftest.er1 >conftest.err
27307
  rm -f conftest.er1
27308
  cat conftest.err >&5
216 andreas 27309
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 27310
  (exit $ac_status); } && {
27311
	 test -z "$ac_c_werror_flag" ||
27312
	 test ! -s conftest.err
27313
       } && test -s conftest.$ac_objext; then
27314
  ac_hi=$ac_mid
27315
else
216 andreas 27316
  $as_echo "$as_me: failed program was:" >&5
88 andreas 27317
sed 's/^/| /' conftest.$ac_ext >&5
27318
 
27319
	ac_lo=`expr '(' $ac_mid ')' + 1`
27320
fi
27321
 
27322
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27323
done
27324
case $ac_lo in
27325
?*) ac_cv_sizeof_long=$ac_lo;;
27326
'') if test "$ac_cv_type_long" = yes; then
216 andreas 27327
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27328
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27329
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
88 andreas 27330
See \`config.log' for more details." >&5
216 andreas 27331
$as_echo "$as_me: error: cannot compute sizeof (long)
88 andreas 27332
See \`config.log' for more details." >&2;}
216 andreas 27333
   { (exit 77); exit 77; }; }; }
88 andreas 27334
   else
27335
     ac_cv_sizeof_long=0
27336
   fi ;;
27337
esac
27338
else
27339
  cat >conftest.$ac_ext <<_ACEOF
27340
/* confdefs.h.  */
27341
_ACEOF
27342
cat confdefs.h >>conftest.$ac_ext
27343
cat >>conftest.$ac_ext <<_ACEOF
27344
/* end confdefs.h.  */
27345
$ac_includes_default
216 andreas 27346
static long int longval () { return (long int) (sizeof (long)); }
27347
static unsigned long int ulongval () { return (long int) (sizeof (long)); }
88 andreas 27348
#include <stdio.h>
27349
#include <stdlib.h>
27350
int
27351
main ()
27352
{
27353
 
27354
  FILE *f = fopen ("conftest.val", "w");
27355
  if (! f)
27356
    return 1;
216 andreas 27357
  if (((long int) (sizeof (long))) < 0)
88 andreas 27358
    {
27359
      long int i = longval ();
216 andreas 27360
      if (i != ((long int) (sizeof (long))))
88 andreas 27361
	return 1;
216 andreas 27362
      fprintf (f, "%ld", i);
88 andreas 27363
    }
27364
  else
27365
    {
27366
      unsigned long int i = ulongval ();
216 andreas 27367
      if (i != ((long int) (sizeof (long))))
88 andreas 27368
	return 1;
216 andreas 27369
      fprintf (f, "%lu", i);
88 andreas 27370
    }
216 andreas 27371
  /* Do not output a trailing newline, as this causes \r\n confusion
27372
     on some platforms.  */
88 andreas 27373
  return ferror (f) || fclose (f) != 0;
27374
 
27375
  ;
27376
  return 0;
27377
}
27378
_ACEOF
27379
rm -f conftest$ac_exeext
27380
if { (ac_try="$ac_link"
27381
case "(($ac_try" in
27382
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27383
  *) ac_try_echo=$ac_try;;
27384
esac
216 andreas 27385
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27386
$as_echo "$ac_try_echo") >&5
88 andreas 27387
  (eval "$ac_link") 2>&5
27388
  ac_status=$?
216 andreas 27389
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 27390
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27391
  { (case "(($ac_try" in
27392
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27393
  *) ac_try_echo=$ac_try;;
27394
esac
216 andreas 27395
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27396
$as_echo "$ac_try_echo") >&5
88 andreas 27397
  (eval "$ac_try") 2>&5
27398
  ac_status=$?
216 andreas 27399
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 27400
  (exit $ac_status); }; }; then
27401
  ac_cv_sizeof_long=`cat conftest.val`
27402
else
216 andreas 27403
  $as_echo "$as_me: program exited with status $ac_status" >&5
27404
$as_echo "$as_me: failed program was:" >&5
88 andreas 27405
sed 's/^/| /' conftest.$ac_ext >&5
27406
 
27407
( exit $ac_status )
27408
if test "$ac_cv_type_long" = yes; then
216 andreas 27409
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27410
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27411
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
88 andreas 27412
See \`config.log' for more details." >&5
216 andreas 27413
$as_echo "$as_me: error: cannot compute sizeof (long)
88 andreas 27414
See \`config.log' for more details." >&2;}
216 andreas 27415
   { (exit 77); exit 77; }; }; }
88 andreas 27416
   else
27417
     ac_cv_sizeof_long=0
27418
   fi
27419
fi
216 andreas 27420
rm -rf conftest.dSYM
88 andreas 27421
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27422
fi
27423
rm -f conftest.val
27424
fi
216 andreas 27425
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
27426
$as_echo "$ac_cv_sizeof_long" >&6; }
88 andreas 27427
 
27428
 
27429
 
27430
cat >>confdefs.h <<_ACEOF
27431
#define SIZEOF_LONG $ac_cv_sizeof_long
27432
_ACEOF
27433
 
216 andreas 27434
  # The cast to long int works around a bug in the HP C Compiler
88 andreas 27435
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27436
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27437
# This bug is HP SR number 8606223364.
216 andreas 27438
{ $as_echo "$as_me:$LINENO: checking size of char *" >&5
27439
$as_echo_n "checking size of char *... " >&6; }
88 andreas 27440
if test "${ac_cv_sizeof_char_p+set}" = set; then
216 andreas 27441
  $as_echo_n "(cached) " >&6
88 andreas 27442
else
27443
  if test "$cross_compiling" = yes; then
27444
  # Depending upon the size, compute the lo and hi bounds.
27445
cat >conftest.$ac_ext <<_ACEOF
27446
/* confdefs.h.  */
27447
_ACEOF
27448
cat confdefs.h >>conftest.$ac_ext
27449
cat >>conftest.$ac_ext <<_ACEOF
27450
/* end confdefs.h.  */
27451
$ac_includes_default
27452
int
27453
main ()
27454
{
216 andreas 27455
static int test_array [1 - 2 * !(((long int) (sizeof (char *))) >= 0)];
88 andreas 27456
test_array [0] = 0
27457
 
27458
  ;
27459
  return 0;
27460
}
27461
_ACEOF
27462
rm -f conftest.$ac_objext
27463
if { (ac_try="$ac_compile"
27464
case "(($ac_try" in
27465
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27466
  *) ac_try_echo=$ac_try;;
27467
esac
216 andreas 27468
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27469
$as_echo "$ac_try_echo") >&5
88 andreas 27470
  (eval "$ac_compile") 2>conftest.er1
27471
  ac_status=$?
27472
  grep -v '^ *+' conftest.er1 >conftest.err
27473
  rm -f conftest.er1
27474
  cat conftest.err >&5
216 andreas 27475
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 27476
  (exit $ac_status); } && {
27477
	 test -z "$ac_c_werror_flag" ||
27478
	 test ! -s conftest.err
27479
       } && test -s conftest.$ac_objext; then
27480
  ac_lo=0 ac_mid=0
27481
  while :; do
27482
    cat >conftest.$ac_ext <<_ACEOF
27483
/* confdefs.h.  */
27484
_ACEOF
27485
cat confdefs.h >>conftest.$ac_ext
27486
cat >>conftest.$ac_ext <<_ACEOF
27487
/* end confdefs.h.  */
27488
$ac_includes_default
27489
int
27490
main ()
27491
{
216 andreas 27492
static int test_array [1 - 2 * !(((long int) (sizeof (char *))) <= $ac_mid)];
88 andreas 27493
test_array [0] = 0
27494
 
27495
  ;
27496
  return 0;
27497
}
27498
_ACEOF
27499
rm -f conftest.$ac_objext
27500
if { (ac_try="$ac_compile"
27501
case "(($ac_try" in
27502
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27503
  *) ac_try_echo=$ac_try;;
27504
esac
216 andreas 27505
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27506
$as_echo "$ac_try_echo") >&5
88 andreas 27507
  (eval "$ac_compile") 2>conftest.er1
27508
  ac_status=$?
27509
  grep -v '^ *+' conftest.er1 >conftest.err
27510
  rm -f conftest.er1
27511
  cat conftest.err >&5
216 andreas 27512
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 27513
  (exit $ac_status); } && {
27514
	 test -z "$ac_c_werror_flag" ||
27515
	 test ! -s conftest.err
27516
       } && test -s conftest.$ac_objext; then
27517
  ac_hi=$ac_mid; break
27518
else
216 andreas 27519
  $as_echo "$as_me: failed program was:" >&5
88 andreas 27520
sed 's/^/| /' conftest.$ac_ext >&5
27521
 
27522
	ac_lo=`expr $ac_mid + 1`
27523
			if test $ac_lo -le $ac_mid; then
27524
			  ac_lo= ac_hi=
27525
			  break
27526
			fi
27527
			ac_mid=`expr 2 '*' $ac_mid + 1`
27528
fi
27529
 
27530
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27531
  done
27532
else
216 andreas 27533
  $as_echo "$as_me: failed program was:" >&5
88 andreas 27534
sed 's/^/| /' conftest.$ac_ext >&5
27535
 
27536
	cat >conftest.$ac_ext <<_ACEOF
27537
/* confdefs.h.  */
27538
_ACEOF
27539
cat confdefs.h >>conftest.$ac_ext
27540
cat >>conftest.$ac_ext <<_ACEOF
27541
/* end confdefs.h.  */
27542
$ac_includes_default
27543
int
27544
main ()
27545
{
216 andreas 27546
static int test_array [1 - 2 * !(((long int) (sizeof (char *))) < 0)];
88 andreas 27547
test_array [0] = 0
27548
 
27549
  ;
27550
  return 0;
27551
}
27552
_ACEOF
27553
rm -f conftest.$ac_objext
27554
if { (ac_try="$ac_compile"
27555
case "(($ac_try" in
27556
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27557
  *) ac_try_echo=$ac_try;;
27558
esac
216 andreas 27559
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27560
$as_echo "$ac_try_echo") >&5
88 andreas 27561
  (eval "$ac_compile") 2>conftest.er1
27562
  ac_status=$?
27563
  grep -v '^ *+' conftest.er1 >conftest.err
27564
  rm -f conftest.er1
27565
  cat conftest.err >&5
216 andreas 27566
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 27567
  (exit $ac_status); } && {
27568
	 test -z "$ac_c_werror_flag" ||
27569
	 test ! -s conftest.err
27570
       } && test -s conftest.$ac_objext; then
27571
  ac_hi=-1 ac_mid=-1
27572
  while :; do
27573
    cat >conftest.$ac_ext <<_ACEOF
27574
/* confdefs.h.  */
27575
_ACEOF
27576
cat confdefs.h >>conftest.$ac_ext
27577
cat >>conftest.$ac_ext <<_ACEOF
27578
/* end confdefs.h.  */
27579
$ac_includes_default
27580
int
27581
main ()
27582
{
216 andreas 27583
static int test_array [1 - 2 * !(((long int) (sizeof (char *))) >= $ac_mid)];
88 andreas 27584
test_array [0] = 0
27585
 
27586
  ;
27587
  return 0;
27588
}
27589
_ACEOF
27590
rm -f conftest.$ac_objext
27591
if { (ac_try="$ac_compile"
27592
case "(($ac_try" in
27593
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27594
  *) ac_try_echo=$ac_try;;
27595
esac
216 andreas 27596
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27597
$as_echo "$ac_try_echo") >&5
88 andreas 27598
  (eval "$ac_compile") 2>conftest.er1
27599
  ac_status=$?
27600
  grep -v '^ *+' conftest.er1 >conftest.err
27601
  rm -f conftest.er1
27602
  cat conftest.err >&5
216 andreas 27603
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 27604
  (exit $ac_status); } && {
27605
	 test -z "$ac_c_werror_flag" ||
27606
	 test ! -s conftest.err
27607
       } && test -s conftest.$ac_objext; then
27608
  ac_lo=$ac_mid; break
27609
else
216 andreas 27610
  $as_echo "$as_me: failed program was:" >&5
88 andreas 27611
sed 's/^/| /' conftest.$ac_ext >&5
27612
 
27613
	ac_hi=`expr '(' $ac_mid ')' - 1`
27614
			if test $ac_mid -le $ac_hi; then
27615
			  ac_lo= ac_hi=
27616
			  break
27617
			fi
27618
			ac_mid=`expr 2 '*' $ac_mid`
27619
fi
27620
 
27621
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27622
  done
27623
else
216 andreas 27624
  $as_echo "$as_me: failed program was:" >&5
88 andreas 27625
sed 's/^/| /' conftest.$ac_ext >&5
27626
 
27627
	ac_lo= ac_hi=
27628
fi
27629
 
27630
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27631
fi
27632
 
27633
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27634
# Binary search between lo and hi bounds.
27635
while test "x$ac_lo" != "x$ac_hi"; do
27636
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27637
  cat >conftest.$ac_ext <<_ACEOF
27638
/* confdefs.h.  */
27639
_ACEOF
27640
cat confdefs.h >>conftest.$ac_ext
27641
cat >>conftest.$ac_ext <<_ACEOF
27642
/* end confdefs.h.  */
27643
$ac_includes_default
27644
int
27645
main ()
27646
{
216 andreas 27647
static int test_array [1 - 2 * !(((long int) (sizeof (char *))) <= $ac_mid)];
88 andreas 27648
test_array [0] = 0
27649
 
27650
  ;
27651
  return 0;
27652
}
27653
_ACEOF
27654
rm -f conftest.$ac_objext
27655
if { (ac_try="$ac_compile"
27656
case "(($ac_try" in
27657
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27658
  *) ac_try_echo=$ac_try;;
27659
esac
216 andreas 27660
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27661
$as_echo "$ac_try_echo") >&5
88 andreas 27662
  (eval "$ac_compile") 2>conftest.er1
27663
  ac_status=$?
27664
  grep -v '^ *+' conftest.er1 >conftest.err
27665
  rm -f conftest.er1
27666
  cat conftest.err >&5
216 andreas 27667
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 27668
  (exit $ac_status); } && {
27669
	 test -z "$ac_c_werror_flag" ||
27670
	 test ! -s conftest.err
27671
       } && test -s conftest.$ac_objext; then
27672
  ac_hi=$ac_mid
27673
else
216 andreas 27674
  $as_echo "$as_me: failed program was:" >&5
88 andreas 27675
sed 's/^/| /' conftest.$ac_ext >&5
27676
 
27677
	ac_lo=`expr '(' $ac_mid ')' + 1`
27678
fi
27679
 
27680
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27681
done
27682
case $ac_lo in
27683
?*) ac_cv_sizeof_char_p=$ac_lo;;
27684
'') if test "$ac_cv_type_char_p" = yes; then
216 andreas 27685
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27686
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27687
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char *)
88 andreas 27688
See \`config.log' for more details." >&5
216 andreas 27689
$as_echo "$as_me: error: cannot compute sizeof (char *)
88 andreas 27690
See \`config.log' for more details." >&2;}
216 andreas 27691
   { (exit 77); exit 77; }; }; }
88 andreas 27692
   else
27693
     ac_cv_sizeof_char_p=0
27694
   fi ;;
27695
esac
27696
else
27697
  cat >conftest.$ac_ext <<_ACEOF
27698
/* confdefs.h.  */
27699
_ACEOF
27700
cat confdefs.h >>conftest.$ac_ext
27701
cat >>conftest.$ac_ext <<_ACEOF
27702
/* end confdefs.h.  */
27703
$ac_includes_default
216 andreas 27704
static long int longval () { return (long int) (sizeof (char *)); }
27705
static unsigned long int ulongval () { return (long int) (sizeof (char *)); }
88 andreas 27706
#include <stdio.h>
27707
#include <stdlib.h>
27708
int
27709
main ()
27710
{
27711
 
27712
  FILE *f = fopen ("conftest.val", "w");
27713
  if (! f)
27714
    return 1;
216 andreas 27715
  if (((long int) (sizeof (char *))) < 0)
88 andreas 27716
    {
27717
      long int i = longval ();
216 andreas 27718
      if (i != ((long int) (sizeof (char *))))
88 andreas 27719
	return 1;
216 andreas 27720
      fprintf (f, "%ld", i);
88 andreas 27721
    }
27722
  else
27723
    {
27724
      unsigned long int i = ulongval ();
216 andreas 27725
      if (i != ((long int) (sizeof (char *))))
88 andreas 27726
	return 1;
216 andreas 27727
      fprintf (f, "%lu", i);
88 andreas 27728
    }
216 andreas 27729
  /* Do not output a trailing newline, as this causes \r\n confusion
27730
     on some platforms.  */
88 andreas 27731
  return ferror (f) || fclose (f) != 0;
27732
 
27733
  ;
27734
  return 0;
27735
}
27736
_ACEOF
27737
rm -f conftest$ac_exeext
27738
if { (ac_try="$ac_link"
27739
case "(($ac_try" in
27740
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27741
  *) ac_try_echo=$ac_try;;
27742
esac
216 andreas 27743
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27744
$as_echo "$ac_try_echo") >&5
88 andreas 27745
  (eval "$ac_link") 2>&5
27746
  ac_status=$?
216 andreas 27747
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 27748
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27749
  { (case "(($ac_try" in
27750
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27751
  *) ac_try_echo=$ac_try;;
27752
esac
216 andreas 27753
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27754
$as_echo "$ac_try_echo") >&5
88 andreas 27755
  (eval "$ac_try") 2>&5
27756
  ac_status=$?
216 andreas 27757
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 27758
  (exit $ac_status); }; }; then
27759
  ac_cv_sizeof_char_p=`cat conftest.val`
27760
else
216 andreas 27761
  $as_echo "$as_me: program exited with status $ac_status" >&5
27762
$as_echo "$as_me: failed program was:" >&5
88 andreas 27763
sed 's/^/| /' conftest.$ac_ext >&5
27764
 
27765
( exit $ac_status )
27766
if test "$ac_cv_type_char_p" = yes; then
216 andreas 27767
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27768
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27769
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char *)
88 andreas 27770
See \`config.log' for more details." >&5
216 andreas 27771
$as_echo "$as_me: error: cannot compute sizeof (char *)
88 andreas 27772
See \`config.log' for more details." >&2;}
216 andreas 27773
   { (exit 77); exit 77; }; }; }
88 andreas 27774
   else
27775
     ac_cv_sizeof_char_p=0
27776
   fi
27777
fi
216 andreas 27778
rm -rf conftest.dSYM
88 andreas 27779
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27780
fi
27781
rm -f conftest.val
27782
fi
216 andreas 27783
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char_p" >&5
27784
$as_echo "$ac_cv_sizeof_char_p" >&6; }
88 andreas 27785
 
27786
 
27787
 
27788
cat >>confdefs.h <<_ACEOF
27789
#define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
27790
_ACEOF
27791
 
27792
 
27793
 
216 andreas 27794
{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
27795
$as_echo_n "checking for dlopen in -ldl... " >&6; }
88 andreas 27796
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
216 andreas 27797
  $as_echo_n "(cached) " >&6
88 andreas 27798
else
27799
  ac_check_lib_save_LIBS=$LIBS
27800
LIBS="-ldl  $LIBS"
27801
cat >conftest.$ac_ext <<_ACEOF
27802
/* confdefs.h.  */
27803
_ACEOF
27804
cat confdefs.h >>conftest.$ac_ext
27805
cat >>conftest.$ac_ext <<_ACEOF
27806
/* end confdefs.h.  */
27807
 
27808
/* Override any GCC internal prototype to avoid an error.
27809
   Use char because int might match the return type of a GCC
27810
   builtin and then its argument prototype would still apply.  */
27811
#ifdef __cplusplus
27812
extern "C"
27813
#endif
27814
char dlopen ();
27815
int
27816
main ()
27817
{
27818
return dlopen ();
27819
  ;
27820
  return 0;
27821
}
27822
_ACEOF
27823
rm -f conftest.$ac_objext conftest$ac_exeext
27824
if { (ac_try="$ac_link"
27825
case "(($ac_try" in
27826
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27827
  *) ac_try_echo=$ac_try;;
27828
esac
216 andreas 27829
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27830
$as_echo "$ac_try_echo") >&5
88 andreas 27831
  (eval "$ac_link") 2>conftest.er1
27832
  ac_status=$?
27833
  grep -v '^ *+' conftest.er1 >conftest.err
27834
  rm -f conftest.er1
27835
  cat conftest.err >&5
216 andreas 27836
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 27837
  (exit $ac_status); } && {
27838
	 test -z "$ac_c_werror_flag" ||
27839
	 test ! -s conftest.err
216 andreas 27840
       } && test -s conftest$ac_exeext && {
27841
	 test "$cross_compiling" = yes ||
27842
	 $as_test_x conftest$ac_exeext
27843
       }; then
88 andreas 27844
  ac_cv_lib_dl_dlopen=yes
27845
else
216 andreas 27846
  $as_echo "$as_me: failed program was:" >&5
88 andreas 27847
sed 's/^/| /' conftest.$ac_ext >&5
27848
 
27849
	ac_cv_lib_dl_dlopen=no
27850
fi
27851
 
216 andreas 27852
rm -rf conftest.dSYM
88 andreas 27853
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27854
      conftest$ac_exeext conftest.$ac_ext
27855
LIBS=$ac_check_lib_save_LIBS
27856
fi
216 andreas 27857
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
27858
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
27859
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
88 andreas 27860
 
27861
LIBDL="-ldl"
27862
ac_cv_have_dlfcn=yes
27863
 
27864
fi
27865
 
27866
 
216 andreas 27867
{ $as_echo "$as_me:$LINENO: checking for shl_unload in -ldld" >&5
27868
$as_echo_n "checking for shl_unload in -ldld... " >&6; }
88 andreas 27869
if test "${ac_cv_lib_dld_shl_unload+set}" = set; then
216 andreas 27870
  $as_echo_n "(cached) " >&6
88 andreas 27871
else
27872
  ac_check_lib_save_LIBS=$LIBS
27873
LIBS="-ldld  $LIBS"
27874
cat >conftest.$ac_ext <<_ACEOF
27875
/* confdefs.h.  */
27876
_ACEOF
27877
cat confdefs.h >>conftest.$ac_ext
27878
cat >>conftest.$ac_ext <<_ACEOF
27879
/* end confdefs.h.  */
27880
 
27881
/* Override any GCC internal prototype to avoid an error.
27882
   Use char because int might match the return type of a GCC
27883
   builtin and then its argument prototype would still apply.  */
27884
#ifdef __cplusplus
27885
extern "C"
27886
#endif
27887
char shl_unload ();
27888
int
27889
main ()
27890
{
27891
return shl_unload ();
27892
  ;
27893
  return 0;
27894
}
27895
_ACEOF
27896
rm -f conftest.$ac_objext conftest$ac_exeext
27897
if { (ac_try="$ac_link"
27898
case "(($ac_try" in
27899
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27900
  *) ac_try_echo=$ac_try;;
27901
esac
216 andreas 27902
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27903
$as_echo "$ac_try_echo") >&5
88 andreas 27904
  (eval "$ac_link") 2>conftest.er1
27905
  ac_status=$?
27906
  grep -v '^ *+' conftest.er1 >conftest.err
27907
  rm -f conftest.er1
27908
  cat conftest.err >&5
216 andreas 27909
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 27910
  (exit $ac_status); } && {
27911
	 test -z "$ac_c_werror_flag" ||
27912
	 test ! -s conftest.err
216 andreas 27913
       } && test -s conftest$ac_exeext && {
27914
	 test "$cross_compiling" = yes ||
27915
	 $as_test_x conftest$ac_exeext
27916
       }; then
88 andreas 27917
  ac_cv_lib_dld_shl_unload=yes
27918
else
216 andreas 27919
  $as_echo "$as_me: failed program was:" >&5
88 andreas 27920
sed 's/^/| /' conftest.$ac_ext >&5
27921
 
27922
	ac_cv_lib_dld_shl_unload=no
27923
fi
27924
 
216 andreas 27925
rm -rf conftest.dSYM
88 andreas 27926
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27927
      conftest$ac_exeext conftest.$ac_ext
27928
LIBS=$ac_check_lib_save_LIBS
27929
fi
216 andreas 27930
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_unload" >&5
27931
$as_echo "$ac_cv_lib_dld_shl_unload" >&6; }
27932
if test "x$ac_cv_lib_dld_shl_unload" = x""yes; then
88 andreas 27933
 
27934
LIBDL="-ldld"
27935
ac_cv_have_shload=yes
27936
 
27937
fi
27938
 
27939
 
27940
 
27941
 
27942
 
27943
 
27944
 
216 andreas 27945
  # The cast to long int works around a bug in the HP C Compiler
88 andreas 27946
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27947
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27948
# This bug is HP SR number 8606223364.
216 andreas 27949
{ $as_echo "$as_me:$LINENO: checking size of size_t" >&5
27950
$as_echo_n "checking size of size_t... " >&6; }
88 andreas 27951
if test "${ac_cv_sizeof_size_t+set}" = set; then
216 andreas 27952
  $as_echo_n "(cached) " >&6
88 andreas 27953
else
27954
  if test "$cross_compiling" = yes; then
27955
  # Depending upon the size, compute the lo and hi bounds.
27956
cat >conftest.$ac_ext <<_ACEOF
27957
/* confdefs.h.  */
27958
_ACEOF
27959
cat confdefs.h >>conftest.$ac_ext
27960
cat >>conftest.$ac_ext <<_ACEOF
27961
/* end confdefs.h.  */
27962
$ac_includes_default
27963
int
27964
main ()
27965
{
216 andreas 27966
static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
88 andreas 27967
test_array [0] = 0
27968
 
27969
  ;
27970
  return 0;
27971
}
27972
_ACEOF
27973
rm -f conftest.$ac_objext
27974
if { (ac_try="$ac_compile"
27975
case "(($ac_try" in
27976
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27977
  *) ac_try_echo=$ac_try;;
27978
esac
216 andreas 27979
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27980
$as_echo "$ac_try_echo") >&5
88 andreas 27981
  (eval "$ac_compile") 2>conftest.er1
27982
  ac_status=$?
27983
  grep -v '^ *+' conftest.er1 >conftest.err
27984
  rm -f conftest.er1
27985
  cat conftest.err >&5
216 andreas 27986
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 27987
  (exit $ac_status); } && {
27988
	 test -z "$ac_c_werror_flag" ||
27989
	 test ! -s conftest.err
27990
       } && test -s conftest.$ac_objext; then
27991
  ac_lo=0 ac_mid=0
27992
  while :; do
27993
    cat >conftest.$ac_ext <<_ACEOF
27994
/* confdefs.h.  */
27995
_ACEOF
27996
cat confdefs.h >>conftest.$ac_ext
27997
cat >>conftest.$ac_ext <<_ACEOF
27998
/* end confdefs.h.  */
27999
$ac_includes_default
28000
int
28001
main ()
28002
{
216 andreas 28003
static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
88 andreas 28004
test_array [0] = 0
28005
 
28006
  ;
28007
  return 0;
28008
}
28009
_ACEOF
28010
rm -f conftest.$ac_objext
28011
if { (ac_try="$ac_compile"
28012
case "(($ac_try" in
28013
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28014
  *) ac_try_echo=$ac_try;;
28015
esac
216 andreas 28016
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28017
$as_echo "$ac_try_echo") >&5
88 andreas 28018
  (eval "$ac_compile") 2>conftest.er1
28019
  ac_status=$?
28020
  grep -v '^ *+' conftest.er1 >conftest.err
28021
  rm -f conftest.er1
28022
  cat conftest.err >&5
216 andreas 28023
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 28024
  (exit $ac_status); } && {
28025
	 test -z "$ac_c_werror_flag" ||
28026
	 test ! -s conftest.err
28027
       } && test -s conftest.$ac_objext; then
28028
  ac_hi=$ac_mid; break
28029
else
216 andreas 28030
  $as_echo "$as_me: failed program was:" >&5
88 andreas 28031
sed 's/^/| /' conftest.$ac_ext >&5
28032
 
28033
	ac_lo=`expr $ac_mid + 1`
28034
			if test $ac_lo -le $ac_mid; then
28035
			  ac_lo= ac_hi=
28036
			  break
28037
			fi
28038
			ac_mid=`expr 2 '*' $ac_mid + 1`
28039
fi
28040
 
28041
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28042
  done
28043
else
216 andreas 28044
  $as_echo "$as_me: failed program was:" >&5
88 andreas 28045
sed 's/^/| /' conftest.$ac_ext >&5
28046
 
28047
	cat >conftest.$ac_ext <<_ACEOF
28048
/* confdefs.h.  */
28049
_ACEOF
28050
cat confdefs.h >>conftest.$ac_ext
28051
cat >>conftest.$ac_ext <<_ACEOF
28052
/* end confdefs.h.  */
28053
$ac_includes_default
28054
int
28055
main ()
28056
{
216 andreas 28057
static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
88 andreas 28058
test_array [0] = 0
28059
 
28060
  ;
28061
  return 0;
28062
}
28063
_ACEOF
28064
rm -f conftest.$ac_objext
28065
if { (ac_try="$ac_compile"
28066
case "(($ac_try" in
28067
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28068
  *) ac_try_echo=$ac_try;;
28069
esac
216 andreas 28070
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28071
$as_echo "$ac_try_echo") >&5
88 andreas 28072
  (eval "$ac_compile") 2>conftest.er1
28073
  ac_status=$?
28074
  grep -v '^ *+' conftest.er1 >conftest.err
28075
  rm -f conftest.er1
28076
  cat conftest.err >&5
216 andreas 28077
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 28078
  (exit $ac_status); } && {
28079
	 test -z "$ac_c_werror_flag" ||
28080
	 test ! -s conftest.err
28081
       } && test -s conftest.$ac_objext; then
28082
  ac_hi=-1 ac_mid=-1
28083
  while :; do
28084
    cat >conftest.$ac_ext <<_ACEOF
28085
/* confdefs.h.  */
28086
_ACEOF
28087
cat confdefs.h >>conftest.$ac_ext
28088
cat >>conftest.$ac_ext <<_ACEOF
28089
/* end confdefs.h.  */
28090
$ac_includes_default
28091
int
28092
main ()
28093
{
216 andreas 28094
static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
88 andreas 28095
test_array [0] = 0
28096
 
28097
  ;
28098
  return 0;
28099
}
28100
_ACEOF
28101
rm -f conftest.$ac_objext
28102
if { (ac_try="$ac_compile"
28103
case "(($ac_try" in
28104
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28105
  *) ac_try_echo=$ac_try;;
28106
esac
216 andreas 28107
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28108
$as_echo "$ac_try_echo") >&5
88 andreas 28109
  (eval "$ac_compile") 2>conftest.er1
28110
  ac_status=$?
28111
  grep -v '^ *+' conftest.er1 >conftest.err
28112
  rm -f conftest.er1
28113
  cat conftest.err >&5
216 andreas 28114
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 28115
  (exit $ac_status); } && {
28116
	 test -z "$ac_c_werror_flag" ||
28117
	 test ! -s conftest.err
28118
       } && test -s conftest.$ac_objext; then
28119
  ac_lo=$ac_mid; break
28120
else
216 andreas 28121
  $as_echo "$as_me: failed program was:" >&5
88 andreas 28122
sed 's/^/| /' conftest.$ac_ext >&5
28123
 
28124
	ac_hi=`expr '(' $ac_mid ')' - 1`
28125
			if test $ac_mid -le $ac_hi; then
28126
			  ac_lo= ac_hi=
28127
			  break
28128
			fi
28129
			ac_mid=`expr 2 '*' $ac_mid`
28130
fi
28131
 
28132
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28133
  done
28134
else
216 andreas 28135
  $as_echo "$as_me: failed program was:" >&5
88 andreas 28136
sed 's/^/| /' conftest.$ac_ext >&5
28137
 
28138
	ac_lo= ac_hi=
28139
fi
28140
 
28141
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28142
fi
28143
 
28144
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28145
# Binary search between lo and hi bounds.
28146
while test "x$ac_lo" != "x$ac_hi"; do
28147
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28148
  cat >conftest.$ac_ext <<_ACEOF
28149
/* confdefs.h.  */
28150
_ACEOF
28151
cat confdefs.h >>conftest.$ac_ext
28152
cat >>conftest.$ac_ext <<_ACEOF
28153
/* end confdefs.h.  */
28154
$ac_includes_default
28155
int
28156
main ()
28157
{
216 andreas 28158
static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
88 andreas 28159
test_array [0] = 0
28160
 
28161
  ;
28162
  return 0;
28163
}
28164
_ACEOF
28165
rm -f conftest.$ac_objext
28166
if { (ac_try="$ac_compile"
28167
case "(($ac_try" in
28168
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28169
  *) ac_try_echo=$ac_try;;
28170
esac
216 andreas 28171
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28172
$as_echo "$ac_try_echo") >&5
88 andreas 28173
  (eval "$ac_compile") 2>conftest.er1
28174
  ac_status=$?
28175
  grep -v '^ *+' conftest.er1 >conftest.err
28176
  rm -f conftest.er1
28177
  cat conftest.err >&5
216 andreas 28178
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 28179
  (exit $ac_status); } && {
28180
	 test -z "$ac_c_werror_flag" ||
28181
	 test ! -s conftest.err
28182
       } && test -s conftest.$ac_objext; then
28183
  ac_hi=$ac_mid
28184
else
216 andreas 28185
  $as_echo "$as_me: failed program was:" >&5
88 andreas 28186
sed 's/^/| /' conftest.$ac_ext >&5
28187
 
28188
	ac_lo=`expr '(' $ac_mid ')' + 1`
28189
fi
28190
 
28191
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28192
done
28193
case $ac_lo in
28194
?*) ac_cv_sizeof_size_t=$ac_lo;;
28195
'') if test "$ac_cv_type_size_t" = yes; then
216 andreas 28196
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28197
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28198
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
88 andreas 28199
See \`config.log' for more details." >&5
216 andreas 28200
$as_echo "$as_me: error: cannot compute sizeof (size_t)
88 andreas 28201
See \`config.log' for more details." >&2;}
216 andreas 28202
   { (exit 77); exit 77; }; }; }
88 andreas 28203
   else
28204
     ac_cv_sizeof_size_t=0
28205
   fi ;;
28206
esac
28207
else
28208
  cat >conftest.$ac_ext <<_ACEOF
28209
/* confdefs.h.  */
28210
_ACEOF
28211
cat confdefs.h >>conftest.$ac_ext
28212
cat >>conftest.$ac_ext <<_ACEOF
28213
/* end confdefs.h.  */
28214
$ac_includes_default
216 andreas 28215
static long int longval () { return (long int) (sizeof (size_t)); }
28216
static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
88 andreas 28217
#include <stdio.h>
28218
#include <stdlib.h>
28219
int
28220
main ()
28221
{
28222
 
28223
  FILE *f = fopen ("conftest.val", "w");
28224
  if (! f)
28225
    return 1;
216 andreas 28226
  if (((long int) (sizeof (size_t))) < 0)
88 andreas 28227
    {
28228
      long int i = longval ();
216 andreas 28229
      if (i != ((long int) (sizeof (size_t))))
88 andreas 28230
	return 1;
216 andreas 28231
      fprintf (f, "%ld", i);
88 andreas 28232
    }
28233
  else
28234
    {
28235
      unsigned long int i = ulongval ();
216 andreas 28236
      if (i != ((long int) (sizeof (size_t))))
88 andreas 28237
	return 1;
216 andreas 28238
      fprintf (f, "%lu", i);
88 andreas 28239
    }
216 andreas 28240
  /* Do not output a trailing newline, as this causes \r\n confusion
28241
     on some platforms.  */
88 andreas 28242
  return ferror (f) || fclose (f) != 0;
28243
 
28244
  ;
28245
  return 0;
28246
}
28247
_ACEOF
28248
rm -f conftest$ac_exeext
28249
if { (ac_try="$ac_link"
28250
case "(($ac_try" in
28251
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28252
  *) ac_try_echo=$ac_try;;
28253
esac
216 andreas 28254
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28255
$as_echo "$ac_try_echo") >&5
88 andreas 28256
  (eval "$ac_link") 2>&5
28257
  ac_status=$?
216 andreas 28258
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 28259
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28260
  { (case "(($ac_try" in
28261
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28262
  *) ac_try_echo=$ac_try;;
28263
esac
216 andreas 28264
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28265
$as_echo "$ac_try_echo") >&5
88 andreas 28266
  (eval "$ac_try") 2>&5
28267
  ac_status=$?
216 andreas 28268
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 28269
  (exit $ac_status); }; }; then
28270
  ac_cv_sizeof_size_t=`cat conftest.val`
28271
else
216 andreas 28272
  $as_echo "$as_me: program exited with status $ac_status" >&5
28273
$as_echo "$as_me: failed program was:" >&5
88 andreas 28274
sed 's/^/| /' conftest.$ac_ext >&5
28275
 
28276
( exit $ac_status )
28277
if test "$ac_cv_type_size_t" = yes; then
216 andreas 28278
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28279
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28280
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
88 andreas 28281
See \`config.log' for more details." >&5
216 andreas 28282
$as_echo "$as_me: error: cannot compute sizeof (size_t)
88 andreas 28283
See \`config.log' for more details." >&2;}
216 andreas 28284
   { (exit 77); exit 77; }; }; }
88 andreas 28285
   else
28286
     ac_cv_sizeof_size_t=0
28287
   fi
28288
fi
216 andreas 28289
rm -rf conftest.dSYM
88 andreas 28290
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28291
fi
28292
rm -f conftest.val
28293
fi
216 andreas 28294
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
28295
$as_echo "$ac_cv_sizeof_size_t" >&6; }
88 andreas 28296
 
28297
 
28298
 
28299
cat >>confdefs.h <<_ACEOF
28300
#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
28301
_ACEOF
28302
 
28303
 
216 andreas 28304
  # The cast to long int works around a bug in the HP C Compiler
88 andreas 28305
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28306
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28307
# This bug is HP SR number 8606223364.
216 andreas 28308
{ $as_echo "$as_me:$LINENO: checking size of unsigned long" >&5
28309
$as_echo_n "checking size of unsigned long... " >&6; }
88 andreas 28310
if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
216 andreas 28311
  $as_echo_n "(cached) " >&6
88 andreas 28312
else
28313
  if test "$cross_compiling" = yes; then
28314
  # Depending upon the size, compute the lo and hi bounds.
28315
cat >conftest.$ac_ext <<_ACEOF
28316
/* confdefs.h.  */
28317
_ACEOF
28318
cat confdefs.h >>conftest.$ac_ext
28319
cat >>conftest.$ac_ext <<_ACEOF
28320
/* end confdefs.h.  */
28321
$ac_includes_default
28322
int
28323
main ()
28324
{
216 andreas 28325
static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) >= 0)];
88 andreas 28326
test_array [0] = 0
28327
 
28328
  ;
28329
  return 0;
28330
}
28331
_ACEOF
28332
rm -f conftest.$ac_objext
28333
if { (ac_try="$ac_compile"
28334
case "(($ac_try" in
28335
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28336
  *) ac_try_echo=$ac_try;;
28337
esac
216 andreas 28338
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28339
$as_echo "$ac_try_echo") >&5
88 andreas 28340
  (eval "$ac_compile") 2>conftest.er1
28341
  ac_status=$?
28342
  grep -v '^ *+' conftest.er1 >conftest.err
28343
  rm -f conftest.er1
28344
  cat conftest.err >&5
216 andreas 28345
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 28346
  (exit $ac_status); } && {
28347
	 test -z "$ac_c_werror_flag" ||
28348
	 test ! -s conftest.err
28349
       } && test -s conftest.$ac_objext; then
28350
  ac_lo=0 ac_mid=0
28351
  while :; do
28352
    cat >conftest.$ac_ext <<_ACEOF
28353
/* confdefs.h.  */
28354
_ACEOF
28355
cat confdefs.h >>conftest.$ac_ext
28356
cat >>conftest.$ac_ext <<_ACEOF
28357
/* end confdefs.h.  */
28358
$ac_includes_default
28359
int
28360
main ()
28361
{
216 andreas 28362
static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) <= $ac_mid)];
88 andreas 28363
test_array [0] = 0
28364
 
28365
  ;
28366
  return 0;
28367
}
28368
_ACEOF
28369
rm -f conftest.$ac_objext
28370
if { (ac_try="$ac_compile"
28371
case "(($ac_try" in
28372
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28373
  *) ac_try_echo=$ac_try;;
28374
esac
216 andreas 28375
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28376
$as_echo "$ac_try_echo") >&5
88 andreas 28377
  (eval "$ac_compile") 2>conftest.er1
28378
  ac_status=$?
28379
  grep -v '^ *+' conftest.er1 >conftest.err
28380
  rm -f conftest.er1
28381
  cat conftest.err >&5
216 andreas 28382
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 28383
  (exit $ac_status); } && {
28384
	 test -z "$ac_c_werror_flag" ||
28385
	 test ! -s conftest.err
28386
       } && test -s conftest.$ac_objext; then
28387
  ac_hi=$ac_mid; break
28388
else
216 andreas 28389
  $as_echo "$as_me: failed program was:" >&5
88 andreas 28390
sed 's/^/| /' conftest.$ac_ext >&5
28391
 
28392
	ac_lo=`expr $ac_mid + 1`
28393
			if test $ac_lo -le $ac_mid; then
28394
			  ac_lo= ac_hi=
28395
			  break
28396
			fi
28397
			ac_mid=`expr 2 '*' $ac_mid + 1`
28398
fi
28399
 
28400
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28401
  done
28402
else
216 andreas 28403
  $as_echo "$as_me: failed program was:" >&5
88 andreas 28404
sed 's/^/| /' conftest.$ac_ext >&5
28405
 
28406
	cat >conftest.$ac_ext <<_ACEOF
28407
/* confdefs.h.  */
28408
_ACEOF
28409
cat confdefs.h >>conftest.$ac_ext
28410
cat >>conftest.$ac_ext <<_ACEOF
28411
/* end confdefs.h.  */
28412
$ac_includes_default
28413
int
28414
main ()
28415
{
216 andreas 28416
static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) < 0)];
88 andreas 28417
test_array [0] = 0
28418
 
28419
  ;
28420
  return 0;
28421
}
28422
_ACEOF
28423
rm -f conftest.$ac_objext
28424
if { (ac_try="$ac_compile"
28425
case "(($ac_try" in
28426
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28427
  *) ac_try_echo=$ac_try;;
28428
esac
216 andreas 28429
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28430
$as_echo "$ac_try_echo") >&5
88 andreas 28431
  (eval "$ac_compile") 2>conftest.er1
28432
  ac_status=$?
28433
  grep -v '^ *+' conftest.er1 >conftest.err
28434
  rm -f conftest.er1
28435
  cat conftest.err >&5
216 andreas 28436
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 28437
  (exit $ac_status); } && {
28438
	 test -z "$ac_c_werror_flag" ||
28439
	 test ! -s conftest.err
28440
       } && test -s conftest.$ac_objext; then
28441
  ac_hi=-1 ac_mid=-1
28442
  while :; do
28443
    cat >conftest.$ac_ext <<_ACEOF
28444
/* confdefs.h.  */
28445
_ACEOF
28446
cat confdefs.h >>conftest.$ac_ext
28447
cat >>conftest.$ac_ext <<_ACEOF
28448
/* end confdefs.h.  */
28449
$ac_includes_default
28450
int
28451
main ()
28452
{
216 andreas 28453
static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) >= $ac_mid)];
88 andreas 28454
test_array [0] = 0
28455
 
28456
  ;
28457
  return 0;
28458
}
28459
_ACEOF
28460
rm -f conftest.$ac_objext
28461
if { (ac_try="$ac_compile"
28462
case "(($ac_try" in
28463
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28464
  *) ac_try_echo=$ac_try;;
28465
esac
216 andreas 28466
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28467
$as_echo "$ac_try_echo") >&5
88 andreas 28468
  (eval "$ac_compile") 2>conftest.er1
28469
  ac_status=$?
28470
  grep -v '^ *+' conftest.er1 >conftest.err
28471
  rm -f conftest.er1
28472
  cat conftest.err >&5
216 andreas 28473
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 28474
  (exit $ac_status); } && {
28475
	 test -z "$ac_c_werror_flag" ||
28476
	 test ! -s conftest.err
28477
       } && test -s conftest.$ac_objext; then
28478
  ac_lo=$ac_mid; break
28479
else
216 andreas 28480
  $as_echo "$as_me: failed program was:" >&5
88 andreas 28481
sed 's/^/| /' conftest.$ac_ext >&5
28482
 
28483
	ac_hi=`expr '(' $ac_mid ')' - 1`
28484
			if test $ac_mid -le $ac_hi; then
28485
			  ac_lo= ac_hi=
28486
			  break
28487
			fi
28488
			ac_mid=`expr 2 '*' $ac_mid`
28489
fi
28490
 
28491
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28492
  done
28493
else
216 andreas 28494
  $as_echo "$as_me: failed program was:" >&5
88 andreas 28495
sed 's/^/| /' conftest.$ac_ext >&5
28496
 
28497
	ac_lo= ac_hi=
28498
fi
28499
 
28500
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28501
fi
28502
 
28503
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28504
# Binary search between lo and hi bounds.
28505
while test "x$ac_lo" != "x$ac_hi"; do
28506
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28507
  cat >conftest.$ac_ext <<_ACEOF
28508
/* confdefs.h.  */
28509
_ACEOF
28510
cat confdefs.h >>conftest.$ac_ext
28511
cat >>conftest.$ac_ext <<_ACEOF
28512
/* end confdefs.h.  */
28513
$ac_includes_default
28514
int
28515
main ()
28516
{
216 andreas 28517
static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) <= $ac_mid)];
88 andreas 28518
test_array [0] = 0
28519
 
28520
  ;
28521
  return 0;
28522
}
28523
_ACEOF
28524
rm -f conftest.$ac_objext
28525
if { (ac_try="$ac_compile"
28526
case "(($ac_try" in
28527
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28528
  *) ac_try_echo=$ac_try;;
28529
esac
216 andreas 28530
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28531
$as_echo "$ac_try_echo") >&5
88 andreas 28532
  (eval "$ac_compile") 2>conftest.er1
28533
  ac_status=$?
28534
  grep -v '^ *+' conftest.er1 >conftest.err
28535
  rm -f conftest.er1
28536
  cat conftest.err >&5
216 andreas 28537
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 28538
  (exit $ac_status); } && {
28539
	 test -z "$ac_c_werror_flag" ||
28540
	 test ! -s conftest.err
28541
       } && test -s conftest.$ac_objext; then
28542
  ac_hi=$ac_mid
28543
else
216 andreas 28544
  $as_echo "$as_me: failed program was:" >&5
88 andreas 28545
sed 's/^/| /' conftest.$ac_ext >&5
28546
 
28547
	ac_lo=`expr '(' $ac_mid ')' + 1`
28548
fi
28549
 
28550
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28551
done
28552
case $ac_lo in
28553
?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
28554
'') if test "$ac_cv_type_unsigned_long" = yes; then
216 andreas 28555
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28556
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28557
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
88 andreas 28558
See \`config.log' for more details." >&5
216 andreas 28559
$as_echo "$as_me: error: cannot compute sizeof (unsigned long)
88 andreas 28560
See \`config.log' for more details." >&2;}
216 andreas 28561
   { (exit 77); exit 77; }; }; }
88 andreas 28562
   else
28563
     ac_cv_sizeof_unsigned_long=0
28564
   fi ;;
28565
esac
28566
else
28567
  cat >conftest.$ac_ext <<_ACEOF
28568
/* confdefs.h.  */
28569
_ACEOF
28570
cat confdefs.h >>conftest.$ac_ext
28571
cat >>conftest.$ac_ext <<_ACEOF
28572
/* end confdefs.h.  */
28573
$ac_includes_default
216 andreas 28574
static long int longval () { return (long int) (sizeof (unsigned long)); }
28575
static unsigned long int ulongval () { return (long int) (sizeof (unsigned long)); }
88 andreas 28576
#include <stdio.h>
28577
#include <stdlib.h>
28578
int
28579
main ()
28580
{
28581
 
28582
  FILE *f = fopen ("conftest.val", "w");
28583
  if (! f)
28584
    return 1;
216 andreas 28585
  if (((long int) (sizeof (unsigned long))) < 0)
88 andreas 28586
    {
28587
      long int i = longval ();
216 andreas 28588
      if (i != ((long int) (sizeof (unsigned long))))
88 andreas 28589
	return 1;
216 andreas 28590
      fprintf (f, "%ld", i);
88 andreas 28591
    }
28592
  else
28593
    {
28594
      unsigned long int i = ulongval ();
216 andreas 28595
      if (i != ((long int) (sizeof (unsigned long))))
88 andreas 28596
	return 1;
216 andreas 28597
      fprintf (f, "%lu", i);
88 andreas 28598
    }
216 andreas 28599
  /* Do not output a trailing newline, as this causes \r\n confusion
28600
     on some platforms.  */
88 andreas 28601
  return ferror (f) || fclose (f) != 0;
28602
 
28603
  ;
28604
  return 0;
28605
}
28606
_ACEOF
28607
rm -f conftest$ac_exeext
28608
if { (ac_try="$ac_link"
28609
case "(($ac_try" in
28610
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28611
  *) ac_try_echo=$ac_try;;
28612
esac
216 andreas 28613
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28614
$as_echo "$ac_try_echo") >&5
88 andreas 28615
  (eval "$ac_link") 2>&5
28616
  ac_status=$?
216 andreas 28617
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 28618
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28619
  { (case "(($ac_try" in
28620
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28621
  *) ac_try_echo=$ac_try;;
28622
esac
216 andreas 28623
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28624
$as_echo "$ac_try_echo") >&5
88 andreas 28625
  (eval "$ac_try") 2>&5
28626
  ac_status=$?
216 andreas 28627
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 28628
  (exit $ac_status); }; }; then
28629
  ac_cv_sizeof_unsigned_long=`cat conftest.val`
28630
else
216 andreas 28631
  $as_echo "$as_me: program exited with status $ac_status" >&5
28632
$as_echo "$as_me: failed program was:" >&5
88 andreas 28633
sed 's/^/| /' conftest.$ac_ext >&5
28634
 
28635
( exit $ac_status )
28636
if test "$ac_cv_type_unsigned_long" = yes; then
216 andreas 28637
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28638
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28639
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
88 andreas 28640
See \`config.log' for more details." >&5
216 andreas 28641
$as_echo "$as_me: error: cannot compute sizeof (unsigned long)
88 andreas 28642
See \`config.log' for more details." >&2;}
216 andreas 28643
   { (exit 77); exit 77; }; }; }
88 andreas 28644
   else
28645
     ac_cv_sizeof_unsigned_long=0
28646
   fi
28647
fi
216 andreas 28648
rm -rf conftest.dSYM
88 andreas 28649
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28650
fi
28651
rm -f conftest.val
28652
fi
216 andreas 28653
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
28654
$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
88 andreas 28655
 
28656
 
28657
 
28658
cat >>confdefs.h <<_ACEOF
28659
#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
28660
_ACEOF
28661
 
28662
 
28663
 
216 andreas 28664
  { $as_echo "$as_me:$LINENO: checking sizeof size_t == sizeof unsigned long" >&5
28665
$as_echo_n "checking sizeof size_t == sizeof unsigned long... " >&6; }
88 andreas 28666
  cat >conftest.$ac_ext <<_ACEOF
28667
/* confdefs.h.  */
28668
_ACEOF
28669
cat confdefs.h >>conftest.$ac_ext
28670
cat >>conftest.$ac_ext <<_ACEOF
28671
/* end confdefs.h.  */
28672
 
28673
int
28674
main ()
28675
{
28676
 
28677
    #if SIZEOF_SIZE_T != SIZEOF_UNSIGNED_LONG
28678
       choke me
28679
    #endif
28680
 
28681
  ;
28682
  return 0;
28683
}
28684
_ACEOF
28685
rm -f conftest.$ac_objext
28686
if { (ac_try="$ac_compile"
28687
case "(($ac_try" in
28688
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28689
  *) ac_try_echo=$ac_try;;
28690
esac
216 andreas 28691
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28692
$as_echo "$ac_try_echo") >&5
88 andreas 28693
  (eval "$ac_compile") 2>conftest.er1
28694
  ac_status=$?
28695
  grep -v '^ *+' conftest.er1 >conftest.err
28696
  rm -f conftest.er1
28697
  cat conftest.err >&5
216 andreas 28698
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 28699
  (exit $ac_status); } && {
28700
	 test -z "$ac_c_werror_flag" ||
28701
	 test ! -s conftest.err
28702
       } && test -s conftest.$ac_objext; then
216 andreas 28703
  { $as_echo "$as_me:$LINENO: result: yes" >&5
28704
$as_echo "yes" >&6; }
88 andreas 28705
else
216 andreas 28706
  $as_echo "$as_me: failed program was:" >&5
88 andreas 28707
sed 's/^/| /' conftest.$ac_ext >&5
28708
 
28709
 
216 andreas 28710
      { $as_echo "$as_me:$LINENO: result: no" >&5
28711
$as_echo "no" >&6; }
28712
      { { $as_echo "$as_me:$LINENO: error:
88 andreas 28713
       Apparently on your system our assumption sizeof size_t == sizeof unsigned long
28714
       does not apply. Please mail kde-devel@kde.org with a description of your system!
28715
      " >&5
216 andreas 28716
$as_echo "$as_me: error:
88 andreas 28717
       Apparently on your system our assumption sizeof size_t == sizeof unsigned long
28718
       does not apply. Please mail kde-devel@kde.org with a description of your system!
28719
      " >&2;}
28720
   { (exit 1); exit 1; }; }
28721
 
28722
fi
28723
 
28724
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28725
 
28726
 
216 andreas 28727
  { $as_echo "$as_me:$LINENO: checking for PIE support" >&5
28728
$as_echo_n "checking for PIE support... " >&6; }
88 andreas 28729
if test "${kde_cv_val_pie_support+set}" = set; then
216 andreas 28730
  $as_echo_n "(cached) " >&6
88 andreas 28731
else
28732
 
28733
 
28734
     ac_ext=cpp
28735
ac_cpp='$CXXCPP $CPPFLAGS'
28736
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28737
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28738
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28739
 
28740
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
28741
 
28742
 
28743
    safe_CXXFLAGS=$CXXFLAGS
28744
    safe_LDFLAGS=$LDFLAGS
28745
    CXXFLAGS="$CXXFLAGS -fPIE"
28746
    LDFLAGS="$LDFLAGS -pie"
28747
 
28748
    cat >conftest.$ac_ext <<_ACEOF
28749
/* confdefs.h.  */
28750
_ACEOF
28751
cat confdefs.h >>conftest.$ac_ext
28752
cat >>conftest.$ac_ext <<_ACEOF
28753
/* end confdefs.h.  */
28754
int foo;
28755
int
28756
main ()
28757
{
28758
 
28759
  ;
28760
  return 0;
28761
}
28762
_ACEOF
28763
rm -f conftest.$ac_objext conftest$ac_exeext
28764
if { (ac_try="$ac_link"
28765
case "(($ac_try" in
28766
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28767
  *) ac_try_echo=$ac_try;;
28768
esac
216 andreas 28769
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28770
$as_echo "$ac_try_echo") >&5
88 andreas 28771
  (eval "$ac_link") 2>conftest.er1
28772
  ac_status=$?
28773
  grep -v '^ *+' conftest.er1 >conftest.err
28774
  rm -f conftest.er1
28775
  cat conftest.err >&5
216 andreas 28776
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 28777
  (exit $ac_status); } && {
28778
	 test -z "$ac_cxx_werror_flag" ||
28779
	 test ! -s conftest.err
216 andreas 28780
       } && test -s conftest$ac_exeext && {
28781
	 test "$cross_compiling" = yes ||
28782
	 $as_test_x conftest$ac_exeext
28783
       }; then
88 andreas 28784
  kde_cv_val_pie_support=yes
28785
else
216 andreas 28786
  $as_echo "$as_me: failed program was:" >&5
88 andreas 28787
sed 's/^/| /' conftest.$ac_ext >&5
28788
 
28789
	kde_cv_val_pie_support=no
28790
fi
28791
 
216 andreas 28792
rm -rf conftest.dSYM
88 andreas 28793
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28794
      conftest$ac_exeext conftest.$ac_ext
28795
 
28796
    CXXFLAGS=$safe_CXXFLAGS
28797
    LDFLAGS=$safe_LDFLAGS
28798
    ac_ext=c
28799
ac_cpp='$CPP $CPPFLAGS'
28800
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28801
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28802
ac_compiler_gnu=$ac_cv_c_compiler_gnu
28803
 
28804
 
28805
fi
216 andreas 28806
{ $as_echo "$as_me:$LINENO: result: $kde_cv_val_pie_support" >&5
28807
$as_echo "$kde_cv_val_pie_support" >&6; }
88 andreas 28808
 
216 andreas 28809
  { $as_echo "$as_me:$LINENO: checking if enabling -pie/fPIE support" >&5
28810
$as_echo_n "checking if enabling -pie/fPIE support... " >&6; }
88 andreas 28811
 
28812
  # Check whether --enable-pie was given.
28813
if test "${enable_pie+set}" = set; then
28814
  enableval=$enable_pie; kde_has_pie_support=$enableval
28815
else
28816
  kde_has_pie_support=detect
28817
fi
28818
 
28819
 
28820
  if test "$kde_has_pie_support" = "detect"; then
28821
    kde_has_pie_support=$kde_cv_val_pie_support
28822
  fi
28823
 
216 andreas 28824
  { $as_echo "$as_me:$LINENO: result: $kde_has_pie_support" >&5
28825
$as_echo "$kde_has_pie_support" >&6; }
88 andreas 28826
 
28827
  KDE_USE_FPIE=""
28828
  KDE_USE_PIE=""
28829
 
28830
 
28831
 
28832
 
28833
  if test "$kde_has_pie_support" = "yes"; then
28834
    KDE_USE_FPIE="-fPIE"
28835
    KDE_USE_PIE="-pie"
28836
  fi
28837
 
28838
 
28839
# darwin needs this to initialize the environment
28840
 
28841
for ac_header in crt_externs.h
28842
do
216 andreas 28843
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
88 andreas 28844
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
216 andreas 28845
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28846
$as_echo_n "checking for $ac_header... " >&6; }
88 andreas 28847
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
216 andreas 28848
  $as_echo_n "(cached) " >&6
88 andreas 28849
fi
216 andreas 28850
ac_res=`eval 'as_val=${'$as_ac_Header'}
28851
		 $as_echo "$as_val"'`
28852
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28853
$as_echo "$ac_res" >&6; }
88 andreas 28854
else
28855
  # Is the header compilable?
216 andreas 28856
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
28857
$as_echo_n "checking $ac_header usability... " >&6; }
88 andreas 28858
cat >conftest.$ac_ext <<_ACEOF
28859
/* confdefs.h.  */
28860
_ACEOF
28861
cat confdefs.h >>conftest.$ac_ext
28862
cat >>conftest.$ac_ext <<_ACEOF
28863
/* end confdefs.h.  */
28864
$ac_includes_default
28865
#include <$ac_header>
28866
_ACEOF
28867
rm -f conftest.$ac_objext
28868
if { (ac_try="$ac_compile"
28869
case "(($ac_try" in
28870
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28871
  *) ac_try_echo=$ac_try;;
28872
esac
216 andreas 28873
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28874
$as_echo "$ac_try_echo") >&5
88 andreas 28875
  (eval "$ac_compile") 2>conftest.er1
28876
  ac_status=$?
28877
  grep -v '^ *+' conftest.er1 >conftest.err
28878
  rm -f conftest.er1
28879
  cat conftest.err >&5
216 andreas 28880
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 28881
  (exit $ac_status); } && {
28882
	 test -z "$ac_c_werror_flag" ||
28883
	 test ! -s conftest.err
28884
       } && test -s conftest.$ac_objext; then
28885
  ac_header_compiler=yes
28886
else
216 andreas 28887
  $as_echo "$as_me: failed program was:" >&5
88 andreas 28888
sed 's/^/| /' conftest.$ac_ext >&5
28889
 
28890
	ac_header_compiler=no
28891
fi
28892
 
28893
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
216 andreas 28894
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28895
$as_echo "$ac_header_compiler" >&6; }
88 andreas 28896
 
28897
# Is the header present?
216 andreas 28898
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
28899
$as_echo_n "checking $ac_header presence... " >&6; }
88 andreas 28900
cat >conftest.$ac_ext <<_ACEOF
28901
/* confdefs.h.  */
28902
_ACEOF
28903
cat confdefs.h >>conftest.$ac_ext
28904
cat >>conftest.$ac_ext <<_ACEOF
28905
/* end confdefs.h.  */
28906
#include <$ac_header>
28907
_ACEOF
28908
if { (ac_try="$ac_cpp conftest.$ac_ext"
28909
case "(($ac_try" in
28910
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28911
  *) ac_try_echo=$ac_try;;
28912
esac
216 andreas 28913
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28914
$as_echo "$ac_try_echo") >&5
88 andreas 28915
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28916
  ac_status=$?
28917
  grep -v '^ *+' conftest.er1 >conftest.err
28918
  rm -f conftest.er1
28919
  cat conftest.err >&5
216 andreas 28920
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 28921
  (exit $ac_status); } >/dev/null && {
28922
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28923
	 test ! -s conftest.err
28924
       }; then
28925
  ac_header_preproc=yes
28926
else
216 andreas 28927
  $as_echo "$as_me: failed program was:" >&5
88 andreas 28928
sed 's/^/| /' conftest.$ac_ext >&5
28929
 
28930
  ac_header_preproc=no
28931
fi
28932
 
28933
rm -f conftest.err conftest.$ac_ext
216 andreas 28934
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28935
$as_echo "$ac_header_preproc" >&6; }
88 andreas 28936
 
28937
# So?  What about this header?
28938
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28939
  yes:no: )
216 andreas 28940
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28941
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28942
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28943
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
88 andreas 28944
    ac_header_preproc=yes
28945
    ;;
28946
  no:yes:* )
216 andreas 28947
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28948
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28949
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28950
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28951
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28952
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28953
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28954
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28955
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28956
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28957
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28958
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
88 andreas 28959
 
28960
    ;;
28961
esac
216 andreas 28962
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28963
$as_echo_n "checking for $ac_header... " >&6; }
88 andreas 28964
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
216 andreas 28965
  $as_echo_n "(cached) " >&6
88 andreas 28966
else
28967
  eval "$as_ac_Header=\$ac_header_preproc"
28968
fi
216 andreas 28969
ac_res=`eval 'as_val=${'$as_ac_Header'}
28970
		 $as_echo "$as_val"'`
28971
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28972
$as_echo "$ac_res" >&6; }
88 andreas 28973
 
28974
fi
216 andreas 28975
as_val=`eval 'as_val=${'$as_ac_Header'}
28976
		 $as_echo "$as_val"'`
28977
   if test "x$as_val" = x""yes; then
88 andreas 28978
  cat >>confdefs.h <<_ACEOF
216 andreas 28979
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
88 andreas 28980
_ACEOF
28981
 
28982
fi
28983
 
28984
done
28985
 
216 andreas 28986
{ $as_echo "$as_me:$LINENO: checking for _NSGetEnviron" >&5
28987
$as_echo_n "checking for _NSGetEnviron... " >&6; }
88 andreas 28988
if test "${ac_cv_func__NSGetEnviron+set}" = set; then
216 andreas 28989
  $as_echo_n "(cached) " >&6
88 andreas 28990
else
28991
  cat >conftest.$ac_ext <<_ACEOF
28992
/* confdefs.h.  */
28993
_ACEOF
28994
cat confdefs.h >>conftest.$ac_ext
28995
cat >>conftest.$ac_ext <<_ACEOF
28996
/* end confdefs.h.  */
28997
/* Define _NSGetEnviron to an innocuous variant, in case <limits.h> declares _NSGetEnviron.
28998
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28999
#define _NSGetEnviron innocuous__NSGetEnviron
29000
 
29001
/* System header to define __stub macros and hopefully few prototypes,
29002
    which can conflict with char _NSGetEnviron (); below.
29003
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29004
    <limits.h> exists even on freestanding compilers.  */
29005
 
29006
#ifdef __STDC__
29007
# include <limits.h>
29008
#else
29009
# include <assert.h>
29010
#endif
29011
 
29012
#undef _NSGetEnviron
29013
 
29014
/* Override any GCC internal prototype to avoid an error.
29015
   Use char because int might match the return type of a GCC
29016
   builtin and then its argument prototype would still apply.  */
29017
#ifdef __cplusplus
29018
extern "C"
29019
#endif
29020
char _NSGetEnviron ();
29021
/* The GNU C library defines this for functions which it implements
29022
    to always fail with ENOSYS.  Some functions are actually named
29023
    something starting with __ and the normal name is an alias.  */
29024
#if defined __stub__NSGetEnviron || defined __stub____NSGetEnviron
29025
choke me
29026
#endif
29027
 
29028
int
29029
main ()
29030
{
29031
return _NSGetEnviron ();
29032
  ;
29033
  return 0;
29034
}
29035
_ACEOF
29036
rm -f conftest.$ac_objext conftest$ac_exeext
29037
if { (ac_try="$ac_link"
29038
case "(($ac_try" in
29039
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29040
  *) ac_try_echo=$ac_try;;
29041
esac
216 andreas 29042
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29043
$as_echo "$ac_try_echo") >&5
88 andreas 29044
  (eval "$ac_link") 2>conftest.er1
29045
  ac_status=$?
29046
  grep -v '^ *+' conftest.er1 >conftest.err
29047
  rm -f conftest.er1
29048
  cat conftest.err >&5
216 andreas 29049
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 29050
  (exit $ac_status); } && {
29051
	 test -z "$ac_c_werror_flag" ||
29052
	 test ! -s conftest.err
216 andreas 29053
       } && test -s conftest$ac_exeext && {
29054
	 test "$cross_compiling" = yes ||
29055
	 $as_test_x conftest$ac_exeext
29056
       }; then
88 andreas 29057
  ac_cv_func__NSGetEnviron=yes
29058
else
216 andreas 29059
  $as_echo "$as_me: failed program was:" >&5
88 andreas 29060
sed 's/^/| /' conftest.$ac_ext >&5
29061
 
29062
	ac_cv_func__NSGetEnviron=no
29063
fi
29064
 
216 andreas 29065
rm -rf conftest.dSYM
88 andreas 29066
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29067
      conftest$ac_exeext conftest.$ac_ext
29068
fi
216 andreas 29069
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__NSGetEnviron" >&5
29070
$as_echo "$ac_cv_func__NSGetEnviron" >&6; }
29071
if test "x$ac_cv_func__NSGetEnviron" = x""yes; then
88 andreas 29072
 
29073
cat >>confdefs.h <<\_ACEOF
29074
#define HAVE_NSGETENVIRON 1
29075
_ACEOF
29076
 
29077
fi
29078
 
29079
 
29080
 
29081
 
29082
 
29083
 
29084
 
29085
 
29086
 
29087
 
29088
for ac_func in vsnprintf snprintf
29089
do
216 andreas 29090
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29091
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
29092
$as_echo_n "checking for $ac_func... " >&6; }
88 andreas 29093
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
216 andreas 29094
  $as_echo_n "(cached) " >&6
88 andreas 29095
else
29096
  cat >conftest.$ac_ext <<_ACEOF
29097
/* confdefs.h.  */
29098
_ACEOF
29099
cat confdefs.h >>conftest.$ac_ext
29100
cat >>conftest.$ac_ext <<_ACEOF
29101
/* end confdefs.h.  */
29102
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29103
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29104
#define $ac_func innocuous_$ac_func
29105
 
29106
/* System header to define __stub macros and hopefully few prototypes,
29107
    which can conflict with char $ac_func (); below.
29108
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29109
    <limits.h> exists even on freestanding compilers.  */
29110
 
29111
#ifdef __STDC__
29112
# include <limits.h>
29113
#else
29114
# include <assert.h>
29115
#endif
29116
 
29117
#undef $ac_func
29118
 
29119
/* Override any GCC internal prototype to avoid an error.
29120
   Use char because int might match the return type of a GCC
29121
   builtin and then its argument prototype would still apply.  */
29122
#ifdef __cplusplus
29123
extern "C"
29124
#endif
29125
char $ac_func ();
29126
/* The GNU C library defines this for functions which it implements
29127
    to always fail with ENOSYS.  Some functions are actually named
29128
    something starting with __ and the normal name is an alias.  */
29129
#if defined __stub_$ac_func || defined __stub___$ac_func
29130
choke me
29131
#endif
29132
 
29133
int
29134
main ()
29135
{
29136
return $ac_func ();
29137
  ;
29138
  return 0;
29139
}
29140
_ACEOF
29141
rm -f conftest.$ac_objext conftest$ac_exeext
29142
if { (ac_try="$ac_link"
29143
case "(($ac_try" in
29144
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29145
  *) ac_try_echo=$ac_try;;
29146
esac
216 andreas 29147
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29148
$as_echo "$ac_try_echo") >&5
88 andreas 29149
  (eval "$ac_link") 2>conftest.er1
29150
  ac_status=$?
29151
  grep -v '^ *+' conftest.er1 >conftest.err
29152
  rm -f conftest.er1
29153
  cat conftest.err >&5
216 andreas 29154
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 29155
  (exit $ac_status); } && {
29156
	 test -z "$ac_c_werror_flag" ||
29157
	 test ! -s conftest.err
216 andreas 29158
       } && test -s conftest$ac_exeext && {
29159
	 test "$cross_compiling" = yes ||
29160
	 $as_test_x conftest$ac_exeext
29161
       }; then
88 andreas 29162
  eval "$as_ac_var=yes"
29163
else
216 andreas 29164
  $as_echo "$as_me: failed program was:" >&5
88 andreas 29165
sed 's/^/| /' conftest.$ac_ext >&5
29166
 
29167
	eval "$as_ac_var=no"
29168
fi
29169
 
216 andreas 29170
rm -rf conftest.dSYM
88 andreas 29171
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29172
      conftest$ac_exeext conftest.$ac_ext
29173
fi
216 andreas 29174
ac_res=`eval 'as_val=${'$as_ac_var'}
29175
		 $as_echo "$as_val"'`
29176
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29177
$as_echo "$ac_res" >&6; }
29178
as_val=`eval 'as_val=${'$as_ac_var'}
29179
		 $as_echo "$as_val"'`
29180
   if test "x$as_val" = x""yes; then
88 andreas 29181
  cat >>confdefs.h <<_ACEOF
216 andreas 29182
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
88 andreas 29183
_ACEOF
29184
 
29185
fi
29186
done
29187
 
29188
 
29189
 
29190
 
29191
 
29192
 
29193
 
29194
 
29195
 
29196
# Check whether --enable-embedded was given.
29197
if test "${enable_embedded+set}" = set; then
29198
  enableval=$enable_embedded; kde_use_qt_emb=$enableval
29199
else
29200
  kde_use_qt_emb=no
29201
 
29202
fi
29203
 
29204
 
29205
# Check whether --enable-qtopia was given.
29206
if test "${enable_qtopia+set}" = set; then
29207
  enableval=$enable_qtopia; kde_use_qt_emb_palm=$enableval
29208
else
29209
  kde_use_qt_emb_palm=no
29210
 
29211
fi
29212
 
29213
 
29214
# Check whether --enable-mac was given.
29215
if test "${enable_mac+set}" = set; then
29216
  enableval=$enable_mac; kde_use_qt_mac=$enableval
29217
else
29218
  kde_use_qt_mac=no
29219
 
29220
fi
29221
 
29222
 
29223
# used to disable x11-specific stuff on special platforms
91 andreas 29224
 
29225
 
29226
if test "$kde_use_qt_emb" = "no" && test "$kde_use_qt_mac" = "no"; then
88 andreas 29227
  include_x11_TRUE=
29228
  include_x11_FALSE='#'
29229
else
29230
  include_x11_TRUE='#'
29231
  include_x11_FALSE=
29232
fi
29233
 
29234
 
29235
if test "$kde_use_qt_emb" = "no" && test "$kde_use_qt_mac" = "no"; then
29236
 
216 andreas 29237
{ $as_echo "$as_me:$LINENO: checking for X" >&5
29238
$as_echo_n "checking for X... " >&6; }
88 andreas 29239
 
29240
if test "${kde_cv_have_x+set}" = set; then
216 andreas 29241
  $as_echo_n "(cached) " >&6
88 andreas 29242
else
29243
  # One or both of the vars are not set, and there is no cached value.
29244
if test "{$x_includes+set}" = set || test "$x_includes" = NONE; then
29245
   kde_x_includes=NO
29246
else
29247
   kde_x_includes=$x_includes
29248
fi
29249
if test "{$x_libraries+set}" = set || test "$x_libraries" = NONE; then
29250
   kde_x_libraries=NO
29251
else
29252
   kde_x_libraries=$x_libraries
29253
fi
29254
 
29255
# below we use the standard autoconf calls
29256
ac_x_libraries=$kde_x_libraries
29257
ac_x_includes=$kde_x_includes
29258
 
29259
 
29260
 
29261
 
29262
if test "$ac_x_includes" = NO; then
29263
  # Guess where to find include files, by looking for this one X11 .h file.
29264
  test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
29265
 
29266
  # First, try using that file with no special directory specified.
29267
cat >conftest.$ac_ext <<_ACEOF
29268
/* confdefs.h.  */
29269
_ACEOF
29270
cat confdefs.h >>conftest.$ac_ext
29271
cat >>conftest.$ac_ext <<_ACEOF
29272
/* end confdefs.h.  */
29273
#include <$x_direct_test_include>
29274
_ACEOF
29275
if { (ac_try="$ac_cpp conftest.$ac_ext"
29276
case "(($ac_try" in
29277
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29278
  *) ac_try_echo=$ac_try;;
29279
esac
216 andreas 29280
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29281
$as_echo "$ac_try_echo") >&5
88 andreas 29282
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29283
  ac_status=$?
29284
  grep -v '^ *+' conftest.er1 >conftest.err
29285
  rm -f conftest.er1
29286
  cat conftest.err >&5
216 andreas 29287
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 29288
  (exit $ac_status); } >/dev/null && {
29289
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29290
	 test ! -s conftest.err
29291
       }; then
29292
  # We can compile using X headers with no special include directory.
29293
ac_x_includes=
29294
else
216 andreas 29295
  $as_echo "$as_me: failed program was:" >&5
88 andreas 29296
sed 's/^/| /' conftest.$ac_ext >&5
29297
 
29298
  # Look for the header file in a standard set of common directories.
29299
# Check X11 before X11Rn because it is often a symlink to the current release.
29300
  for ac_dir in               \
29301
    /usr/X11/include          \
29302
    /usr/X11R6/include        \
29303
    /usr/X11R5/include        \
29304
    /usr/X11R4/include        \
29305
                              \
29306
    /usr/include/X11          \
29307
    /usr/include/X11R6        \
29308
    /usr/include/X11R5        \
29309
    /usr/include/X11R4        \
29310
                              \
29311
    /usr/local/X11/include    \
29312
    /usr/local/X11R6/include  \
29313
    /usr/local/X11R5/include  \
29314
    /usr/local/X11R4/include  \
29315
                              \
29316
    /usr/local/include/X11    \
29317
    /usr/local/include/X11R6  \
29318
    /usr/local/include/X11R5  \
29319
    /usr/local/include/X11R4  \
29320
                              \
29321
    /usr/X386/include         \
29322
    /usr/x386/include         \
29323
    /usr/XFree86/include/X11  \
29324
                              \
29325
    /usr/include              \
29326
    /usr/local/include        \
29327
    /usr/unsupported/include  \
29328
    /usr/athena/include       \
29329
    /usr/local/x11r5/include  \
29330
    /usr/lpp/Xamples/include  \
29331
                              \
29332
    /usr/openwin/include      \
29333
    /usr/openwin/share/include \
29334
    ; \
29335
  do
29336
    if test -r "$ac_dir/$x_direct_test_include"; then
29337
      ac_x_includes=$ac_dir
29338
      break
29339
    fi
29340
  done
29341
fi
29342
 
29343
rm -f conftest.err conftest.$ac_ext
29344
fi # $ac_x_includes = NO
29345
 
29346
if test "$ac_x_libraries" = NO; then
29347
  # Check for the libraries.
29348
 
29349
  test -z "$x_direct_test_library" && x_direct_test_library=Xt
29350
  test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
29351
 
29352
  # See if we find them without any special options.
29353
  # Don't add to $LIBS permanently.
29354
  ac_save_LIBS="$LIBS"
29355
  LIBS="-l$x_direct_test_library $LIBS"
29356
cat >conftest.$ac_ext <<_ACEOF
29357
/* confdefs.h.  */
29358
_ACEOF
29359
cat confdefs.h >>conftest.$ac_ext
29360
cat >>conftest.$ac_ext <<_ACEOF
29361
/* end confdefs.h.  */
29362
#include <X11/Intrinsic.h>
29363
int
29364
main ()
29365
{
29366
${x_direct_test_function}(1)
29367
  ;
29368
  return 0;
29369
}
29370
_ACEOF
29371
rm -f conftest.$ac_objext conftest$ac_exeext
29372
if { (ac_try="$ac_link"
29373
case "(($ac_try" in
29374
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29375
  *) ac_try_echo=$ac_try;;
29376
esac
216 andreas 29377
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29378
$as_echo "$ac_try_echo") >&5
88 andreas 29379
  (eval "$ac_link") 2>conftest.er1
29380
  ac_status=$?
29381
  grep -v '^ *+' conftest.er1 >conftest.err
29382
  rm -f conftest.er1
29383
  cat conftest.err >&5
216 andreas 29384
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 29385
  (exit $ac_status); } && {
29386
	 test -z "$ac_c_werror_flag" ||
29387
	 test ! -s conftest.err
216 andreas 29388
       } && test -s conftest$ac_exeext && {
29389
	 test "$cross_compiling" = yes ||
29390
	 $as_test_x conftest$ac_exeext
29391
       }; then
88 andreas 29392
  LIBS="$ac_save_LIBS"
29393
# We can link X programs with no special library path.
29394
ac_x_libraries=
29395
else
216 andreas 29396
  $as_echo "$as_me: failed program was:" >&5
88 andreas 29397
sed 's/^/| /' conftest.$ac_ext >&5
29398
 
29399
	LIBS="$ac_save_LIBS"
29400
# First see if replacing the include by lib works.
29401
# Check X11 before X11Rn because it is often a symlink to the current release.
29402
for ac_dir in `echo "$ac_x_includes" | sed s/include/lib${kdelibsuff}/` \
29403
    /usr/X11/lib${kdelibsuff}           \
29404
    /usr/X11R6/lib${kdelibsuff}         \
29405
    /usr/X11R5/lib${kdelibsuff}         \
29406
    /usr/X11R4/lib${kdelibsuff}         \
29407
                                        \
29408
    /usr/lib${kdelibsuff}/X11           \
29409
    /usr/lib${kdelibsuff}/X11R6         \
29410
    /usr/lib${kdelibsuff}/X11R5         \
29411
    /usr/lib${kdelibsuff}/X11R4         \
29412
                                        \
29413
    /usr/local/X11/lib${kdelibsuff}     \
29414
    /usr/local/X11R6/lib${kdelibsuff}   \
29415
    /usr/local/X11R5/lib${kdelibsuff}   \
29416
    /usr/local/X11R4/lib${kdelibsuff}   \
29417
                                        \
29418
    /usr/local/lib${kdelibsuff}/X11     \
29419
    /usr/local/lib${kdelibsuff}/X11R6   \
29420
    /usr/local/lib${kdelibsuff}/X11R5   \
29421
    /usr/local/lib${kdelibsuff}/X11R4   \
29422
                                        \
29423
    /usr/X386/lib${kdelibsuff}          \
29424
    /usr/x386/lib${kdelibsuff}          \
29425
    /usr/XFree86/lib${kdelibsuff}/X11   \
29426
                                        \
29427
    /usr/lib${kdelibsuff}               \
29428
    /usr/local/lib${kdelibsuff}         \
29429
    /usr/unsupported/lib${kdelibsuff}   \
29430
    /usr/athena/lib${kdelibsuff}        \
29431
    /usr/local/x11r5/lib${kdelibsuff}   \
29432
    /usr/lpp/Xamples/lib${kdelibsuff}   \
29433
    /lib/usr/lib${kdelibsuff}/X11       \
29434
                                        \
29435
    /usr/openwin/lib${kdelibsuff}       \
29436
    /usr/openwin/share/lib${kdelibsuff} \
29437
    ; \
29438
do
29439
  for ac_extension in a so sl; do
29440
    if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
29441
      ac_x_libraries=$ac_dir
29442
      break 2
29443
    fi
29444
  done
29445
done
29446
fi
29447
 
216 andreas 29448
rm -rf conftest.dSYM
88 andreas 29449
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29450
      conftest$ac_exeext conftest.$ac_ext
29451
fi # $ac_x_libraries = NO
29452
 
29453
case "$host" in
29454
mips-sgi-irix6*)
29455
  ;;
29456
*-*-solaris*)
29457
  ;;
29458
*)
29459
  rm -f -r conftest.dir
29460
if mkdir conftest.dir; then
29461
  cd conftest.dir
29462
  cat >Imakefile <<'_ACEOF'
29463
incroot:
29464
	@echo incroot='${INCROOT}'
29465
usrlibdir:
29466
	@echo usrlibdir='${USRLIBDIR}'
29467
libdir:
29468
	@echo libdir='${LIBDIR}'
29469
_ACEOF
29470
  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29471
    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29472
    for ac_var in incroot usrlibdir libdir; do
29473
      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29474
    done
29475
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
216 andreas 29476
    for ac_extension in a so sl dylib la dll; do
88 andreas 29477
      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29478
	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
29479
	ac_im_usrlibdir=$ac_im_libdir; break
29480
      fi
29481
    done
29482
    # Screen out bogus values from the imake configuration.  They are
29483
    # bogus both because they are the default anyway, and because
29484
    # using them would break gcc on systems where it needs fixed includes.
29485
    case $ac_im_incroot in
29486
	/usr/include) ac_x_includes= ;;
29487
	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29488
    esac
29489
    case $ac_im_usrlibdir in
216 andreas 29490
	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
88 andreas 29491
	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29492
    esac
29493
  fi
29494
  cd ..
29495
  rm -f -r conftest.dir
29496
fi
29497
 
29498
  if test -z "$ac_x_includes"; then
29499
    ac_x_includes="."
29500
  fi
29501
  if test -z "$ac_x_libraries"; then
29502
    ac_x_libraries="/usr/lib${kdelibsuff}"
29503
  fi
29504
esac
29505
#from now on we use our own again
29506
 
29507
# when the user already gave --x-includes, we ignore
29508
# what the standard autoconf macros told us.
29509
if test "$kde_x_includes" = NO; then
29510
  kde_x_includes=$ac_x_includes
29511
fi
29512
 
29513
# for --x-libraries too
29514
if test "$kde_x_libraries" = NO; then
29515
  kde_x_libraries=$ac_x_libraries
29516
fi
29517
 
29518
if test "$kde_x_includes" = NO; then
216 andreas 29519
  { { $as_echo "$as_me:$LINENO: error: Can't find X includes. Please check your installation and add the correct paths!" >&5
29520
$as_echo "$as_me: error: Can't find X includes. Please check your installation and add the correct paths!" >&2;}
88 andreas 29521
   { (exit 1); exit 1; }; }
29522
fi
29523
 
29524
if test "$kde_x_libraries" = NO; then
216 andreas 29525
  { { $as_echo "$as_me:$LINENO: error: Can't find X libraries. Please check your installation and add the correct paths!" >&5
29526
$as_echo "$as_me: error: Can't find X libraries. Please check your installation and add the correct paths!" >&2;}
88 andreas 29527
   { (exit 1); exit 1; }; }
29528
fi
29529
 
29530
# Record where we found X for the cache.
29531
kde_cv_have_x="have_x=yes \
29532
         kde_x_includes=$kde_x_includes kde_x_libraries=$kde_x_libraries"
29533
 
29534
fi
29535
 
29536
eval "$kde_cv_have_x"
29537
 
29538
if test "$have_x" != yes; then
216 andreas 29539
  { $as_echo "$as_me:$LINENO: result: $have_x" >&5
29540
$as_echo "$have_x" >&6; }
88 andreas 29541
  no_x=yes
29542
else
216 andreas 29543
  { $as_echo "$as_me:$LINENO: result: libraries $kde_x_libraries, headers $kde_x_includes" >&5
29544
$as_echo "libraries $kde_x_libraries, headers $kde_x_includes" >&6; }
88 andreas 29545
fi
29546
 
29547
if test -z "$kde_x_includes" || test "x$kde_x_includes" = xNONE; then
29548
  X_INCLUDES=""
29549
  x_includes=".";  else
29550
  x_includes=$kde_x_includes
29551
  X_INCLUDES="-I$x_includes"
29552
fi
29553
 
29554
if test -z "$kde_x_libraries" || test "x$kde_x_libraries" = xNONE || test "$kde_x_libraries" = "/usr/lib"; then
29555
  X_LDFLAGS=""
29556
  x_libraries="/usr/lib";  else
29557
  x_libraries=$kde_x_libraries
29558
  X_LDFLAGS="-L$x_libraries"
29559
fi
29560
all_includes="$X_INCLUDES"
29561
all_libraries="$X_LDFLAGS $LDFLAGS_AS_NEEDED $LDFLAGS_NEW_DTAGS"
29562
 
29563
# Check for libraries that X11R6 Xt/Xaw programs need.
29564
ac_save_LDFLAGS="$LDFLAGS"
29565
LDFLAGS="$LDFLAGS $X_LDFLAGS"
29566
# SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
29567
# check for ICE first), but we must link in the order -lSM -lICE or
29568
# we get undefined symbols.  So assume we have SM if we have ICE.
29569
# These have to be linked with before -lX11, unlike the other
29570
# libraries we check for below, so use a different variable.
29571
#  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
216 andreas 29572
{ $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
29573
$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
88 andreas 29574
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
216 andreas 29575
  $as_echo_n "(cached) " >&6
88 andreas 29576
else
29577
  ac_check_lib_save_LIBS=$LIBS
29578
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
29579
cat >conftest.$ac_ext <<_ACEOF
29580
/* confdefs.h.  */
29581
_ACEOF
29582
cat confdefs.h >>conftest.$ac_ext
29583
cat >>conftest.$ac_ext <<_ACEOF
29584
/* end confdefs.h.  */
29585
 
29586
/* Override any GCC internal prototype to avoid an error.
29587
   Use char because int might match the return type of a GCC
29588
   builtin and then its argument prototype would still apply.  */
29589
#ifdef __cplusplus
29590
extern "C"
29591
#endif
29592
char IceConnectionNumber ();
29593
int
29594
main ()
29595
{
29596
return IceConnectionNumber ();
29597
  ;
29598
  return 0;
29599
}
29600
_ACEOF
29601
rm -f conftest.$ac_objext conftest$ac_exeext
29602
if { (ac_try="$ac_link"
29603
case "(($ac_try" in
29604
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29605
  *) ac_try_echo=$ac_try;;
29606
esac
216 andreas 29607
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29608
$as_echo "$ac_try_echo") >&5
88 andreas 29609
  (eval "$ac_link") 2>conftest.er1
29610
  ac_status=$?
29611
  grep -v '^ *+' conftest.er1 >conftest.err
29612
  rm -f conftest.er1
29613
  cat conftest.err >&5
216 andreas 29614
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 29615
  (exit $ac_status); } && {
29616
	 test -z "$ac_c_werror_flag" ||
29617
	 test ! -s conftest.err
216 andreas 29618
       } && test -s conftest$ac_exeext && {
29619
	 test "$cross_compiling" = yes ||
29620
	 $as_test_x conftest$ac_exeext
29621
       }; then
88 andreas 29622
  ac_cv_lib_ICE_IceConnectionNumber=yes
29623
else
216 andreas 29624
  $as_echo "$as_me: failed program was:" >&5
88 andreas 29625
sed 's/^/| /' conftest.$ac_ext >&5
29626
 
29627
	ac_cv_lib_ICE_IceConnectionNumber=no
29628
fi
29629
 
216 andreas 29630
rm -rf conftest.dSYM
88 andreas 29631
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29632
      conftest$ac_exeext conftest.$ac_ext
29633
LIBS=$ac_check_lib_save_LIBS
29634
fi
216 andreas 29635
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
29636
$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
29637
if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then
88 andreas 29638
  LIBSM="-lSM -lICE"
29639
fi
29640
 
29641
LDFLAGS="$ac_save_LDFLAGS"
29642
 
29643
LIB_X11='-lX11 $(LIBSOCKET)'
29644
 
216 andreas 29645
{ $as_echo "$as_me:$LINENO: checking for libXext" >&5
29646
$as_echo_n "checking for libXext... " >&6; }
88 andreas 29647
if test "${kde_cv_have_libXext+set}" = set; then
216 andreas 29648
  $as_echo_n "(cached) " >&6
88 andreas 29649
else
29650
 
29651
kde_ldflags_safe="$LDFLAGS"
29652
kde_libs_safe="$LIBS"
29653
 
29654
LDFLAGS="$LDFLAGS $X_LDFLAGS $USER_LDFLAGS"
29655
LIBS="-lXext -lX11 $LIBSOCKET"
29656
 
29657
cat >conftest.$ac_ext <<_ACEOF
29658
/* confdefs.h.  */
29659
_ACEOF
29660
cat confdefs.h >>conftest.$ac_ext
29661
cat >>conftest.$ac_ext <<_ACEOF
29662
/* end confdefs.h.  */
29663
 
29664
#include <stdio.h>
29665
#ifdef STDC_HEADERS
29666
# include <stdlib.h>
29667
#endif
29668
 
29669
int
29670
main ()
29671
{
29672
 
29673
printf("hello Xext\n");
29674
 
29675
  ;
29676
  return 0;
29677
}
29678
_ACEOF
29679
rm -f conftest.$ac_objext conftest$ac_exeext
29680
if { (ac_try="$ac_link"
29681
case "(($ac_try" in
29682
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29683
  *) ac_try_echo=$ac_try;;
29684
esac
216 andreas 29685
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29686
$as_echo "$ac_try_echo") >&5
88 andreas 29687
  (eval "$ac_link") 2>conftest.er1
29688
  ac_status=$?
29689
  grep -v '^ *+' conftest.er1 >conftest.err
29690
  rm -f conftest.er1
29691
  cat conftest.err >&5
216 andreas 29692
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 29693
  (exit $ac_status); } && {
29694
	 test -z "$ac_c_werror_flag" ||
29695
	 test ! -s conftest.err
216 andreas 29696
       } && test -s conftest$ac_exeext && {
29697
	 test "$cross_compiling" = yes ||
29698
	 $as_test_x conftest$ac_exeext
29699
       }; then
88 andreas 29700
  kde_cv_have_libXext=yes
29701
else
216 andreas 29702
  $as_echo "$as_me: failed program was:" >&5
88 andreas 29703
sed 's/^/| /' conftest.$ac_ext >&5
29704
 
29705
	kde_cv_have_libXext=no
29706
 
29707
fi
29708
 
216 andreas 29709
rm -rf conftest.dSYM
88 andreas 29710
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29711
      conftest$ac_exeext conftest.$ac_ext
29712
 
29713
LDFLAGS=$kde_ldflags_safe
29714
LIBS=$kde_libs_safe
29715
 
29716
fi
29717
 
29718
 
216 andreas 29719
{ $as_echo "$as_me:$LINENO: result: $kde_cv_have_libXext" >&5
29720
$as_echo "$kde_cv_have_libXext" >&6; }
88 andreas 29721
 
29722
if test "$kde_cv_have_libXext" = "no"; then
216 andreas 29723
  { { $as_echo "$as_me:$LINENO: error: We need a working libXext to proceed. Since configure
88 andreas 29724
can't find it itself, we stop here assuming that make wouldn't find
29725
them either." >&5
216 andreas 29726
$as_echo "$as_me: error: We need a working libXext to proceed. Since configure
88 andreas 29727
can't find it itself, we stop here assuming that make wouldn't find
29728
them either." >&2;}
29729
   { (exit 1); exit 1; }; }
29730
fi
29731
 
29732
LIB_XEXT="-lXext"
29733
QTE_NORTTI=""
29734
 
29735
elif test "$kde_use_qt_emb" = "yes"; then
29736
    CPPFLAGS=-DQWS
29737
  CXXFLAGS="$CXXFLAGS -fno-rtti"
29738
  QTE_NORTTI="-fno-rtti -DQWS"
29739
  X_PRE_LIBS=""
29740
  LIB_X11=""
29741
  LIB_XEXT=""
29742
  LIB_XRENDER=""
29743
  LIBSM=""
29744
  X_INCLUDES=""
29745
  X_LDFLAGS=""
29746
  x_includes=""
29747
  x_libraries=""
29748
elif test "$kde_use_qt_mac" = "yes"; then
29749
      CXXFLAGS="$CXXFLAGS -DQT_MAC -no-cpp-precomp"
29750
  CFLAGS="$CFLAGS -DQT_MAC -no-cpp-precomp"
29751
  X_PRE_LIBS=""
29752
  LIB_X11=""
29753
  LIB_XEXT=""
29754
  LIB_XRENDER=""
29755
  LIBSM=""
29756
  X_INCLUDES=""
29757
  X_LDFLAGS=""
29758
  x_includes=""
29759
  x_libraries=""
29760
fi
29761
 
29762
 
29763
 
29764
 
29765
 
29766
 
29767
 
29768
 
29769
 
29770
 
29771
 
29772
 
29773
 
29774
                LIBPTHREAD=""
29775
 
29776
  if test -n "$PTHREAD_LIBS"; then
29777
    if test "x$PTHREAD_LIBS" = "x-pthread" ; then
29778
      LIBPTHREAD="PTHREAD"
29779
    else
29780
      PTHREAD_LIBS_save="$PTHREAD_LIBS"
29781
      PTHREAD_LIBS=`echo "$PTHREAD_LIBS_save" | sed -e 's,^-l,,g'`
216 andreas 29782
      { $as_echo "$as_me:$LINENO: checking for pthread_create in $PTHREAD_LIBS" >&5
29783
$as_echo_n "checking for pthread_create in $PTHREAD_LIBS... " >&6; }
88 andreas 29784
 
29785
     kde_save_LDFLAGS="$LDFLAGS"
29786
          kde_save_LIBS="$LIBS"
29787
     LDFLAGS="$LDFLAGS $all_libraries"
29788
     case $host_os in
29789
      aix*) LDFLAGS="-brtl $LDFLAGS"
29790
	test "$GCC" = yes && LDFLAGS="-Wl,$LDFLAGS"
29791
	;;
29792
     esac
216 andreas 29793
     as_ac_Lib=`$as_echo "ac_cv_lib_$PTHREAD_LIBS''_pthread_create" | $as_tr_sh`
29794
{ $as_echo "$as_me:$LINENO: checking for pthread_create in -l$PTHREAD_LIBS" >&5
29795
$as_echo_n "checking for pthread_create in -l$PTHREAD_LIBS... " >&6; }
88 andreas 29796
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
216 andreas 29797
  $as_echo_n "(cached) " >&6
88 andreas 29798
else
29799
  ac_check_lib_save_LIBS=$LIBS
29800
LIBS="-l$PTHREAD_LIBS  $LIBS"
29801
cat >conftest.$ac_ext <<_ACEOF
29802
/* confdefs.h.  */
29803
_ACEOF
29804
cat confdefs.h >>conftest.$ac_ext
29805
cat >>conftest.$ac_ext <<_ACEOF
29806
/* end confdefs.h.  */
29807
 
29808
/* Override any GCC internal prototype to avoid an error.
29809
   Use char because int might match the return type of a GCC
29810
   builtin and then its argument prototype would still apply.  */
29811
#ifdef __cplusplus
29812
extern "C"
29813
#endif
29814
char pthread_create ();
29815
int
29816
main ()
29817
{
29818
return pthread_create ();
29819
  ;
29820
  return 0;
29821
}
29822
_ACEOF
29823
rm -f conftest.$ac_objext conftest$ac_exeext
29824
if { (ac_try="$ac_link"
29825
case "(($ac_try" in
29826
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29827
  *) ac_try_echo=$ac_try;;
29828
esac
216 andreas 29829
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29830
$as_echo "$ac_try_echo") >&5
88 andreas 29831
  (eval "$ac_link") 2>conftest.er1
29832
  ac_status=$?
29833
  grep -v '^ *+' conftest.er1 >conftest.err
29834
  rm -f conftest.er1
29835
  cat conftest.err >&5
216 andreas 29836
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 29837
  (exit $ac_status); } && {
29838
	 test -z "$ac_c_werror_flag" ||
29839
	 test ! -s conftest.err
216 andreas 29840
       } && test -s conftest$ac_exeext && {
29841
	 test "$cross_compiling" = yes ||
29842
	 $as_test_x conftest$ac_exeext
29843
       }; then
88 andreas 29844
  eval "$as_ac_Lib=yes"
29845
else
216 andreas 29846
  $as_echo "$as_me: failed program was:" >&5
88 andreas 29847
sed 's/^/| /' conftest.$ac_ext >&5
29848
 
29849
	eval "$as_ac_Lib=no"
29850
fi
29851
 
216 andreas 29852
rm -rf conftest.dSYM
88 andreas 29853
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29854
      conftest$ac_exeext conftest.$ac_ext
29855
LIBS=$ac_check_lib_save_LIBS
29856
fi
216 andreas 29857
ac_res=`eval 'as_val=${'$as_ac_Lib'}
29858
		 $as_echo "$as_val"'`
29859
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29860
$as_echo "$ac_res" >&6; }
29861
as_val=`eval 'as_val=${'$as_ac_Lib'}
29862
		 $as_echo "$as_val"'`
29863
   if test "x$as_val" = x""yes; then
88 andreas 29864
  LIBPTHREAD="$PTHREAD_LIBS_save"
29865
fi
29866
 
29867
     LDFLAGS="$kde_save_LDFLAGS"
29868
     LIBS="$kde_save_LIBS"
29869
 
29870
      PTHREAD_LIBS="$PTHREAD_LIBS_save"
29871
    fi
29872
  fi
29873
 
29874
    if test -z "$LIBPTHREAD"; then
216 andreas 29875
    { $as_echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
29876
$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
88 andreas 29877
if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
216 andreas 29878
  $as_echo_n "(cached) " >&6
88 andreas 29879
else
29880
  ac_check_lib_save_LIBS=$LIBS
29881
LIBS="-lpthread  $LIBS"
29882
cat >conftest.$ac_ext <<_ACEOF
29883
/* confdefs.h.  */
29884
_ACEOF
29885
cat confdefs.h >>conftest.$ac_ext
29886
cat >>conftest.$ac_ext <<_ACEOF
29887
/* end confdefs.h.  */
29888
 
29889
/* Override any GCC internal prototype to avoid an error.
29890
   Use char because int might match the return type of a GCC
29891
   builtin and then its argument prototype would still apply.  */
29892
#ifdef __cplusplus
29893
extern "C"
29894
#endif
29895
char pthread_create ();
29896
int
29897
main ()
29898
{
29899
return pthread_create ();
29900
  ;
29901
  return 0;
29902
}
29903
_ACEOF
29904
rm -f conftest.$ac_objext conftest$ac_exeext
29905
if { (ac_try="$ac_link"
29906
case "(($ac_try" in
29907
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29908
  *) ac_try_echo=$ac_try;;
29909
esac
216 andreas 29910
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29911
$as_echo "$ac_try_echo") >&5
88 andreas 29912
  (eval "$ac_link") 2>conftest.er1
29913
  ac_status=$?
29914
  grep -v '^ *+' conftest.er1 >conftest.err
29915
  rm -f conftest.er1
29916
  cat conftest.err >&5
216 andreas 29917
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 29918
  (exit $ac_status); } && {
29919
	 test -z "$ac_c_werror_flag" ||
29920
	 test ! -s conftest.err
216 andreas 29921
       } && test -s conftest$ac_exeext && {
29922
	 test "$cross_compiling" = yes ||
29923
	 $as_test_x conftest$ac_exeext
29924
       }; then
88 andreas 29925
  ac_cv_lib_pthread_pthread_create=yes
29926
else
216 andreas 29927
  $as_echo "$as_me: failed program was:" >&5
88 andreas 29928
sed 's/^/| /' conftest.$ac_ext >&5
29929
 
29930
	ac_cv_lib_pthread_pthread_create=no
29931
fi
29932
 
216 andreas 29933
rm -rf conftest.dSYM
88 andreas 29934
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29935
      conftest$ac_exeext conftest.$ac_ext
29936
LIBS=$ac_check_lib_save_LIBS
29937
fi
216 andreas 29938
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
29939
$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
29940
if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then
88 andreas 29941
  LIBPTHREAD="-lpthread"
29942
fi
29943
 
29944
  fi
29945
 
29946
    if test -z "$LIBPTHREAD" ; then
216 andreas 29947
    { $as_echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
29948
$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
88 andreas 29949
    kde_safe_libs=$LIBS
29950
    LIBS="$LIBS -lpthread"
29951
    cat >conftest.$ac_ext <<_ACEOF
29952
/* confdefs.h.  */
29953
_ACEOF
29954
cat confdefs.h >>conftest.$ac_ext
29955
cat >>conftest.$ac_ext <<_ACEOF
29956
/* end confdefs.h.  */
29957
#include <pthread.h>
29958
int
29959
main ()
29960
{
29961
(void)pthread_create(0,0,0,0);
29962
  ;
29963
  return 0;
29964
}
29965
_ACEOF
29966
rm -f conftest.$ac_objext conftest$ac_exeext
29967
if { (ac_try="$ac_link"
29968
case "(($ac_try" in
29969
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29970
  *) ac_try_echo=$ac_try;;
29971
esac
216 andreas 29972
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29973
$as_echo "$ac_try_echo") >&5
88 andreas 29974
  (eval "$ac_link") 2>conftest.er1
29975
  ac_status=$?
29976
  grep -v '^ *+' conftest.er1 >conftest.err
29977
  rm -f conftest.er1
29978
  cat conftest.err >&5
216 andreas 29979
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 29980
  (exit $ac_status); } && {
29981
	 test -z "$ac_c_werror_flag" ||
29982
	 test ! -s conftest.err
216 andreas 29983
       } && test -s conftest$ac_exeext && {
29984
	 test "$cross_compiling" = yes ||
29985
	 $as_test_x conftest$ac_exeext
29986
       }; then
88 andreas 29987
 
216 andreas 29988
        { $as_echo "$as_me:$LINENO: result: yes" >&5
29989
$as_echo "yes" >&6; }
88 andreas 29990
        LIBPTHREAD="-lpthread"
29991
else
216 andreas 29992
  $as_echo "$as_me: failed program was:" >&5
88 andreas 29993
sed 's/^/| /' conftest.$ac_ext >&5
29994
 
29995
 
216 andreas 29996
	{ $as_echo "$as_me:$LINENO: result: no" >&5
29997
$as_echo "no" >&6; }
88 andreas 29998
fi
29999
 
216 andreas 30000
rm -rf conftest.dSYM
88 andreas 30001
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30002
      conftest$ac_exeext conftest.$ac_ext
30003
    LIBS=$kde_safe_libs
30004
  fi
30005
 
30006
    if test "x$LIBPTHREAD" = "xPTHREAD" ; then
30007
    LIBPTHREAD=""
30008
  fi
30009
 
30010
 
30011
 
30012
 
30013
      USE_THREADS=""
30014
      if test -z "$LIBPTHREAD"; then
30015
 
216 andreas 30016
{ $as_echo "$as_me:$LINENO: checking whether $CXX supports -pthread" >&5
30017
$as_echo_n "checking whether $CXX supports -pthread... " >&6; }
88 andreas 30018
kde_cache=`echo pthread | sed 'y% .=/+-,%____p__%'`
30019
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
216 andreas 30020
  $as_echo_n "(cached) " >&6
88 andreas 30021
else
30022
 
30023
 
30024
   ac_ext=cpp
30025
ac_cpp='$CXXCPP $CPPFLAGS'
30026
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30027
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30028
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30029
 
30030
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
30031
 
30032
 
30033
  save_CXXFLAGS="$CXXFLAGS"
30034
  CXXFLAGS="$CXXFLAGS -pthread"
30035
  cat >conftest.$ac_ext <<_ACEOF
30036
/* confdefs.h.  */
30037
_ACEOF
30038
cat confdefs.h >>conftest.$ac_ext
30039
cat >>conftest.$ac_ext <<_ACEOF
30040
/* end confdefs.h.  */
30041
 
30042
int
30043
main ()
30044
{
30045
 return 0;
30046
  ;
30047
  return 0;
30048
}
30049
_ACEOF
30050
rm -f conftest.$ac_objext conftest$ac_exeext
30051
if { (ac_try="$ac_link"
30052
case "(($ac_try" in
30053
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30054
  *) ac_try_echo=$ac_try;;
30055
esac
216 andreas 30056
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30057
$as_echo "$ac_try_echo") >&5
88 andreas 30058
  (eval "$ac_link") 2>conftest.er1
30059
  ac_status=$?
30060
  grep -v '^ *+' conftest.er1 >conftest.err
30061
  rm -f conftest.er1
30062
  cat conftest.err >&5
216 andreas 30063
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 30064
  (exit $ac_status); } && {
30065
	 test -z "$ac_cxx_werror_flag" ||
30066
	 test ! -s conftest.err
216 andreas 30067
       } && test -s conftest$ac_exeext && {
30068
	 test "$cross_compiling" = yes ||
30069
	 $as_test_x conftest$ac_exeext
30070
       }; then
88 andreas 30071
  eval "kde_cv_prog_cxx_$kde_cache=yes"
30072
else
216 andreas 30073
  $as_echo "$as_me: failed program was:" >&5
88 andreas 30074
sed 's/^/| /' conftest.$ac_ext >&5
30075
 
30076
 
30077
fi
30078
 
216 andreas 30079
rm -rf conftest.dSYM
88 andreas 30080
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30081
      conftest$ac_exeext conftest.$ac_ext
30082
  CXXFLAGS="$save_CXXFLAGS"
30083
  ac_ext=c
30084
ac_cpp='$CPP $CPPFLAGS'
30085
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30086
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30087
ac_compiler_gnu=$ac_cv_c_compiler_gnu
30088
 
30089
 
30090
fi
30091
 
30092
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
216 andreas 30093
 { $as_echo "$as_me:$LINENO: result: yes" >&5
30094
$as_echo "yes" >&6; }
88 andreas 30095
 :
30096
 USE_THREADS="-D_THREAD_SAFE -pthread"
30097
else
216 andreas 30098
 { $as_echo "$as_me:$LINENO: result: no" >&5
30099
$as_echo "no" >&6; }
88 andreas 30100
 :
30101
 
30102
fi
30103
 
30104
      fi
30105
 
30106
 
30107
 
30108
    case $host_os in
30109
 	solaris*)
30110
 
216 andreas 30111
{ $as_echo "$as_me:$LINENO: checking whether $CXX supports -mt" >&5
30112
$as_echo_n "checking whether $CXX supports -mt... " >&6; }
88 andreas 30113
kde_cache=`echo mt | sed 'y% .=/+-,%____p__%'`
30114
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
216 andreas 30115
  $as_echo_n "(cached) " >&6
88 andreas 30116
else
30117
 
30118
 
30119
   ac_ext=cpp
30120
ac_cpp='$CXXCPP $CPPFLAGS'
30121
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30122
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30123
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30124
 
30125
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
30126
 
30127
 
30128
  save_CXXFLAGS="$CXXFLAGS"
30129
  CXXFLAGS="$CXXFLAGS -mt"
30130
  cat >conftest.$ac_ext <<_ACEOF
30131
/* confdefs.h.  */
30132
_ACEOF
30133
cat confdefs.h >>conftest.$ac_ext
30134
cat >>conftest.$ac_ext <<_ACEOF
30135
/* end confdefs.h.  */
30136
 
30137
int
30138
main ()
30139
{
30140
 return 0;
30141
  ;
30142
  return 0;
30143
}
30144
_ACEOF
30145
rm -f conftest.$ac_objext conftest$ac_exeext
30146
if { (ac_try="$ac_link"
30147
case "(($ac_try" in
30148
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30149
  *) ac_try_echo=$ac_try;;
30150
esac
216 andreas 30151
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30152
$as_echo "$ac_try_echo") >&5
88 andreas 30153
  (eval "$ac_link") 2>conftest.er1
30154
  ac_status=$?
30155
  grep -v '^ *+' conftest.er1 >conftest.err
30156
  rm -f conftest.er1
30157
  cat conftest.err >&5
216 andreas 30158
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 30159
  (exit $ac_status); } && {
30160
	 test -z "$ac_cxx_werror_flag" ||
30161
	 test ! -s conftest.err
216 andreas 30162
       } && test -s conftest$ac_exeext && {
30163
	 test "$cross_compiling" = yes ||
30164
	 $as_test_x conftest$ac_exeext
30165
       }; then
88 andreas 30166
  eval "kde_cv_prog_cxx_$kde_cache=yes"
30167
else
216 andreas 30168
  $as_echo "$as_me: failed program was:" >&5
88 andreas 30169
sed 's/^/| /' conftest.$ac_ext >&5
30170
 
30171
 
30172
fi
30173
 
216 andreas 30174
rm -rf conftest.dSYM
88 andreas 30175
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30176
      conftest$ac_exeext conftest.$ac_ext
30177
  CXXFLAGS="$save_CXXFLAGS"
30178
  ac_ext=c
30179
ac_cpp='$CPP $CPPFLAGS'
30180
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30181
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30182
ac_compiler_gnu=$ac_cv_c_compiler_gnu
30183
 
30184
 
30185
fi
30186
 
30187
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
216 andreas 30188
 { $as_echo "$as_me:$LINENO: result: yes" >&5
30189
$as_echo "yes" >&6; }
88 andreas 30190
 :
30191
 USE_THREADS="-mt"
30192
else
216 andreas 30193
 { $as_echo "$as_me:$LINENO: result: no" >&5
30194
$as_echo "no" >&6; }
88 andreas 30195
 :
30196
 
30197
fi
30198
 
30199
                CPPFLAGS="$CPPFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DUSE_SOLARIS -DSVR4"
30200
    		;;
30201
        freebsd*)
30202
                CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE $PTHREAD_CFLAGS"
30203
                ;;
30204
        aix*)
30205
                CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE"
30206
                LIBPTHREAD="$LIBPTHREAD -lc_r"
30207
                ;;
30208
        linux*) CPPFLAGS="$CPPFLAGS -D_REENTRANT"
30209
                if test "$CXX" = "KCC"; then
30210
                  CXXFLAGS="$CXXFLAGS --thread_safe"
30211
		  NOOPT_CXXFLAGS="$NOOPT_CXXFLAGS --thread_safe"
30212
                fi
30213
                ;;
30214
	*)
30215
		;;
30216
    esac
30217
 
30218
 
30219
 
30220
 
216 andreas 30221
{ $as_echo "$as_me:$LINENO: checking for extra includes" >&5
30222
$as_echo_n "checking for extra includes... " >&6; }
88 andreas 30223
 
30224
# Check whether --with-extra-includes was given.
30225
if test "${with_extra_includes+set}" = set; then
30226
  withval=$with_extra_includes; kde_use_extra_includes="$withval"
30227
else
30228
  kde_use_extra_includes=NONE
30229
 
30230
fi
30231
 
30232
kde_extra_includes=
30233
if test -n "$kde_use_extra_includes" && \
30234
   test "$kde_use_extra_includes" != "NONE"; then
30235
 
30236
   ac_save_ifs=$IFS
30237
   IFS=':'
30238
   for dir in $kde_use_extra_includes; do
30239
     kde_extra_includes="$kde_extra_includes $dir"
30240
     USER_INCLUDES="$USER_INCLUDES -I$dir"
30241
   done
30242
   IFS=$ac_save_ifs
30243
   kde_use_extra_includes="added"
30244
else
30245
   kde_use_extra_includes="no"
30246
fi
30247
 
30248
 
216 andreas 30249
{ $as_echo "$as_me:$LINENO: result: $kde_use_extra_includes" >&5
30250
$as_echo "$kde_use_extra_includes" >&6; }
88 andreas 30251
 
30252
kde_extra_libs=
216 andreas 30253
{ $as_echo "$as_me:$LINENO: checking for extra libs" >&5
30254
$as_echo_n "checking for extra libs... " >&6; }
88 andreas 30255
 
30256
# Check whether --with-extra-libs was given.
30257
if test "${with_extra_libs+set}" = set; then
30258
  withval=$with_extra_libs; kde_use_extra_libs=$withval
30259
else
30260
  kde_use_extra_libs=NONE
30261
 
30262
fi
30263
 
30264
if test -n "$kde_use_extra_libs" && \
30265
   test "$kde_use_extra_libs" != "NONE"; then
30266
 
30267
   ac_save_ifs=$IFS
30268
   IFS=':'
30269
   for dir in $kde_use_extra_libs; do
30270
     kde_extra_libs="$kde_extra_libs $dir"
30271
     KDE_EXTRA_RPATH="$KDE_EXTRA_RPATH -R $dir"
30272
     USER_LDFLAGS="$USER_LDFLAGS -L$dir"
30273
   done
30274
   IFS=$ac_save_ifs
30275
   kde_use_extra_libs="added"
30276
else
30277
   kde_use_extra_libs="no"
30278
fi
30279
 
30280
 
30281
 
216 andreas 30282
{ $as_echo "$as_me:$LINENO: result: $kde_use_extra_libs" >&5
30283
$as_echo "$kde_use_extra_libs" >&6; }
88 andreas 30284
 
30285
 
30286
 
30287
 
216 andreas 30288
{ $as_echo "$as_me:$LINENO: checking for libz" >&5
30289
$as_echo_n "checking for libz... " >&6; }
88 andreas 30290
if test "${ac_cv_lib_z+set}" = set; then
216 andreas 30291
  $as_echo_n "(cached) " >&6
88 andreas 30292
else
30293
 
30294
kde_save_LIBS="$LIBS"
30295
LIBS="$all_libraries $USER_LDFLAGS -lz $LIBSOCKET"
30296
kde_save_CFLAGS="$CFLAGS"
30297
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
30298
cat >conftest.$ac_ext <<_ACEOF
30299
/* confdefs.h.  */
30300
_ACEOF
30301
cat confdefs.h >>conftest.$ac_ext
30302
cat >>conftest.$ac_ext <<_ACEOF
30303
/* end confdefs.h.  */
30304
 
30305
#include<zlib.h>
30306
 
30307
int
30308
main ()
30309
{
30310
 
30311
  char buf[42];
30312
  gzFile f = (gzFile) 0;
30313
  /* this would segfault.. but we only link, don't run */
30314
  (void) gzgets(f, buf, sizeof(buf));
30315
 
30316
  return (zlibVersion() == ZLIB_VERSION);
30317
 
30318
  ;
30319
  return 0;
30320
}
30321
_ACEOF
30322
rm -f conftest.$ac_objext conftest$ac_exeext
30323
if { (ac_try="$ac_link"
30324
case "(($ac_try" in
30325
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30326
  *) ac_try_echo=$ac_try;;
30327
esac
216 andreas 30328
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30329
$as_echo "$ac_try_echo") >&5
88 andreas 30330
  (eval "$ac_link") 2>conftest.er1
30331
  ac_status=$?
30332
  grep -v '^ *+' conftest.er1 >conftest.err
30333
  rm -f conftest.er1
30334
  cat conftest.err >&5
216 andreas 30335
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 30336
  (exit $ac_status); } && {
30337
	 test -z "$ac_c_werror_flag" ||
30338
	 test ! -s conftest.err
216 andreas 30339
       } && test -s conftest$ac_exeext && {
30340
	 test "$cross_compiling" = yes ||
30341
	 $as_test_x conftest$ac_exeext
30342
       }; then
88 andreas 30343
  eval "ac_cv_lib_z='-lz'"
30344
else
216 andreas 30345
  $as_echo "$as_me: failed program was:" >&5
88 andreas 30346
sed 's/^/| /' conftest.$ac_ext >&5
30347
 
30348
	eval "ac_cv_lib_z=no"
30349
fi
30350
 
216 andreas 30351
rm -rf conftest.dSYM
88 andreas 30352
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30353
      conftest$ac_exeext conftest.$ac_ext
30354
LIBS="$kde_save_LIBS"
30355
CFLAGS="$kde_save_CFLAGS"
30356
 
30357
fi
30358
if test ! "$ac_cv_lib_z" = no; then
30359
 
30360
cat >>confdefs.h <<_ACEOF
30361
#define HAVE_LIBZ 1
30362
_ACEOF
30363
 
30364
  LIBZ="$ac_cv_lib_z"
216 andreas 30365
  { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z" >&5
30366
$as_echo "$ac_cv_lib_z" >&6; }
88 andreas 30367
else
216 andreas 30368
  { { $as_echo "$as_me:$LINENO: error: not found.
88 andreas 30369
          Possibly configure picks up an outdated version
30370
          installed by XFree86. Remove it from your system.
30371
 
30372
          Check your installation and look into config.log" >&5
216 andreas 30373
$as_echo "$as_me: error: not found.
88 andreas 30374
          Possibly configure picks up an outdated version
30375
          installed by XFree86. Remove it from your system.
30376
 
30377
          Check your installation and look into config.log" >&2;}
30378
   { (exit 1); exit 1; }; }
30379
  LIBZ=""
30380
fi
30381
 
30382
 
30383
 
30384
 
30385
 
216 andreas 30386
{ $as_echo "$as_me:$LINENO: checking for libpng" >&5
30387
$as_echo_n "checking for libpng... " >&6; }
88 andreas 30388
if test "${ac_cv_lib_png+set}" = set; then
216 andreas 30389
  $as_echo_n "(cached) " >&6
88 andreas 30390
else
30391
 
30392
kde_save_LIBS="$LIBS"
30393
if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then
30394
LIBS="$LIBS $all_libraries $USER_LDFLAGS -lpng $LIBZ -lm -lX11 $LIBSOCKET"
30395
else
30396
LIBS="$LIBS $all_libraries $USER_LDFLAGS -lpng $LIBZ -lm"
30397
fi
30398
kde_save_CFLAGS="$CFLAGS"
30399
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
30400
 
30401
cat >conftest.$ac_ext <<_ACEOF
30402
/* confdefs.h.  */
30403
_ACEOF
30404
cat confdefs.h >>conftest.$ac_ext
30405
cat >>conftest.$ac_ext <<_ACEOF
30406
/* end confdefs.h.  */
30407
 
30408
    #include<png.h>
30409
 
30410
int
30411
main ()
30412
{
30413
 
30414
    png_structp png_ptr = png_create_read_struct(  /* image ptr */
30415
		PNG_LIBPNG_VER_STRING, 0, 0, 0 );
30416
    return( png_ptr != 0 );
30417
 
30418
  ;
30419
  return 0;
30420
}
30421
_ACEOF
30422
rm -f conftest.$ac_objext conftest$ac_exeext
30423
if { (ac_try="$ac_link"
30424
case "(($ac_try" in
30425
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30426
  *) ac_try_echo=$ac_try;;
30427
esac
216 andreas 30428
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30429
$as_echo "$ac_try_echo") >&5
88 andreas 30430
  (eval "$ac_link") 2>conftest.er1
30431
  ac_status=$?
30432
  grep -v '^ *+' conftest.er1 >conftest.err
30433
  rm -f conftest.er1
30434
  cat conftest.err >&5
216 andreas 30435
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 30436
  (exit $ac_status); } && {
30437
	 test -z "$ac_c_werror_flag" ||
30438
	 test ! -s conftest.err
216 andreas 30439
       } && test -s conftest$ac_exeext && {
30440
	 test "$cross_compiling" = yes ||
30441
	 $as_test_x conftest$ac_exeext
30442
       }; then
88 andreas 30443
  eval "ac_cv_lib_png='-lpng $LIBZ -lm'"
30444
else
216 andreas 30445
  $as_echo "$as_me: failed program was:" >&5
88 andreas 30446
sed 's/^/| /' conftest.$ac_ext >&5
30447
 
30448
	eval "ac_cv_lib_png=no"
30449
 
30450
fi
30451
 
216 andreas 30452
rm -rf conftest.dSYM
88 andreas 30453
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30454
      conftest$ac_exeext conftest.$ac_ext
30455
LIBS="$kde_save_LIBS"
30456
CFLAGS="$kde_save_CFLAGS"
30457
 
30458
fi
30459
if eval "test ! \"`echo $ac_cv_lib_png`\" = no"; then
30460
 
30461
cat >>confdefs.h <<_ACEOF
30462
#define HAVE_LIBPNG 1
30463
_ACEOF
30464
 
30465
  LIBPNG="$ac_cv_lib_png"
30466
 
216 andreas 30467
  { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png" >&5
30468
$as_echo "$ac_cv_lib_png" >&6; }
88 andreas 30469
else
216 andreas 30470
  { $as_echo "$as_me:$LINENO: result: no" >&5
30471
$as_echo "no" >&6; }
88 andreas 30472
  LIBPNG=""
30473
 
30474
fi
30475
 
30476
 
30477
 
216 andreas 30478
{ $as_echo "$as_me:$LINENO: checking for libjpeg6b" >&5
30479
$as_echo_n "checking for libjpeg6b... " >&6; }
88 andreas 30480
if test "${ac_cv_lib_jpeg_6b+set}" = set; then
216 andreas 30481
  $as_echo_n "(cached) " >&6
88 andreas 30482
else
30483
 
30484
ac_save_LIBS="$LIBS"
30485
LIBS="$all_libraries $USER_LDFLAGS -ljpeg6b -lm"
30486
ac_save_CFLAGS="$CFLAGS"
30487
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
30488
cat >conftest.$ac_ext <<_ACEOF
30489
/* confdefs.h.  */
30490
_ACEOF
30491
cat confdefs.h >>conftest.$ac_ext
30492
cat >>conftest.$ac_ext <<_ACEOF
30493
/* end confdefs.h.  */
30494
 
30495
#ifdef __cplusplus
30496
extern "C" {
30497
#endif
30498
void jpeg_CreateDecompress();
30499
#ifdef __cplusplus
30500
}
30501
#endif
30502
 
30503
int
30504
main ()
30505
{
30506
jpeg_CreateDecompress();
30507
  ;
30508
  return 0;
30509
}
30510
_ACEOF
30511
rm -f conftest.$ac_objext conftest$ac_exeext
30512
if { (ac_try="$ac_link"
30513
case "(($ac_try" in
30514
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30515
  *) ac_try_echo=$ac_try;;
30516
esac
216 andreas 30517
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30518
$as_echo "$ac_try_echo") >&5
88 andreas 30519
  (eval "$ac_link") 2>conftest.er1
30520
  ac_status=$?
30521
  grep -v '^ *+' conftest.er1 >conftest.err
30522
  rm -f conftest.er1
30523
  cat conftest.err >&5
216 andreas 30524
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 30525
  (exit $ac_status); } && {
30526
	 test -z "$ac_c_werror_flag" ||
30527
	 test ! -s conftest.err
216 andreas 30528
       } && test -s conftest$ac_exeext && {
30529
	 test "$cross_compiling" = yes ||
30530
	 $as_test_x conftest$ac_exeext
30531
       }; then
88 andreas 30532
  eval "ac_cv_lib_jpeg_6b=-ljpeg6b"
30533
else
216 andreas 30534
  $as_echo "$as_me: failed program was:" >&5
88 andreas 30535
sed 's/^/| /' conftest.$ac_ext >&5
30536
 
30537
	eval "ac_cv_lib_jpeg_6b=no"
30538
fi
30539
 
216 andreas 30540
rm -rf conftest.dSYM
88 andreas 30541
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30542
      conftest$ac_exeext conftest.$ac_ext
30543
LIBS="$ac_save_LIBS"
30544
CFLAGS="$ac_save_CFLAGS"
30545
 
30546
fi
30547
 
30548
 
30549
if eval "test ! \"`echo $ac_cv_lib_jpeg_6b`\" = no"; then
30550
  LIBJPEG="$ac_cv_lib_jpeg_6b"
216 andreas 30551
  { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_6b" >&5
30552
$as_echo "$ac_cv_lib_jpeg_6b" >&6; }
88 andreas 30553
else
216 andreas 30554
  { $as_echo "$as_me:$LINENO: result: no" >&5
30555
$as_echo "no" >&6; }
88 andreas 30556
 
216 andreas 30557
{ $as_echo "$as_me:$LINENO: checking for libjpeg" >&5
30558
$as_echo_n "checking for libjpeg... " >&6; }
88 andreas 30559
if test "${ac_cv_lib_jpeg_normal+set}" = set; then
216 andreas 30560
  $as_echo_n "(cached) " >&6
88 andreas 30561
else
30562
 
30563
ac_save_LIBS="$LIBS"
30564
LIBS="$all_libraries $USER_LDFLAGS -ljpeg -lm"
30565
ac_save_CFLAGS="$CFLAGS"
30566
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
30567
cat >conftest.$ac_ext <<_ACEOF
30568
/* confdefs.h.  */
30569
_ACEOF
30570
cat confdefs.h >>conftest.$ac_ext
30571
cat >>conftest.$ac_ext <<_ACEOF
30572
/* end confdefs.h.  */
30573
 
30574
#ifdef __cplusplus
30575
extern "C" {
30576
#endif
30577
void jpeg_CreateDecompress();
30578
#ifdef __cplusplus
30579
}
30580
#endif
30581
 
30582
int
30583
main ()
30584
{
30585
jpeg_CreateDecompress();
30586
  ;
30587
  return 0;
30588
}
30589
_ACEOF
30590
rm -f conftest.$ac_objext conftest$ac_exeext
30591
if { (ac_try="$ac_link"
30592
case "(($ac_try" in
30593
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30594
  *) ac_try_echo=$ac_try;;
30595
esac
216 andreas 30596
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30597
$as_echo "$ac_try_echo") >&5
88 andreas 30598
  (eval "$ac_link") 2>conftest.er1
30599
  ac_status=$?
30600
  grep -v '^ *+' conftest.er1 >conftest.err
30601
  rm -f conftest.er1
30602
  cat conftest.err >&5
216 andreas 30603
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 30604
  (exit $ac_status); } && {
30605
	 test -z "$ac_c_werror_flag" ||
30606
	 test ! -s conftest.err
216 andreas 30607
       } && test -s conftest$ac_exeext && {
30608
	 test "$cross_compiling" = yes ||
30609
	 $as_test_x conftest$ac_exeext
30610
       }; then
88 andreas 30611
  eval "ac_cv_lib_jpeg_normal=-ljpeg"
30612
else
216 andreas 30613
  $as_echo "$as_me: failed program was:" >&5
88 andreas 30614
sed 's/^/| /' conftest.$ac_ext >&5
30615
 
30616
	eval "ac_cv_lib_jpeg_normal=no"
30617
fi
30618
 
216 andreas 30619
rm -rf conftest.dSYM
88 andreas 30620
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30621
      conftest$ac_exeext conftest.$ac_ext
30622
LIBS="$ac_save_LIBS"
30623
CFLAGS="$ac_save_CFLAGS"
30624
 
30625
fi
30626
 
30627
 
30628
if eval "test ! \"`echo $ac_cv_lib_jpeg_normal`\" = no"; then
30629
  LIBJPEG="$ac_cv_lib_jpeg_normal"
216 andreas 30630
  { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_normal" >&5
30631
$as_echo "$ac_cv_lib_jpeg_normal" >&6; }
88 andreas 30632
else
216 andreas 30633
  { $as_echo "$as_me:$LINENO: result: no" >&5
30634
$as_echo "no" >&6; }
88 andreas 30635
 
30636
       LIBJPEG=
30637
 
30638
 
30639
fi
30640
 
30641
 
30642
 
30643
fi
30644
 
30645
 
30646
 
30647
jpeg_incdirs="$includedir /usr/include /usr/local/include $kde_extra_includes"
30648
 
30649
jpeg_incdir=NO
30650
for i in $jpeg_incdirs;
30651
do
30652
  for j in jpeglib.h;
30653
  do
216 andreas 30654
    echo "configure: 30654: $i/$j" >&5
88 andreas 30655
    if test -r "$i/$j"; then
30656
      echo "taking that" >&5
30657
      jpeg_incdir=$i
30658
      break 2
30659
    fi
30660
  done
30661
done
30662
 
30663
test "x$jpeg_incdir" = xNO && jpeg_incdir=
30664
 
30665
if test -n "$jpeg_incdir" && test -n "$LIBJPEG" ; then
30666
 
30667
cat >>confdefs.h <<_ACEOF
30668
#define HAVE_LIBJPEG 1
30669
_ACEOF
30670
 
30671
else
30672
  if test -n "$jpeg_incdir" || test -n "$LIBJPEG" ; then
216 andreas 30673
    { $as_echo "$as_me:$LINENO: WARNING:
88 andreas 30674
There is an installation error in jpeg support. You seem to have only one
30675
of either the headers _or_ the libraries installed. You may need to either
30676
provide correct --with-extra-... options, or the development package of
30677
libjpeg6b. You can get a source package of libjpeg from http://www.ijg.org/
30678
Disabling JPEG support.
30679
" >&5
216 andreas 30680
$as_echo "$as_me: WARNING:
88 andreas 30681
There is an installation error in jpeg support. You seem to have only one
30682
of either the headers _or_ the libraries installed. You may need to either
30683
provide correct --with-extra-... options, or the development package of
30684
libjpeg6b. You can get a source package of libjpeg from http://www.ijg.org/
30685
Disabling JPEG support.
30686
" >&2;}
30687
  else
216 andreas 30688
    { $as_echo "$as_me:$LINENO: WARNING: libjpeg not found. disable JPEG support." >&5
30689
$as_echo "$as_me: WARNING: libjpeg not found. disable JPEG support." >&2;}
88 andreas 30690
  fi
30691
  jpeg_incdir=
30692
  LIBJPEG=
30693
fi
30694
 
30695
 
30696
 
30697
 
30698
 
30699
 
30700
 
216 andreas 30701
   { $as_echo "$as_me:$LINENO: checking for perl" >&5
30702
$as_echo_n "checking for perl... " >&6; }
88 andreas 30703
   if test -n "$PERL"; then
30704
        kde_cv_path="$PERL";
30705
   else
30706
        kde_cache=`echo perl | sed 'y%./+-%__p_%'`
30707
 
30708
        if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
216 andreas 30709
  $as_echo_n "(cached) " >&6
88 andreas 30710
else
30711
 
30712
        kde_cv_path="NONE"
30713
	kde_save_IFS=$IFS
30714
	IFS=':'
30715
	dirs=""
30716
	for dir in $PATH; do
30717
	  dirs="$dirs $dir"
30718
	done
30719
	if test -z ""; then  	  dirs="$bindir $exec_prefix/bin $prefix/bin $dirs"
30720
        else  	  dirs="$dirs $bindir $exec_prefix/bin $prefix/bin"
30721
	fi
30722
	IFS=$kde_save_IFS
30723
 
30724
        for dir in $dirs; do
30725
	  if test -x "$dir/perl"; then
30726
	    if test -n ""
30727
	    then
30728
              evalstr="$dir/perl  2>&1 "
30729
	      if eval $evalstr; then
30730
                kde_cv_path="$dir/perl"
30731
                break
30732
	      fi
30733
            else
30734
		kde_cv_path="$dir/perl"
30735
                break
30736
	    fi
30737
          fi
30738
        done
30739
 
30740
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
30741
 
30742
 
30743
fi
30744
 
30745
 
30746
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
30747
 
30748
   fi
30749
 
30750
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
216 andreas 30751
      { $as_echo "$as_me:$LINENO: result: not found" >&5
30752
$as_echo "not found" >&6; }
88 andreas 30753
 
216 andreas 30754
		    { { $as_echo "$as_me:$LINENO: error: No Perl found in your $PATH.
88 andreas 30755
We need perl to generate some code." >&5
216 andreas 30756
$as_echo "$as_me: error: No Perl found in your $PATH.
88 andreas 30757
We need perl to generate some code." >&2;}
30758
   { (exit 1); exit 1; }; }
30759
 
30760
   else
216 andreas 30761
      { $as_echo "$as_me:$LINENO: result: $kde_cv_path" >&5
30762
$as_echo "$kde_cv_path" >&6; }
88 andreas 30763
      PERL=$kde_cv_path
30764
 
30765
   fi
30766
 
30767
 
30768
 
30769
 
30770
 
30771
 
30772
 
30773
 
30774
 
30775
 
30776
# Check whether --enable-mt was given.
30777
if test "${enable_mt+set}" = set; then
30778
  enableval=$enable_mt; kde_use_qt_mt=$enableval
30779
else
30780
 
30781
    if test $kde_qtver = 3; then
30782
      kde_use_qt_mt=yes
30783
    else
30784
      kde_use_qt_mt=no
30785
    fi
30786
 
30787
 
30788
fi
30789
 
30790
 
30791
USING_QT_MT=""
30792
 
30793
 
30794
KDE_MT_LDFLAGS=
30795
KDE_MT_LIBS=
30796
if test "x$kde_use_qt_mt" = "xyes"; then
30797
 
30798
 
30799
 
30800
    if test -z "$LIBPTHREAD"; then
30801
    if test -z "$USE_THREADS"; then
30802
      kde_check_threading_default=no
30803
    else
30804
      kde_check_threading_default=yes
30805
    fi
30806
  else
30807
    kde_check_threading_default=yes
30808
  fi
30809
  # Check whether --enable-threading was given.
30810
if test "${enable_threading+set}" = set; then
30811
  enableval=$enable_threading; kde_use_threading=$enableval
30812
else
30813
  kde_use_threading=$kde_check_threading_default
30814
fi
30815
 
30816
  if test "x$kde_use_threading" = "xyes"; then
30817
 
30818
cat >>confdefs.h <<\_ACEOF
30819
#define HAVE_LIBPTHREAD 1
30820
_ACEOF
30821
 
30822
  fi
30823
 
30824
  if test "x$kde_use_threading" = "xyes"; then
30825
    CPPFLAGS="$USE_THREADS -DQT_THREAD_SUPPORT $CPPFLAGS"
30826
    KDE_MT_LDFLAGS="$USE_THREADS"
30827
    KDE_MT_LIBS="$LIBPTHREAD"
30828
  else
30829
    kde_use_qt_mt=no
30830
  fi
30831
fi
30832
 
30833
 
30834
 
30835
kde_qt_was_given=yes
30836
 
30837
if test -z "$LIBQT_GLOB"; then
30838
  if test "x$kde_use_qt_emb" = "xyes"; then
30839
    LIBQT_GLOB="libqte.*"
30840
  else
30841
    LIBQT_GLOB="libqt.*"
30842
  fi
30843
fi
30844
 
30845
if test "x$kde_use_qt_emb" = "xyes"; then
30846
  qtlib="qte"
30847
else
30848
  qtlib="qt"
30849
fi
30850
 
30851
kde_int_qt="-l$qtlib"
30852
 
30853
if test -z "$LIBQPE"; then
30854
  if test "x$kde_use_qt_emb" = "xyes"; then
30855
    if test "x$kde_use_qt_emb_palm" = "xyes"; then
30856
      LIB_QPE="-lqpe"
30857
    else
30858
      LIB_QPE=""
30859
    fi
30860
  else
30861
    LIB_QPE=""
30862
  fi
30863
fi
30864
 
30865
 
30866
if test "x$kde_use_qt_mt" = "xyes"; then
30867
  LIBQT="-l$qtlib-mt"
30868
  kde_int_qt="-l$qtlib-mt"
30869
  LIBQT_GLOB="lib$qtlib-mt.*"
30870
  USING_QT_MT="using -mt"
30871
else
30872
  LIBQT="-l$qtlib"
30873
fi
30874
 
30875
if test $kde_qtver != 1; then
30876
 
30877
 
30878
 
30879
  LIBQT="$LIBQT $LIBPNG $LIBJPEG"
30880
fi
30881
 
30882
if test $kde_qtver = 3; then
30883
 
30884
  LIBQT="$LIBQT $LIBDL"
30885
fi
30886
 
216 andreas 30887
{ $as_echo "$as_me:$LINENO: checking for Qt" >&5
30888
$as_echo_n "checking for Qt... " >&6; }
88 andreas 30889
 
30890
if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then
30891
LIBQT="$LIBQT $X_PRE_LIBS -lXext -lX11 $LIBSM $LIBSOCKET"
30892
fi
30893
ac_qt_includes=NO ac_qt_libraries=NO ac_qt_bindir=NO
30894
qt_libraries=""
30895
qt_includes=""
30896
 
30897
# Check whether --with-qt-dir was given.
30898
if test "${with_qt_dir+set}" = set; then
30899
  withval=$with_qt_dir;   ac_qt_includes="$withval"/include
30900
       ac_qt_libraries="$withval"/lib${kdelibsuff}
30901
       ac_qt_bindir="$withval"/bin
30902
 
30903
fi
30904
 
30905
 
30906
 
30907
# Check whether --with-qt-includes was given.
30908
if test "${with_qt_includes+set}" = set; then
30909
  withval=$with_qt_includes;
30910
       ac_qt_includes="$withval"
30911
 
30912
fi
30913
 
30914
 
30915
kde_qt_libs_given=no
30916
 
30917
 
30918
# Check whether --with-qt-libraries was given.
30919
if test "${with_qt_libraries+set}" = set; then
30920
  withval=$with_qt_libraries;   ac_qt_libraries="$withval"
30921
       kde_qt_libs_given=yes
30922
 
30923
fi
30924
 
30925
 
30926
if test "${ac_cv_have_qt+set}" = set; then
216 andreas 30927
  $as_echo_n "(cached) " >&6
88 andreas 30928
else
30929
  #try to guess Qt locations
30930
 
30931
qt_incdirs=""
30932
for dir in $kde_qt_dirs; do
30933
   qt_incdirs="$qt_incdirs $dir/include $dir"
30934
done
30935
qt_incdirs="$QTINC $qt_incdirs /usr/local/qt/include /usr/include/qt /usr/include /usr/X11R6/include/X11/qt /usr/X11R6/include/qt /usr/X11R6/include/qt2 /usr/include/qt3 $x_includes"
30936
if test ! "$ac_qt_includes" = "NO"; then
30937
   qt_incdirs="$ac_qt_includes $qt_incdirs"
30938
fi
30939
 
30940
if test "$kde_qtver" != "1"; then
30941
  kde_qt_header=qstyle.h
30942
else
30943
  kde_qt_header=qglobal.h
30944
fi
30945
 
30946
 
30947
qt_incdir=NO
30948
for i in $qt_incdirs;
30949
do
30950
  for j in $kde_qt_header;
30951
  do
216 andreas 30952
    echo "configure: 30952: $i/$j" >&5
88 andreas 30953
    if test -r "$i/$j"; then
30954
      echo "taking that" >&5
30955
      qt_incdir=$i
30956
      break 2
30957
    fi
30958
  done
30959
done
30960
 
30961
ac_qt_includes="$qt_incdir"
30962
 
30963
qt_libdirs=""
30964
for dir in $kde_qt_dirs; do
30965
   qt_libdirs="$qt_libdirs $dir/lib${kdelibsuff} $dir"
30966
done
30967
qt_libdirs="$QTLIB $qt_libdirs /usr/X11R6/lib /usr/lib /usr/local/qt/lib $x_libraries"
30968
if test ! "$ac_qt_libraries" = "NO"; then
30969
  qt_libdir=$ac_qt_libraries
30970
else
30971
  qt_libdirs="$ac_qt_libraries $qt_libdirs"
30972
  # if the Qt was given, the chance is too big that libqt.* doesn't exist
30973
  qt_libdir=NONE
30974
  for dir in $qt_libdirs; do
30975
    try="ls -1 $dir/${LIBQT_GLOB}"
30976
    if test -n "`$try 2> /dev/null`"; then qt_libdir=$dir; break; else echo "tried $dir" >&5 ; fi
30977
  done
30978
fi
30979
for a in $qt_libdir/lib`echo ${kde_int_qt} | sed 's,^-l,,'`_incremental.*; do
30980
  if test -e "$a"; then
30981
    LIBQT="$LIBQT ${kde_int_qt}_incremental"
30982
    break
30983
  fi
30984
done
30985
 
30986
ac_qt_libraries="$qt_libdir"
30987
 
30988
 
30989
 ac_ext=cpp
30990
ac_cpp='$CXXCPP $CPPFLAGS'
30991
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30992
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30993
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30994
 
30995
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
30996
 
30997
 
30998
 
30999
ac_cxxflags_safe="$CXXFLAGS"
31000
ac_ldflags_safe="$LDFLAGS"
31001
ac_libs_safe="$LIBS"
31002
 
31003
CXXFLAGS="$CXXFLAGS -I$qt_incdir $all_includes"
31004
LDFLAGS="$LDFLAGS -L$qt_libdir $all_libraries $USER_LDFLAGS $KDE_MT_LDFLAGS"
31005
LIBS="$LIBS $LIBQT $KDE_MT_LIBS"
31006
 
31007
 
31008
 
31009
cat > conftest.$ac_ext <<EOF
31010
#include "confdefs.h"
31011
#include <qglobal.h>
31012
#include <qapplication.h>
31013
EOF
31014
if test "$kde_qtver" = "2"; then
31015
cat >> conftest.$ac_ext <<EOF
31016
#include <qevent.h>
31017
#include <qstring.h>
31018
#include <qstyle.h>
31019
EOF
31020
 
31021
if test $kde_qtsubver -gt 0; then
31022
cat >> conftest.$ac_ext <<EOF
31023
#if QT_VERSION < 210
31024
#error 1
31025
#endif
31026
EOF
31027
fi
31028
fi
31029
 
31030
if test "$kde_qtver" = "3"; then
31031
cat >> conftest.$ac_ext <<EOF
31032
#include <qcursor.h>
31033
#include <qstylefactory.h>
31034
#include <private/qucomextra_p.h>
31035
EOF
31036
fi
31037
 
31038
echo "#if ! ($kde_qt_verstring)" >> conftest.$ac_ext
31039
cat >> conftest.$ac_ext <<EOF
31040
#error 1
31041
#endif
31042
 
31043
int main() {
31044
EOF
31045
if test "$kde_qtver" = "2"; then
31046
cat >> conftest.$ac_ext <<EOF
31047
    QStringList *t = new QStringList();
31048
    Q_UNUSED(t);
31049
EOF
31050
if test $kde_qtsubver -gt 0; then
31051
cat >> conftest.$ac_ext <<EOF
31052
    QString s;
31053
    s.setLatin1("Elvis is alive", 14);
31054
EOF
31055
fi
31056
fi
31057
if test "$kde_qtver" = "3"; then
31058
cat >> conftest.$ac_ext <<EOF
31059
    (void)QStyleFactory::create(QString::null);
31060
    QCursor c(Qt::WhatsThisCursor);
31061
EOF
31062
fi
31063
cat >> conftest.$ac_ext <<EOF
31064
    return 0;
31065
}
31066
EOF
31067
 
31068
 
31069
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31070
  (eval $ac_link) 2>&5
31071
  ac_status=$?
216 andreas 31072
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 31073
  (exit $ac_status); } && test -s conftest; then
31074
  rm -f conftest*
31075
else
31076
  echo "configure: failed program was:" >&5
31077
  cat conftest.$ac_ext >&5
31078
  ac_qt_libraries="NO"
31079
fi
31080
rm -f conftest*
31081
CXXFLAGS="$ac_cxxflags_safe"
31082
LDFLAGS="$ac_ldflags_safe"
31083
LIBS="$ac_libs_safe"
31084
 
31085
ac_ext=c
31086
ac_cpp='$CPP $CPPFLAGS'
31087
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31088
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31089
ac_compiler_gnu=$ac_cv_c_compiler_gnu
31090
 
31091
if test "$ac_qt_includes" = NO || test "$ac_qt_libraries" = NO; then
31092
  ac_cv_have_qt="have_qt=no"
31093
  ac_qt_notfound=""
31094
  missing_qt_mt=""
31095
  if test "$ac_qt_includes" = NO; then
31096
    if test "$ac_qt_libraries" = NO; then
31097
      ac_qt_notfound="(headers and libraries)";
31098
    else
31099
      ac_qt_notfound="(headers)";
31100
    fi
31101
  else
31102
    if test "x$kde_use_qt_mt" = "xyes"; then
31103
       missing_qt_mt="
31104
Make sure that you have compiled Qt with thread support!"
31105
       ac_qt_notfound="(library $qtlib-mt)";
31106
    else
31107
       ac_qt_notfound="(library $qtlib)";
31108
    fi
31109
  fi
31110
 
216 andreas 31111
  { { $as_echo "$as_me:$LINENO: error: Qt ($kde_qt_minversion) $ac_qt_notfound not found. Please check your installation!
88 andreas 31112
For more details about this problem, look at the end of config.log.$missing_qt_mt" >&5
216 andreas 31113
$as_echo "$as_me: error: Qt ($kde_qt_minversion) $ac_qt_notfound not found. Please check your installation!
88 andreas 31114
For more details about this problem, look at the end of config.log.$missing_qt_mt" >&2;}
31115
   { (exit 1); exit 1; }; }
31116
else
31117
  have_qt="yes"
31118
fi
31119
 
31120
fi
31121
 
31122
 
31123
eval "$ac_cv_have_qt"
31124
 
31125
if test "$have_qt" != yes; then
216 andreas 31126
  { $as_echo "$as_me:$LINENO: result: $have_qt" >&5
31127
$as_echo "$have_qt" >&6; };
88 andreas 31128
else
31129
  ac_cv_have_qt="have_qt=yes \
31130
    ac_qt_includes=$ac_qt_includes ac_qt_libraries=$ac_qt_libraries"
216 andreas 31131
  { $as_echo "$as_me:$LINENO: result: libraries $ac_qt_libraries, headers $ac_qt_includes $USING_QT_MT" >&5
31132
$as_echo "libraries $ac_qt_libraries, headers $ac_qt_includes $USING_QT_MT" >&6; }
88 andreas 31133
 
31134
  qt_libraries="$ac_qt_libraries"
31135
  qt_includes="$ac_qt_includes"
31136
fi
31137
 
31138
if test ! "$kde_qt_libs_given" = "yes" && test ! "$kde_qtver" = 3; then
31139
 
31140
 
216 andreas 31141
{ $as_echo "$as_me:$LINENO: checking if Qt compiles without flags" >&5
31142
$as_echo_n "checking if Qt compiles without flags... " >&6; }
88 andreas 31143
if test "${kde_cv_qt_direct+set}" = set; then
216 andreas 31144
  $as_echo_n "(cached) " >&6
88 andreas 31145
else
31146
 
31147
 
31148
 ac_ext=cpp
31149
ac_cpp='$CXXCPP $CPPFLAGS'
31150
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31151
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31152
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31153
 
31154
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
31155
 
31156
 
31157
ac_LD_LIBRARY_PATH_safe=$LD_LIBRARY_PATH
31158
ac_LIBRARY_PATH="$LIBRARY_PATH"
31159
ac_cxxflags_safe="$CXXFLAGS"
31160
ac_ldflags_safe="$LDFLAGS"
31161
ac_libs_safe="$LIBS"
31162
 
31163
CXXFLAGS="$CXXFLAGS -I$qt_includes"
31164
LDFLAGS="$LDFLAGS $X_LDFLAGS"
31165
if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then
31166
LIBS="$LIBQT -lXext -lX11 $LIBSOCKET"
31167
else
31168
LIBS="$LIBQT $LIBSOCKET"
31169
fi
31170
LD_LIBRARY_PATH=
31171
export LD_LIBRARY_PATH
31172
LIBRARY_PATH=
31173
export LIBRARY_PATH
31174
 
31175
 
31176
 
31177
cat > conftest.$ac_ext <<EOF
31178
#include "confdefs.h"
31179
#include <qglobal.h>
31180
#include <qapplication.h>
31181
EOF
31182
if test "$kde_qtver" = "2"; then
31183
cat >> conftest.$ac_ext <<EOF
31184
#include <qevent.h>
31185
#include <qstring.h>
31186
#include <qstyle.h>
31187
EOF
31188
 
31189
if test $kde_qtsubver -gt 0; then
31190
cat >> conftest.$ac_ext <<EOF
31191
#if QT_VERSION < 210
31192
#error 1
31193
#endif
31194
EOF
31195
fi
31196
fi
31197
 
31198
if test "$kde_qtver" = "3"; then
31199
cat >> conftest.$ac_ext <<EOF
31200
#include <qcursor.h>
31201
#include <qstylefactory.h>
31202
#include <private/qucomextra_p.h>
31203
EOF
31204
fi
31205
 
31206
echo "#if ! ($kde_qt_verstring)" >> conftest.$ac_ext
31207
cat >> conftest.$ac_ext <<EOF
31208
#error 1
31209
#endif
31210
 
31211
int main() {
31212
EOF
31213
if test "$kde_qtver" = "2"; then
31214
cat >> conftest.$ac_ext <<EOF
31215
    QStringList *t = new QStringList();
31216
    Q_UNUSED(t);
31217
EOF
31218
if test $kde_qtsubver -gt 0; then
31219
cat >> conftest.$ac_ext <<EOF
31220
    QString s;
31221
    s.setLatin1("Elvis is alive", 14);
31222
EOF
31223
fi
31224
fi
31225
if test "$kde_qtver" = "3"; then
31226
cat >> conftest.$ac_ext <<EOF
31227
    (void)QStyleFactory::create(QString::null);
31228
    QCursor c(Qt::WhatsThisCursor);
31229
EOF
31230
fi
31231
cat >> conftest.$ac_ext <<EOF
31232
    return 0;
31233
}
31234
EOF
31235
 
31236
 
31237
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31238
  (eval $ac_link) 2>&5
31239
  ac_status=$?
216 andreas 31240
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 31241
  (exit $ac_status); } && test -s conftest; then
31242
  kde_cv_qt_direct="yes"
31243
else
31244
  kde_cv_qt_direct="no"
31245
  echo "configure: failed program was:" >&5
31246
  cat conftest.$ac_ext >&5
31247
fi
31248
 
31249
rm -f conftest*
31250
CXXFLAGS="$ac_cxxflags_safe"
31251
LDFLAGS="$ac_ldflags_safe"
31252
LIBS="$ac_libs_safe"
31253
 
31254
LD_LIBRARY_PATH="$ac_LD_LIBRARY_PATH_safe"
31255
export LD_LIBRARY_PATH
31256
LIBRARY_PATH="$ac_LIBRARY_PATH"
31257
export LIBRARY_PATH
31258
ac_ext=c
31259
ac_cpp='$CPP $CPPFLAGS'
31260
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31261
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31262
ac_compiler_gnu=$ac_cv_c_compiler_gnu
31263
 
31264
 
31265
fi
31266
 
31267
 
31268
if test "$kde_cv_qt_direct" = "yes"; then
216 andreas 31269
  { $as_echo "$as_me:$LINENO: result: yes" >&5
31270
$as_echo "yes" >&6; }
88 andreas 31271
  qt_libraries=
31272
else
216 andreas 31273
  { $as_echo "$as_me:$LINENO: result: no" >&5
31274
$as_echo "no" >&6; }
88 andreas 31275
 
31276
fi
31277
 
31278
fi
31279
 
31280
 
31281
 
31282
 
31283
if test "$qt_includes" = "$x_includes" || test -z "$qt_includes"; then
31284
 QT_INCLUDES=""
31285
else
31286
 QT_INCLUDES="-I$qt_includes"
31287
 all_includes="$QT_INCLUDES $all_includes"
31288
fi
31289
 
31290
if test "$qt_libraries" = "$x_libraries" || test -z "$qt_libraries"; then
31291
 QT_LDFLAGS=""
31292
else
31293
 QT_LDFLAGS="-L$qt_libraries"
31294
 all_libraries="$QT_LDFLAGS $all_libraries"
31295
fi
31296
test -z "$KDE_MT_LDFLAGS" || all_libraries="$all_libraries $KDE_MT_LDFLAGS"
31297
 
31298
 
31299
 
31300
 
31301
 
31302
   qt_bindirs=""
31303
   for dir in $kde_qt_dirs; do
31304
      qt_bindirs="$qt_bindirs $dir/bin $dir/src/moc"
31305
   done
31306
   qt_bindirs="$qt_bindirs /usr/bin /usr/X11R6/bin /usr/local/qt/bin"
31307
   if test ! "$ac_qt_bindir" = "NO"; then
31308
      qt_bindirs="$ac_qt_bindir $qt_bindirs"
31309
   fi
31310
 
31311
 
216 andreas 31312
   { $as_echo "$as_me:$LINENO: checking for moc" >&5
31313
$as_echo_n "checking for moc... " >&6; }
88 andreas 31314
   if test -n "$MOC"; then
31315
        kde_cv_path="$MOC";
31316
   else
31317
        kde_cache=`echo moc | sed 'y%./+-%__p_%'`
31318
 
31319
        if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
216 andreas 31320
  $as_echo_n "(cached) " >&6
88 andreas 31321
else
31322
 
31323
        kde_cv_path="NONE"
31324
	kde_save_IFS=$IFS
31325
	IFS=':'
31326
	dirs=""
31327
	for dir in $PATH; do
31328
	  dirs="$dirs $dir"
31329
	done
31330
	if test -z ""; then  	  dirs="$qt_bindirs $dirs"
31331
        else  	  dirs="$dirs $qt_bindirs"
31332
	fi
31333
	IFS=$kde_save_IFS
31334
 
31335
        for dir in $dirs; do
31336
	  if test -x "$dir/moc"; then
31337
	    if test -n ""
31338
	    then
31339
              evalstr="$dir/moc  2>&1 "
31340
	      if eval $evalstr; then
31341
                kde_cv_path="$dir/moc"
31342
                break
31343
	      fi
31344
            else
31345
		kde_cv_path="$dir/moc"
31346
                break
31347
	    fi
31348
          fi
31349
        done
31350
 
31351
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
31352
 
31353
 
31354
fi
31355
 
31356
 
31357
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
31358
 
31359
   fi
31360
 
31361
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
216 andreas 31362
      { $as_echo "$as_me:$LINENO: result: not found" >&5
31363
$as_echo "not found" >&6; }
88 andreas 31364
 
216 andreas 31365
    { { $as_echo "$as_me:$LINENO: error: No Qt meta object compiler (moc) found!
88 andreas 31366
Please check whether you installed Qt correctly.
31367
You need to have a running moc binary.
31368
configure tried to run $ac_cv_path_moc and the test didn't
31369
succeed. If configure shouldn't have tried this one, set
31370
the environment variable MOC to the right one before running
31371
configure.
31372
" >&5
216 andreas 31373
$as_echo "$as_me: error: No Qt meta object compiler (moc) found!
88 andreas 31374
Please check whether you installed Qt correctly.
31375
You need to have a running moc binary.
31376
configure tried to run $ac_cv_path_moc and the test didn't
31377
succeed. If configure shouldn't have tried this one, set
31378
the environment variable MOC to the right one before running
31379
configure.
31380
" >&2;}
31381
   { (exit 1); exit 1; }; }
31382
 
31383
   else
216 andreas 31384
      { $as_echo "$as_me:$LINENO: result: $kde_cv_path" >&5
31385
$as_echo "$kde_cv_path" >&6; }
88 andreas 31386
      MOC=$kde_cv_path
31387
 
31388
   fi
31389
 
31390
   if test -z "$UIC_NOT_NEEDED"; then
31391
 
216 andreas 31392
   { $as_echo "$as_me:$LINENO: checking for uic" >&5
31393
$as_echo_n "checking for uic... " >&6; }
88 andreas 31394
   if test -n "$UIC_PATH"; then
31395
        kde_cv_path="$UIC_PATH";
31396
   else
31397
        kde_cache=`echo uic | sed 'y%./+-%__p_%'`
31398
 
31399
        if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
216 andreas 31400
  $as_echo_n "(cached) " >&6
88 andreas 31401
else
31402
 
31403
        kde_cv_path="NONE"
31404
	kde_save_IFS=$IFS
31405
	IFS=':'
31406
	dirs=""
31407
	for dir in $PATH; do
31408
	  dirs="$dirs $dir"
31409
	done
31410
	if test -z ""; then  	  dirs="$qt_bindirs $dirs"
31411
        else  	  dirs="$dirs $qt_bindirs"
31412
	fi
31413
	IFS=$kde_save_IFS
31414
 
31415
        for dir in $dirs; do
31416
	  if test -x "$dir/uic"; then
31417
	    if test -n ""
31418
	    then
31419
              evalstr="$dir/uic  2>&1 "
31420
	      if eval $evalstr; then
31421
                kde_cv_path="$dir/uic"
31422
                break
31423
	      fi
31424
            else
31425
		kde_cv_path="$dir/uic"
31426
                break
31427
	    fi
31428
          fi
31429
        done
31430
 
31431
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
31432
 
31433
 
31434
fi
31435
 
31436
 
31437
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
31438
 
31439
   fi
31440
 
31441
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
216 andreas 31442
      { $as_echo "$as_me:$LINENO: result: not found" >&5
31443
$as_echo "not found" >&6; }
88 andreas 31444
      UIC_PATH=""
31445
   else
216 andreas 31446
      { $as_echo "$as_me:$LINENO: result: $kde_cv_path" >&5
31447
$as_echo "$kde_cv_path" >&6; }
88 andreas 31448
      UIC_PATH=$kde_cv_path
31449
 
31450
   fi
31451
 
31452
     if test -z "$UIC_PATH" ; then
31453
 
216 andreas 31454
    { $as_echo "$as_me:$LINENO: WARNING: No Qt ui compiler (uic) found!
88 andreas 31455
Please check whether you installed Qt correctly.
31456
You need to have a running uic binary.
31457
configure tried to run $ac_cv_path_uic and the test didn't
31458
succeed. If configure shouldn't have tried this one, set
31459
the environment variable UIC to the right one before running
31460
configure.
31461
" >&5
216 andreas 31462
$as_echo "$as_me: WARNING: No Qt ui compiler (uic) found!
88 andreas 31463
Please check whether you installed Qt correctly.
31464
You need to have a running uic binary.
31465
configure tried to run $ac_cv_path_uic and the test didn't
31466
succeed. If configure shouldn't have tried this one, set
31467
the environment variable UIC to the right one before running
31468
configure.
31469
" >&2;}
31470
 
31471
       exit 1
31472
     else
31473
       UIC=$UIC_PATH
31474
 
31475
       if test $kde_qtver = 3; then
31476
 
216 andreas 31477
    { $as_echo "$as_me:$LINENO: checking whether uic supports -L " >&5
31478
$as_echo_n "checking whether uic supports -L ... " >&6; }
88 andreas 31479
    kde_cache=`echo L | sed 'y% .=/+-%____p_%'`
31480
    if { as_var=kde_cv_prog_uic_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
216 andreas 31481
  $as_echo_n "(cached) " >&6
88 andreas 31482
else
31483
 
31484
        cat >conftest.ui <<EOT
31485
        <!DOCTYPE UI><UI version="3" stdsetdef="1"></UI>
31486
EOT
31487
        ac_uic_testrun="$UIC_PATH -L /nonexistent conftest.ui >/dev/null"
31488
        if { (eval echo "$as_me:$LINENO: \"$ac_uic_testrun\"") >&5
31489
  (eval $ac_uic_testrun) 2>&5
31490
  ac_status=$?
216 andreas 31491
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 31492
  (exit $ac_status); }; then
31493
            eval "kde_cv_prog_uic_$kde_cache=yes"
31494
        else
31495
            eval "kde_cv_prog_uic_$kde_cache=no"
31496
        fi
31497
        rm -f conftest*
31498
 
31499
fi
31500
 
31501
 
31502
    if eval "test \"`echo '$kde_cv_prog_uic_'$kde_cache`\" = yes"; then
216 andreas 31503
        { $as_echo "$as_me:$LINENO: result: yes" >&5
31504
$as_echo "yes" >&6; }
88 andreas 31505
        :
31506
        ac_uic_supports_libpath=yes
31507
    else
216 andreas 31508
        { $as_echo "$as_me:$LINENO: result: no" >&5
31509
$as_echo "no" >&6; }
88 andreas 31510
        :
31511
        ac_uic_supports_libpath=no
31512
    fi
31513
 
31514
 
216 andreas 31515
    { $as_echo "$as_me:$LINENO: checking whether uic supports -nounload " >&5
31516
$as_echo_n "checking whether uic supports -nounload ... " >&6; }
88 andreas 31517
    kde_cache=`echo nounload | sed 'y% .=/+-%____p_%'`
31518
    if { as_var=kde_cv_prog_uic_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
216 andreas 31519
  $as_echo_n "(cached) " >&6
88 andreas 31520
else
31521
 
31522
        cat >conftest.ui <<EOT
31523
        <!DOCTYPE UI><UI version="3" stdsetdef="1"></UI>
31524
EOT
31525
        ac_uic_testrun="$UIC_PATH -nounload  conftest.ui >/dev/null"
31526
        if { (eval echo "$as_me:$LINENO: \"$ac_uic_testrun\"") >&5
31527
  (eval $ac_uic_testrun) 2>&5
31528
  ac_status=$?
216 andreas 31529
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 31530
  (exit $ac_status); }; then
31531
            eval "kde_cv_prog_uic_$kde_cache=yes"
31532
        else
31533
            eval "kde_cv_prog_uic_$kde_cache=no"
31534
        fi
31535
        rm -f conftest*
31536
 
31537
fi
31538
 
31539
 
31540
    if eval "test \"`echo '$kde_cv_prog_uic_'$kde_cache`\" = yes"; then
216 andreas 31541
        { $as_echo "$as_me:$LINENO: result: yes" >&5
31542
$as_echo "yes" >&6; }
88 andreas 31543
        :
31544
        ac_uic_supports_nounload=yes
31545
    else
216 andreas 31546
        { $as_echo "$as_me:$LINENO: result: no" >&5
31547
$as_echo "no" >&6; }
88 andreas 31548
        :
31549
        ac_uic_supports_nounload=no
31550
    fi
31551
 
31552
 
31553
         if test x$ac_uic_supports_libpath = xyes; then
31554
             UIC="$UIC -L \$(kde_widgetdir)"
31555
         fi
31556
         if test x$ac_uic_supports_nounload = xyes; then
31557
             UIC="$UIC -nounload"
31558
         fi
31559
       fi
31560
     fi
31561
   else
31562
     UIC="echo uic not available: "
31563
   fi
31564
 
31565
 
31566
 
31567
 
31568
   UIC_TR="i18n"
31569
   if test $kde_qtver = 3; then
31570
     UIC_TR="tr2i18n"
31571
   fi
31572
 
31573
 
31574
 
31575
 
31576
 
31577
if test -n "$LIBJPEG"; then
216 andreas 31578
{ $as_echo "$as_me:$LINENO: checking if Qt needs $LIBJPEG" >&5
31579
$as_echo_n "checking if Qt needs $LIBJPEG... " >&6; }
88 andreas 31580
if test "${kde_cv_qt_jpeg+set}" = set; then
216 andreas 31581
  $as_echo_n "(cached) " >&6
88 andreas 31582
else
31583
 
31584
 
31585
 ac_ext=cpp
31586
ac_cpp='$CXXCPP $CPPFLAGS'
31587
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31588
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31589
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31590
 
31591
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
31592
 
31593
 
31594
ac_save_LIBS="$LIBS"
31595
LIBS="$all_libraries $USER_LDFLAGS $LIBQT"
31596
LIBS=`echo $LIBS | sed "s/$LIBJPEG//"`
31597
ac_save_CXXFLAGS="$CXXFLAGS"
31598
CXXFLAGS="$CXXFLAGS $all_includes $USER_INCLUDES"
31599
cat >conftest.$ac_ext <<_ACEOF
31600
/* confdefs.h.  */
31601
_ACEOF
31602
cat confdefs.h >>conftest.$ac_ext
31603
cat >>conftest.$ac_ext <<_ACEOF
31604
/* end confdefs.h.  */
31605
#include <qapplication.h>
31606
int
31607
main ()
31608
{
31609
 
31610
            int argc;
31611
            char** argv;
31612
            QApplication app(argc, argv);
31613
  ;
31614
  return 0;
31615
}
31616
_ACEOF
31617
rm -f conftest.$ac_objext conftest$ac_exeext
31618
if { (ac_try="$ac_link"
31619
case "(($ac_try" in
31620
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31621
  *) ac_try_echo=$ac_try;;
31622
esac
216 andreas 31623
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31624
$as_echo "$ac_try_echo") >&5
88 andreas 31625
  (eval "$ac_link") 2>conftest.er1
31626
  ac_status=$?
31627
  grep -v '^ *+' conftest.er1 >conftest.err
31628
  rm -f conftest.er1
31629
  cat conftest.err >&5
216 andreas 31630
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 31631
  (exit $ac_status); } && {
31632
	 test -z "$ac_cxx_werror_flag" ||
31633
	 test ! -s conftest.err
216 andreas 31634
       } && test -s conftest$ac_exeext && {
31635
	 test "$cross_compiling" = yes ||
31636
	 $as_test_x conftest$ac_exeext
31637
       }; then
88 andreas 31638
  eval "kde_cv_qt_jpeg=no"
31639
else
216 andreas 31640
  $as_echo "$as_me: failed program was:" >&5
88 andreas 31641
sed 's/^/| /' conftest.$ac_ext >&5
31642
 
31643
	eval "kde_cv_qt_jpeg=yes"
31644
fi
31645
 
216 andreas 31646
rm -rf conftest.dSYM
88 andreas 31647
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31648
      conftest$ac_exeext conftest.$ac_ext
31649
LIBS="$ac_save_LIBS"
31650
CXXFLAGS="$ac_save_CXXFLAGS"
31651
ac_ext=c
31652
ac_cpp='$CPP $CPPFLAGS'
31653
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31654
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31655
ac_compiler_gnu=$ac_cv_c_compiler_gnu
31656
 
31657
fi
31658
 
31659
fi
31660
 
31661
 
31662
if eval "test ! \"`echo $kde_cv_qt_jpeg`\" = no"; then
216 andreas 31663
  { $as_echo "$as_me:$LINENO: result: yes" >&5
31664
$as_echo "yes" >&6; }
88 andreas 31665
  LIBJPEG_QT='$(LIBJPEG)'
31666
else
216 andreas 31667
  { $as_echo "$as_me:$LINENO: result: no" >&5
31668
$as_echo "no" >&6; }
88 andreas 31669
  LIBJPEG_QT=
31670
fi
31671
 
31672
 
31673
 
31674
if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then
31675
LIB_QT="$kde_int_qt $LIBJPEG_QT "'$(LIBZ) $(LIBPNG) -lXext $(LIB_X11) $(LIBSM)'
31676
else
31677
LIB_QT="$kde_int_qt $LIBJPEG_QT "'$(LIBZ) $(LIBPNG)'
31678
fi
31679
test -z "$KDE_MT_LIBS" || LIB_QT="$LIB_QT $KDE_MT_LIBS"
31680
for a in $qt_libdir/lib`echo ${kde_int_qt} | sed 's,^-l,,'`_incremental.*; do
31681
  if test -e "$a"; then
31682
     LIB_QT="$LIB_QT ${kde_int_qt}_incremental"
31683
     break
31684
  fi
31685
done
31686
 
31687
 
31688
 
31689
 
31690
 
31691
 
31692
 
31693
 
31694
 
31695
 
31696
 
31697
 
31698
 
216 andreas 31699
{ $as_echo "$as_me:$LINENO: checking for rpath" >&5
31700
$as_echo_n "checking for rpath... " >&6; }
88 andreas 31701
# Check whether --enable-rpath was given.
31702
if test "${enable_rpath+set}" = set; then
31703
  enableval=$enable_rpath; USE_RPATH=$enableval
31704
else
31705
  USE_RPATH=yes
31706
fi
31707
 
31708
 
31709
if test -z "$KDE_RPATH" && test "$USE_RPATH" = "yes"; then
31710
 
31711
  KDE_RPATH="-R \$(libdir)"
31712
 
31713
  if test "$kde_libraries" != "$libdir"; then
31714
      KDE_RPATH="$KDE_RPATH -R \$(kde_libraries)"
31715
  fi
31716
 
31717
  if test -n "$qt_libraries"; then
31718
    KDE_RPATH="$KDE_RPATH -R \$(qt_libraries)"
31719
  fi
31720
    if test -n "$X_LDFLAGS"; then
31721
    X_RPATH="-R \$(x_libraries)"
31722
    KDE_RPATH="$KDE_RPATH $X_RPATH"
31723
  fi
31724
  if test -n "$KDE_EXTRA_RPATH"; then
31725
    KDE_RPATH="$KDE_RPATH \$(KDE_EXTRA_RPATH)"
31726
  fi
31727
fi
31728
 
31729
 
31730
 
216 andreas 31731
{ $as_echo "$as_me:$LINENO: result: $USE_RPATH" >&5
31732
$as_echo "$USE_RPATH" >&6; }
88 andreas 31733
 
216 andreas 31734
{ $as_echo "$as_me:$LINENO: checking for KDE" >&5
31735
$as_echo_n "checking for KDE... " >&6; }
88 andreas 31736
 
31737
if test "${prefix}" != NONE; then
31738
  kde_includes=${includedir}
31739
 
31740
savex=$exec_prefix
31741
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
31742
tmp=$includedir
31743
while ac_kde_includes=`eval echo "$tmp"`; test "x$ac_kde_includes" != "x$tmp"; do tmp=$ac_kde_includes; done
31744
exec_prefix=$savex
31745
 
31746
 
31747
  kde_libraries=${libdir}
31748
 
31749
savex=$exec_prefix
31750
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
31751
tmp=$libdir
31752
while ac_kde_libraries=`eval echo "$tmp"`; test "x$ac_kde_libraries" != "x$tmp"; do tmp=$ac_kde_libraries; done
31753
exec_prefix=$savex
31754
 
31755
 
31756
else
31757
  ac_kde_includes=
31758
  ac_kde_libraries=
31759
  kde_libraries=""
31760
  kde_includes=""
31761
fi
31762
 
31763
if test "${ac_cv_have_kde+set}" = set; then
216 andreas 31764
  $as_echo_n "(cached) " >&6
88 andreas 31765
else
31766
  #try to guess kde locations
31767
 
31768
if test "$kde_qtver" = 1; then
31769
  kde_check_header="ksock.h"
31770
  kde_check_lib="libkdecore.la"
31771
else
31772
  kde_check_header="ksharedptr.h"
31773
  kde_check_lib="libkio.la"
31774
fi
31775
 
31776
if test -z ""; then
31777
 
31778
kde_incdirs="$kde_libs_prefix/include /usr/lib/kde/include /usr/local/kde/include /usr/local/include /usr/kde/include /usr/include/kde /usr/include /opt/kde3/include /opt/kde/include $x_includes $qt_includes"
31779
test -n "$KDEDIR" && kde_incdirs="$KDEDIR/include $KDEDIR/include/kde $KDEDIR $kde_incdirs"
31780
kde_incdirs="$ac_kde_includes $kde_incdirs"
31781
 
31782
kde_incdir=NO
31783
for i in $kde_incdirs;
31784
do
31785
  for j in $kde_check_header;
31786
  do
216 andreas 31787
    echo "configure: 31787: $i/$j" >&5
88 andreas 31788
    if test -r "$i/$j"; then
31789
      echo "taking that" >&5
31790
      kde_incdir=$i
31791
      break 2
31792
    fi
31793
  done
31794
done
31795
 
31796
ac_kde_includes="$kde_incdir"
31797
 
31798
if test -n "$ac_kde_includes" && test ! -r "$ac_kde_includes/$kde_check_header"; then
216 andreas 31799
  { { $as_echo "$as_me:$LINENO: error:
88 andreas 31800
in the prefix, you've chosen, are no KDE headers installed. This will fail.
31801
So, check this please and use another prefix!" >&5
216 andreas 31802
$as_echo "$as_me: error:
88 andreas 31803
in the prefix, you've chosen, are no KDE headers installed. This will fail.
31804
So, check this please and use another prefix!" >&2;}
31805
   { (exit 1); exit 1; }; }
31806
fi
31807
 
31808
kde_libdirs="$kde_libs_prefix/lib${kdelibsuff} /usr/lib/kde/lib${kdelibsuff} /usr/local/kde/lib${kdelibsuff} /usr/kde/lib${kdelibsuff} /usr/lib${kdelibsuff}/kde /usr/lib${kdelibsuff}/kde3 /usr/lib${kdelibsuff} /usr/X11R6/lib${kdelibsuff} /usr/local/lib${kdelibsuff} /opt/kde3/lib${kdelibsuff} /opt/kde/lib${kdelibsuff} /usr/X11R6/kde/lib${kdelibsuff}"
31809
test -n "$KDEDIR" && kde_libdirs="$KDEDIR/lib${kdelibsuff} $KDEDIR $kde_libdirs"
31810
kde_libdirs="$ac_kde_libraries $libdir $kde_libdirs"
31811
 
31812
kde_libdir=NO
31813
for i in $kde_libdirs;
31814
do
31815
  for j in $kde_check_lib;
31816
  do
216 andreas 31817
    echo "configure: 31817: $i/$j" >&5
88 andreas 31818
    if test -r "$i/$j"; then
31819
      echo "taking that" >&5
31820
      kde_libdir=$i
31821
      break 2
31822
    fi
31823
  done
31824
done
31825
 
31826
ac_kde_libraries="$kde_libdir"
31827
 
31828
kde_widgetdir=NO
31829
 
31830
kde_widgetdir=NO
31831
for i in $kde_libdirs;
31832
do
31833
  for j in "kde3/plugins/designer/kdewidgets.la";
31834
  do
216 andreas 31835
    echo "configure: 31835: $i/$j" >&5
88 andreas 31836
    if test -r "$i/$j"; then
31837
      echo "taking that" >&5
31838
      kde_widgetdir=$i
31839
      break 2
31840
    fi
31841
  done
31842
done
31843
 
31844
 
31845
if test -n "$ac_kde_libraries" && test ! -r "$ac_kde_libraries/$kde_check_lib"; then
216 andreas 31846
{ { $as_echo "$as_me:$LINENO: error:
88 andreas 31847
in the prefix, you've chosen, are no KDE libraries installed. This will fail.
31848
So, check this please and use another prefix!" >&5
216 andreas 31849
$as_echo "$as_me: error:
88 andreas 31850
in the prefix, you've chosen, are no KDE libraries installed. This will fail.
31851
So, check this please and use another prefix!" >&2;}
31852
   { (exit 1); exit 1; }; }
31853
fi
31854
 
31855
if test -n "$kde_widgetdir" && test ! -r "$kde_widgetdir/kde3/plugins/designer/kdewidgets.la"; then
216 andreas 31856
{ { $as_echo "$as_me:$LINENO: error:
88 andreas 31857
I can't find the designer plugins. These are required and should have been installed
31858
by kdelibs" >&5
216 andreas 31859
$as_echo "$as_me: error:
88 andreas 31860
I can't find the designer plugins. These are required and should have been installed
31861
by kdelibs" >&2;}
31862
   { (exit 1); exit 1; }; }
31863
fi
31864
 
31865
if test -n "$kde_widgetdir"; then
31866
    kde_widgetdir="$kde_widgetdir/kde3/plugins/designer"
31867
fi
31868
 
31869
 
31870
if test "$ac_kde_includes" = NO || test "$ac_kde_libraries" = NO || test "$kde_widgetdir" = NO; then
31871
  ac_cv_have_kde="have_kde=no"
31872
else
31873
  ac_cv_have_kde="have_kde=yes \
31874
    ac_kde_includes=$ac_kde_includes ac_kde_libraries=$ac_kde_libraries"
31875
fi
31876
 
31877
else
31878
  ac_cv_have_kde="have_kde=no"
31879
 
31880
fi
31881
 
31882
fi
31883
 
31884
eval "$ac_cv_have_kde"
31885
 
31886
if test "$have_kde" != "yes"; then
31887
 if test "${prefix}" = NONE; then
31888
  ac_kde_prefix="$ac_default_prefix"
31889
 else
31890
  ac_kde_prefix="$prefix"
31891
 fi
31892
 if test "$exec_prefix" = NONE; then
31893
  ac_kde_exec_prefix="$ac_kde_prefix"
216 andreas 31894
  { $as_echo "$as_me:$LINENO: result: will be installed in $ac_kde_prefix" >&5
31895
$as_echo "will be installed in $ac_kde_prefix" >&6; }
88 andreas 31896
 else
31897
  ac_kde_exec_prefix="$exec_prefix"
216 andreas 31898
  { $as_echo "$as_me:$LINENO: result: will be installed in $ac_kde_prefix and $ac_kde_exec_prefix" >&5
31899
$as_echo "will be installed in $ac_kde_prefix and $ac_kde_exec_prefix" >&6; }
88 andreas 31900
 fi
31901
 
31902
 kde_libraries="${libdir}"
31903
 kde_includes="${includedir}"
31904
 
31905
else
31906
  ac_cv_have_kde="have_kde=yes \
31907
    ac_kde_includes=$ac_kde_includes ac_kde_libraries=$ac_kde_libraries"
216 andreas 31908
  { $as_echo "$as_me:$LINENO: result: libraries $ac_kde_libraries, headers $ac_kde_includes" >&5
31909
$as_echo "libraries $ac_kde_libraries, headers $ac_kde_includes" >&6; }
88 andreas 31910
 
31911
  kde_libraries="$ac_kde_libraries"
31912
  kde_includes="$ac_kde_includes"
31913
fi
31914
 
31915
 
31916
 
31917
if test "$kde_includes" = "$x_includes" || test "$kde_includes" = "$qt_includes"  || test "$kde_includes" = "/usr/include"; then
31918
 KDE_INCLUDES=""
31919
else
31920
 KDE_INCLUDES="-I$kde_includes"
31921
 all_includes="$KDE_INCLUDES $all_includes"
31922
fi
31923
 
31924
KDE_DEFAULT_CXXFLAGS="-DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION"
31925
 
31926
KDE_LDFLAGS="-L$kde_libraries"
31927
if test ! "$kde_libraries" = "$x_libraries" && test ! "$kde_libraries" = "$qt_libraries" ; then
31928
 all_libraries="$KDE_LDFLAGS $all_libraries"
31929
fi
31930
 
31931
 
31932
 
31933
 
31934
 
31935
 
31936
all_libraries="$all_libraries $USER_LDFLAGS"
31937
all_includes="$all_includes $USER_INCLUDES"
31938
 
31939
 
31940
 
31941
if test -z ""; then
31942
 
31943
 
31944
 
31945
if test x$ac_uic_supports_libpath = xyes; then
31946
 
216 andreas 31947
{ $as_echo "$as_me:$LINENO: checking if UIC has KDE plugins available" >&5
31948
$as_echo_n "checking if UIC has KDE plugins available... " >&6; }
88 andreas 31949
if test "${kde_cv_uic_plugins+set}" = set; then
216 andreas 31950
  $as_echo_n "(cached) " >&6
88 andreas 31951
else
31952
 
31953
cat > actest.ui << EOF
31954
<!DOCTYPE UI><UI version="3.0" stdsetdef="1">
31955
<class>NewConnectionDialog</class>
31956
<widget class="QDialog">
31957
   <widget class="KLineEdit">
31958
        <property name="name">
31959
           <cstring>testInput</cstring>
31960
        </property>
31961
   </widget>
31962
</widget>
31963
</UI>
31964
EOF
31965
 
31966
 
31967
 
31968
kde_cv_uic_plugins=no
31969
kde_line="$UIC_PATH -L $kde_widgetdir"
31970
if test x$ac_uic_supports_nounload = xyes; then
31971
   kde_line="$kde_line -nounload"
31972
fi
31973
kde_line="$kde_line -impl actest.h actest.ui > actest.cpp"
31974
if { (eval echo "$as_me:$LINENO: \"$kde_line\"") >&5
31975
  (eval $kde_line) 2>&5
31976
  ac_status=$?
216 andreas 31977
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 31978
  (exit $ac_status); }; then
31979
	# if you're trying to debug this check and think it's incorrect,
31980
	# better check your installation. The check _is_ correct - your
31981
	# installation is not.
31982
	if test -f actest.cpp && grep klineedit actest.cpp > /dev/null; then
31983
		kde_cv_uic_plugins=yes
31984
	fi
31985
fi
31986
rm -f actest.ui actest.cpp
31987
 
31988
fi
31989
 
31990
 
216 andreas 31991
{ $as_echo "$as_me:$LINENO: result: $kde_cv_uic_plugins" >&5
31992
$as_echo "$kde_cv_uic_plugins" >&6; }
88 andreas 31993
if test "$kde_cv_uic_plugins" != yes; then
216 andreas 31994
	{ { $as_echo "$as_me:$LINENO: error:
88 andreas 31995
you need to install kdelibs first.
31996
 
31997
If you did install kdelibs, then the Qt version that is picked up by
31998
this configure is not the same version you used to compile kdelibs.
31999
The Qt Plugin installed by kdelibs is *ONLY* loadable if it is the
32000
_same Qt version_, compiled with the _same compiler_ and the same Qt
32001
configuration settings.
32002
" >&5
216 andreas 32003
$as_echo "$as_me: error:
88 andreas 32004
you need to install kdelibs first.
32005
 
32006
If you did install kdelibs, then the Qt version that is picked up by
32007
this configure is not the same version you used to compile kdelibs.
32008
The Qt Plugin installed by kdelibs is *ONLY* loadable if it is the
32009
_same Qt version_, compiled with the _same compiler_ and the same Qt
32010
configuration settings.
32011
" >&2;}
32012
   { (exit 1); exit 1; }; }
32013
fi
32014
fi
32015
 
32016
fi
32017
 
32018
ac_kde_libraries="$kde_libdir"
32019
 
32020
 
32021
 
32022
 
32023
 
32024
  # Check whether --enable-path-check was given.
32025
if test "${enable_path_check+set}" = set; then
32026
  enableval=$enable_path_check;
32027
  if test "$enableval" = "no";
32028
    then ac_use_path_checking="default"
32029
    else ac_use_path_checking=""
32030
  fi
32031
 
32032
else
32033
 
32034
  if test "$kde_qtver" = 1;
32035
    then ac_use_path_checking=""
32036
    else ac_use_path_checking="default"
32037
  fi
32038
 
32039
 
32040
fi
32041
 
32042
 
32043
 
32044
 
32045
 
216 andreas 32046
{ $as_echo "$as_me:$LINENO: checking for KDE paths" >&5
32047
$as_echo_n "checking for KDE paths... " >&6; }
88 andreas 32048
kde_result=""
32049
kde_cached_paths=yes
32050
if test "${kde_cv_all_paths+set}" = set; then
216 andreas 32051
  $as_echo_n "(cached) " >&6
88 andreas 32052
else
32053
 
32054
 
32055
if test "$ac_use_path_checking" = "default"; then
32056
 
32057
  if test -z "$kde_htmldir"; then
32058
    kde_htmldir='\${datadir}/doc/HTML'
32059
  fi
32060
  if test -z "$kde_appsdir"; then
32061
    kde_appsdir='\${datadir}/applnk'
32062
  fi
32063
  if test -z "$kde_icondir"; then
32064
    kde_icondir='\${datadir}/icons'
32065
  fi
32066
  if test -z "$kde_sounddir"; then
32067
    kde_sounddir='\${datadir}/sounds'
32068
  fi
32069
  if test -z "$kde_datadir"; then
32070
    kde_datadir='\${datadir}/apps'
32071
  fi
32072
  if test -z "$kde_locale"; then
32073
    kde_locale='\${datadir}/locale'
32074
  fi
32075
  if test -z "$kde_cgidir"; then
32076
    kde_cgidir='\${exec_prefix}/cgi-bin'
32077
  fi
32078
  if test -z "$kde_confdir"; then
32079
    kde_confdir='\${datadir}/config'
32080
  fi
32081
  if test -z "$kde_kcfgdir"; then
32082
    kde_kcfgdir='\${datadir}/config.kcfg'
32083
  fi
32084
  if test -z "$kde_mimedir"; then
32085
    kde_mimedir='\${datadir}/mimelnk'
32086
  fi
32087
  if test -z "$kde_toolbardir"; then
32088
    kde_toolbardir='\${datadir}/toolbar'
32089
  fi
32090
  if test -z "$kde_wallpaperdir"; then
32091
    kde_wallpaperdir='\${datadir}/wallpapers'
32092
  fi
32093
  if test -z "$kde_templatesdir"; then
32094
    kde_templatesdir='\${datadir}/templates'
32095
  fi
32096
  if test -z "$kde_bindir"; then
32097
    kde_bindir='\${exec_prefix}/bin'
32098
  fi
32099
  if test -z "$kde_servicesdir"; then
32100
    kde_servicesdir='\${datadir}/services'
32101
  fi
32102
  if test -z "$kde_servicetypesdir"; then
32103
    kde_servicetypesdir='\${datadir}/servicetypes'
32104
  fi
32105
  if test -z "$kde_moduledir"; then
32106
    if test "$kde_qtver" = "2"; then
32107
      kde_moduledir='\${libdir}/kde2'
32108
    else
32109
      kde_moduledir='\${libdir}/kde3'
32110
    fi
32111
  fi
32112
  if test -z "$kde_styledir"; then
32113
    kde_styledir='\${libdir}/kde3/plugins/styles'
32114
  fi
32115
  if test -z "$kde_widgetdir"; then
32116
    kde_widgetdir='\${libdir}/kde3/plugins/designer'
32117
  fi
32118
  if test -z "$xdg_appsdir"; then
32119
    xdg_appsdir='\${datadir}/applications/kde'
32120
  fi
32121
  if test -z "$xdg_menudir"; then
32122
    xdg_menudir='\${sysconfdir}/xdg/menus'
32123
  fi
32124
  if test -z "$xdg_directorydir"; then
32125
    xdg_directorydir='\${datadir}/desktop-directories'
32126
  fi
32127
 
32128
 
32129
  kde_cv_all_paths="kde_have_all_paths=\"yes\" \
32130
	kde_htmldir=\"$kde_htmldir\" \
32131
	kde_appsdir=\"$kde_appsdir\" \
32132
	kde_icondir=\"$kde_icondir\" \
32133
	kde_sounddir=\"$kde_sounddir\" \
32134
	kde_datadir=\"$kde_datadir\" \
32135
	kde_locale=\"$kde_locale\" \
32136
	kde_cgidir=\"$kde_cgidir\" \
32137
	kde_confdir=\"$kde_confdir\" \
32138
	kde_kcfgdir=\"$kde_kcfgdir\" \
32139
	kde_mimedir=\"$kde_mimedir\" \
32140
	kde_toolbardir=\"$kde_toolbardir\" \
32141
	kde_wallpaperdir=\"$kde_wallpaperdir\" \
32142
	kde_templatesdir=\"$kde_templatesdir\" \
32143
	kde_bindir=\"$kde_bindir\" \
32144
	kde_servicesdir=\"$kde_servicesdir\" \
32145
	kde_servicetypesdir=\"$kde_servicetypesdir\" \
32146
	kde_moduledir=\"$kde_moduledir\" \
32147
	kde_styledir=\"$kde_styledir\" \
32148
	kde_widgetdir=\"$kde_widgetdir\" \
32149
	xdg_appsdir=\"$xdg_appsdir\" \
32150
	xdg_menudir=\"$xdg_menudir\" \
32151
	xdg_directorydir=\"$xdg_directorydir\" \
32152
	kde_result=defaults"
32153
 
32154
 
32155
else
32156
 
32157
  if test $kde_qtver = 1; then
216 andreas 32158
     { $as_echo "$as_me:$LINENO: result: compiling" >&5
32159
$as_echo "compiling" >&6; }
88 andreas 32160
 
32161
 
216 andreas 32162
    { $as_echo "$as_me:$LINENO: checking for KDE headers installed" >&5
32163
$as_echo_n "checking for KDE headers installed... " >&6; }
88 andreas 32164
 
32165
     ac_ext=cpp
32166
ac_cpp='$CXXCPP $CPPFLAGS'
32167
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32168
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32169
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32170
 
32171
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
32172
 
32173
 
32174
cat > conftest.$ac_ext <<EOF
32175
#ifdef STDC_HEADERS
32176
# include <stdlib.h>
32177
#endif
32178
#include <stdio.h>
32179
#include "confdefs.h"
32180
#include <kapp.h>
32181
 
32182
int main() {
32183
    printf("kde_htmldir=\\"%s\\"\n", KApplication::kde_htmldir().data());
32184
    printf("kde_appsdir=\\"%s\\"\n", KApplication::kde_appsdir().data());
32185
    printf("kde_icondir=\\"%s\\"\n", KApplication::kde_icondir().data());
32186
    printf("kde_sounddir=\\"%s\\"\n", KApplication::kde_sounddir().data());
32187
    printf("kde_datadir=\\"%s\\"\n", KApplication::kde_datadir().data());
32188
    printf("kde_locale=\\"%s\\"\n", KApplication::kde_localedir().data());
32189
    printf("kde_cgidir=\\"%s\\"\n", KApplication::kde_cgidir().data());
32190
    printf("kde_confdir=\\"%s\\"\n", KApplication::kde_configdir().data());
32191
    printf("kde_mimedir=\\"%s\\"\n", KApplication::kde_mimedir().data());
32192
    printf("kde_toolbardir=\\"%s\\"\n", KApplication::kde_toolbardir().data());
32193
    printf("kde_wallpaperdir=\\"%s\\"\n",
32194
	KApplication::kde_wallpaperdir().data());
32195
    printf("kde_bindir=\\"%s\\"\n", KApplication::kde_bindir().data());
32196
    printf("kde_partsdir=\\"%s\\"\n", KApplication::kde_partsdir().data());
32197
    printf("kde_servicesdir=\\"/tmp/dummy\\"\n");
32198
    printf("kde_servicetypesdir=\\"/tmp/dummy\\"\n");
32199
    printf("kde_moduledir=\\"/tmp/dummy\\"\n");
32200
    printf("kde_styledir=\\"/tmp/dummy\\"\n");
32201
    printf("kde_widgetdir=\\"/tmp/dummy\\"\n");
32202
    printf("xdg_appsdir=\\"/tmp/dummy\\"\n");
32203
    printf("xdg_menudir=\\"/tmp/dummy\\"\n");
32204
    printf("xdg_directorydir=\\"/tmp/dummy\\"\n");
32205
    printf("kde_kcfgdir=\\"/tmp/dummy\\"\n");
32206
    return 0;
32207
    }
32208
EOF
32209
 
32210
 ac_save_CPPFLAGS=$CPPFLAGS
32211
 CPPFLAGS="$all_includes $CPPFLAGS"
32212
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32213
  (eval $ac_compile) 2>&5
32214
  ac_status=$?
216 andreas 32215
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 32216
  (exit $ac_status); }; then
216 andreas 32217
   { $as_echo "$as_me:$LINENO: result: yes" >&5
32218
$as_echo "yes" >&6; }
88 andreas 32219
 else
216 andreas 32220
   { { $as_echo "$as_me:$LINENO: error: your system is not able to compile a small KDE application!
88 andreas 32221
Check, if you installed the KDE header files correctly.
32222
For more details about this problem, look at the end of config.log." >&5
216 andreas 32223
$as_echo "$as_me: error: your system is not able to compile a small KDE application!
88 andreas 32224
Check, if you installed the KDE header files correctly.
32225
For more details about this problem, look at the end of config.log." >&2;}
32226
   { (exit 1); exit 1; }; }
32227
  fi
32228
  CPPFLAGS=$ac_save_CPPFLAGS
32229
 
32230
  ac_ext=c
32231
ac_cpp='$CPP $CPPFLAGS'
32232
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32233
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32234
ac_compiler_gnu=$ac_cv_c_compiler_gnu
32235
 
32236
 
32237
 
32238
  KDE_TEST_RPATH=
32239
 
32240
  if test -n "$USE_RPATH"; then
32241
 
32242
     if test -n "$kde_libraries"; then
32243
       KDE_TEST_RPATH="-R $kde_libraries"
32244
     fi
32245
 
32246
     if test -n "$qt_libraries"; then
32247
       KDE_TEST_RPATH="$KDE_TEST_RPATH -R $qt_libraries"
32248
     fi
32249
 
32250
     if test -n "$x_libraries"; then
32251
       KDE_TEST_RPATH="$KDE_TEST_RPATH -R $x_libraries"
32252
     fi
32253
 
32254
     KDE_TEST_RPATH="$KDE_TEST_RPATH $KDE_EXTRA_RPATH"
32255
  fi
32256
 
216 andreas 32257
{ $as_echo "$as_me:$LINENO: checking for KDE libraries installed" >&5
32258
$as_echo_n "checking for KDE libraries installed... " >&6; }
88 andreas 32259
ac_link='$LIBTOOL_SHELL --silent --mode=link ${CXX-g++} -o conftest $CXXFLAGS $all_includes $CPPFLAGS $LDFLAGS $all_libraries conftest.$ac_ext $LIBS -lkdecore $LIBQT $KDE_TEST_RPATH 1>&5'
32260
 
32261
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32262
  (eval $ac_link) 2>&5
32263
  ac_status=$?
216 andreas 32264
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 32265
  (exit $ac_status); } && test -s conftest; then
216 andreas 32266
  { $as_echo "$as_me:$LINENO: result: yes" >&5
32267
$as_echo "yes" >&6; }
88 andreas 32268
else
216 andreas 32269
  { { $as_echo "$as_me:$LINENO: error: your system fails at linking a small KDE application!
88 andreas 32270
Check, if your compiler is installed correctly and if you have used the
32271
same compiler to compile Qt and kdelibs as you did use now.
32272
For more details about this problem, look at the end of config.log." >&5
216 andreas 32273
$as_echo "$as_me: error: your system fails at linking a small KDE application!
88 andreas 32274
Check, if your compiler is installed correctly and if you have used the
32275
same compiler to compile Qt and kdelibs as you did use now.
32276
For more details about this problem, look at the end of config.log." >&2;}
32277
   { (exit 1); exit 1; }; }
32278
fi
32279
 
32280
if eval `KDEDIR= ./conftest 2>&5`; then
32281
  kde_result=done
32282
else
32283
  kde_result=problems
32284
fi
32285
 
32286
KDEDIR= ./conftest 2> /dev/null >&5 # make an echo for config.log
32287
kde_have_all_paths=yes
32288
 
32289
 
32290
  kde_cv_all_paths="kde_have_all_paths=\"yes\" \
32291
	kde_htmldir=\"$kde_htmldir\" \
32292
	kde_appsdir=\"$kde_appsdir\" \
32293
	kde_icondir=\"$kde_icondir\" \
32294
	kde_sounddir=\"$kde_sounddir\" \
32295
	kde_datadir=\"$kde_datadir\" \
32296
	kde_locale=\"$kde_locale\" \
32297
	kde_cgidir=\"$kde_cgidir\" \
32298
	kde_confdir=\"$kde_confdir\" \
32299
	kde_kcfgdir=\"$kde_kcfgdir\" \
32300
	kde_mimedir=\"$kde_mimedir\" \
32301
	kde_toolbardir=\"$kde_toolbardir\" \
32302
	kde_wallpaperdir=\"$kde_wallpaperdir\" \
32303
	kde_templatesdir=\"$kde_templatesdir\" \
32304
	kde_bindir=\"$kde_bindir\" \
32305
	kde_servicesdir=\"$kde_servicesdir\" \
32306
	kde_servicetypesdir=\"$kde_servicetypesdir\" \
32307
	kde_moduledir=\"$kde_moduledir\" \
32308
	kde_styledir=\"$kde_styledir\" \
32309
	kde_widgetdir=\"$kde_widgetdir\" \
32310
	xdg_appsdir=\"$xdg_appsdir\" \
32311
	xdg_menudir=\"$xdg_menudir\" \
32312
	xdg_directorydir=\"$xdg_directorydir\" \
32313
	kde_result=$kde_result"
32314
 
32315
 
32316
 
32317
  else
216 andreas 32318
     { { $as_echo "$as_me:$LINENO: error: path checking not yet supported for KDE 2" >&5
32319
$as_echo "$as_me: error: path checking not yet supported for KDE 2" >&2;}
88 andreas 32320
   { (exit 1); exit 1; }; }
32321
  fi
32322
 
32323
fi
32324
 
32325
  kde_cached_paths=no
32326
 
32327
fi
32328
 
32329
eval "$kde_cv_all_paths"
32330
 if test -z "$kde_htmldir" || test -z "$kde_appsdir" ||
32331
   test -z "$kde_icondir" || test -z "$kde_sounddir" ||
32332
   test -z "$kde_datadir" || test -z "$kde_locale"  ||
32333
   test -z "$kde_cgidir"  || test -z "$kde_confdir" ||
32334
   test -z "$kde_kcfgdir" ||
32335
   test -z "$kde_mimedir" || test -z "$kde_toolbardir" ||
32336
   test -z "$kde_wallpaperdir" || test -z "$kde_templatesdir" ||
32337
   test -z "$kde_bindir" || test -z "$kde_servicesdir" ||
32338
   test -z "$kde_servicetypesdir" || test -z "$kde_moduledir" ||
32339
   test -z "$kde_styledir" || test -z "kde_widgetdir" ||
32340
   test -z "$xdg_appsdir" || test -z "$xdg_menudir" || test -z "$xdg_directorydir" ||
32341
   test "x$kde_have_all_paths" != "xyes"; then
32342
     kde_have_all_paths=no
32343
  fi
32344
 
32345
if test "$kde_have_all_paths" = "no" && test "$kde_cached_paths" = "yes"; then
32346
  # wrong values were cached, may be, we can set better ones
32347
  kde_result=
32348
  kde_htmldir= kde_appsdir= kde_icondir= kde_sounddir=
32349
  kde_datadir= kde_locale=  kde_cgidir=  kde_confdir= kde_kcfgdir=
32350
  kde_mimedir= kde_toolbardir= kde_wallpaperdir= kde_templatesdir=
32351
  kde_bindir= kde_servicesdir= kde_servicetypesdir= kde_moduledir=
32352
  kde_have_all_paths=
32353
  kde_styledir=
32354
  kde_widgetdir=
32355
  xdg_appsdir = xdg_menudir= xdg_directorydir=
32356
 
32357
if test "$ac_use_path_checking" = "default"; then
32358
 
32359
  if test -z "$kde_htmldir"; then
32360
    kde_htmldir='\${datadir}/doc/HTML'
32361
  fi
32362
  if test -z "$kde_appsdir"; then
32363
    kde_appsdir='\${datadir}/applnk'
32364
  fi
32365
  if test -z "$kde_icondir"; then
32366
    kde_icondir='\${datadir}/icons'
32367
  fi
32368
  if test -z "$kde_sounddir"; then
32369
    kde_sounddir='\${datadir}/sounds'
32370
  fi
32371
  if test -z "$kde_datadir"; then
32372
    kde_datadir='\${datadir}/apps'
32373
  fi
32374
  if test -z "$kde_locale"; then
32375
    kde_locale='\${datadir}/locale'
32376
  fi
32377
  if test -z "$kde_cgidir"; then
32378
    kde_cgidir='\${exec_prefix}/cgi-bin'
32379
  fi
32380
  if test -z "$kde_confdir"; then
32381
    kde_confdir='\${datadir}/config'
32382
  fi
32383
  if test -z "$kde_kcfgdir"; then
32384
    kde_kcfgdir='\${datadir}/config.kcfg'
32385
  fi
32386
  if test -z "$kde_mimedir"; then
32387
    kde_mimedir='\${datadir}/mimelnk'
32388
  fi
32389
  if test -z "$kde_toolbardir"; then
32390
    kde_toolbardir='\${datadir}/toolbar'
32391
  fi
32392
  if test -z "$kde_wallpaperdir"; then
32393
    kde_wallpaperdir='\${datadir}/wallpapers'
32394
  fi
32395
  if test -z "$kde_templatesdir"; then
32396
    kde_templatesdir='\${datadir}/templates'
32397
  fi
32398
  if test -z "$kde_bindir"; then
32399
    kde_bindir='\${exec_prefix}/bin'
32400
  fi
32401
  if test -z "$kde_servicesdir"; then
32402
    kde_servicesdir='\${datadir}/services'
32403
  fi
32404
  if test -z "$kde_servicetypesdir"; then
32405
    kde_servicetypesdir='\${datadir}/servicetypes'
32406
  fi
32407
  if test -z "$kde_moduledir"; then
32408
    if test "$kde_qtver" = "2"; then
32409
      kde_moduledir='\${libdir}/kde2'
32410
    else
32411
      kde_moduledir='\${libdir}/kde3'
32412
    fi
32413
  fi
32414
  if test -z "$kde_styledir"; then
32415
    kde_styledir='\${libdir}/kde3/plugins/styles'
32416
  fi
32417
  if test -z "$kde_widgetdir"; then
32418
    kde_widgetdir='\${libdir}/kde3/plugins/designer'
32419
  fi
32420
  if test -z "$xdg_appsdir"; then
32421
    xdg_appsdir='\${datadir}/applications/kde'
32422
  fi
32423
  if test -z "$xdg_menudir"; then
32424
    xdg_menudir='\${sysconfdir}/xdg/menus'
32425
  fi
32426
  if test -z "$xdg_directorydir"; then
32427
    xdg_directorydir='\${datadir}/desktop-directories'
32428
  fi
32429
 
32430
 
32431
  kde_cv_all_paths="kde_have_all_paths=\"yes\" \
32432
	kde_htmldir=\"$kde_htmldir\" \
32433
	kde_appsdir=\"$kde_appsdir\" \
32434
	kde_icondir=\"$kde_icondir\" \
32435
	kde_sounddir=\"$kde_sounddir\" \
32436
	kde_datadir=\"$kde_datadir\" \
32437
	kde_locale=\"$kde_locale\" \
32438
	kde_cgidir=\"$kde_cgidir\" \
32439
	kde_confdir=\"$kde_confdir\" \
32440
	kde_kcfgdir=\"$kde_kcfgdir\" \
32441
	kde_mimedir=\"$kde_mimedir\" \
32442
	kde_toolbardir=\"$kde_toolbardir\" \
32443
	kde_wallpaperdir=\"$kde_wallpaperdir\" \
32444
	kde_templatesdir=\"$kde_templatesdir\" \
32445
	kde_bindir=\"$kde_bindir\" \
32446
	kde_servicesdir=\"$kde_servicesdir\" \
32447
	kde_servicetypesdir=\"$kde_servicetypesdir\" \
32448
	kde_moduledir=\"$kde_moduledir\" \
32449
	kde_styledir=\"$kde_styledir\" \
32450
	kde_widgetdir=\"$kde_widgetdir\" \
32451
	xdg_appsdir=\"$xdg_appsdir\" \
32452
	xdg_menudir=\"$xdg_menudir\" \
32453
	xdg_directorydir=\"$xdg_directorydir\" \
32454
	kde_result=defaults"
32455
 
32456
 
32457
else
32458
 
32459
  if test $kde_qtver = 1; then
216 andreas 32460
     { $as_echo "$as_me:$LINENO: result: compiling" >&5
32461
$as_echo "compiling" >&6; }
88 andreas 32462
 
32463
 
216 andreas 32464
    { $as_echo "$as_me:$LINENO: checking for KDE headers installed" >&5
32465
$as_echo_n "checking for KDE headers installed... " >&6; }
88 andreas 32466
 
32467
     ac_ext=cpp
32468
ac_cpp='$CXXCPP $CPPFLAGS'
32469
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32470
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32471
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32472
 
32473
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
32474
 
32475
 
32476
cat > conftest.$ac_ext <<EOF
32477
#ifdef STDC_HEADERS
32478
# include <stdlib.h>
32479
#endif
32480
#include <stdio.h>
32481
#include "confdefs.h"
32482
#include <kapp.h>
32483
 
32484
int main() {
32485
    printf("kde_htmldir=\\"%s\\"\n", KApplication::kde_htmldir().data());
32486
    printf("kde_appsdir=\\"%s\\"\n", KApplication::kde_appsdir().data());
32487
    printf("kde_icondir=\\"%s\\"\n", KApplication::kde_icondir().data());
32488
    printf("kde_sounddir=\\"%s\\"\n", KApplication::kde_sounddir().data());
32489
    printf("kde_datadir=\\"%s\\"\n", KApplication::kde_datadir().data());
32490
    printf("kde_locale=\\"%s\\"\n", KApplication::kde_localedir().data());
32491
    printf("kde_cgidir=\\"%s\\"\n", KApplication::kde_cgidir().data());
32492
    printf("kde_confdir=\\"%s\\"\n", KApplication::kde_configdir().data());
32493
    printf("kde_mimedir=\\"%s\\"\n", KApplication::kde_mimedir().data());
32494
    printf("kde_toolbardir=\\"%s\\"\n", KApplication::kde_toolbardir().data());
32495
    printf("kde_wallpaperdir=\\"%s\\"\n",
32496
	KApplication::kde_wallpaperdir().data());
32497
    printf("kde_bindir=\\"%s\\"\n", KApplication::kde_bindir().data());
32498
    printf("kde_partsdir=\\"%s\\"\n", KApplication::kde_partsdir().data());
32499
    printf("kde_servicesdir=\\"/tmp/dummy\\"\n");
32500
    printf("kde_servicetypesdir=\\"/tmp/dummy\\"\n");
32501
    printf("kde_moduledir=\\"/tmp/dummy\\"\n");
32502
    printf("kde_styledir=\\"/tmp/dummy\\"\n");
32503
    printf("kde_widgetdir=\\"/tmp/dummy\\"\n");
32504
    printf("xdg_appsdir=\\"/tmp/dummy\\"\n");
32505
    printf("xdg_menudir=\\"/tmp/dummy\\"\n");
32506
    printf("xdg_directorydir=\\"/tmp/dummy\\"\n");
32507
    printf("kde_kcfgdir=\\"/tmp/dummy\\"\n");
32508
    return 0;
32509
    }
32510
EOF
32511
 
32512
 ac_save_CPPFLAGS=$CPPFLAGS
32513
 CPPFLAGS="$all_includes $CPPFLAGS"
32514
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32515
  (eval $ac_compile) 2>&5
32516
  ac_status=$?
216 andreas 32517
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 32518
  (exit $ac_status); }; then
216 andreas 32519
   { $as_echo "$as_me:$LINENO: result: yes" >&5
32520
$as_echo "yes" >&6; }
88 andreas 32521
 else
216 andreas 32522
   { { $as_echo "$as_me:$LINENO: error: your system is not able to compile a small KDE application!
88 andreas 32523
Check, if you installed the KDE header files correctly.
32524
For more details about this problem, look at the end of config.log." >&5
216 andreas 32525
$as_echo "$as_me: error: your system is not able to compile a small KDE application!
88 andreas 32526
Check, if you installed the KDE header files correctly.
32527
For more details about this problem, look at the end of config.log." >&2;}
32528
   { (exit 1); exit 1; }; }
32529
  fi
32530
  CPPFLAGS=$ac_save_CPPFLAGS
32531
 
32532
  ac_ext=c
32533
ac_cpp='$CPP $CPPFLAGS'
32534
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32535
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32536
ac_compiler_gnu=$ac_cv_c_compiler_gnu
32537
 
32538
 
32539
 
32540
  KDE_TEST_RPATH=
32541
 
32542
  if test -n "$USE_RPATH"; then
32543
 
32544
     if test -n "$kde_libraries"; then
32545
       KDE_TEST_RPATH="-R $kde_libraries"
32546
     fi
32547
 
32548
     if test -n "$qt_libraries"; then
32549
       KDE_TEST_RPATH="$KDE_TEST_RPATH -R $qt_libraries"
32550
     fi
32551
 
32552
     if test -n "$x_libraries"; then
32553
       KDE_TEST_RPATH="$KDE_TEST_RPATH -R $x_libraries"
32554
     fi
32555
 
32556
     KDE_TEST_RPATH="$KDE_TEST_RPATH $KDE_EXTRA_RPATH"
32557
  fi
32558
 
216 andreas 32559
{ $as_echo "$as_me:$LINENO: checking for KDE libraries installed" >&5
32560
$as_echo_n "checking for KDE libraries installed... " >&6; }
88 andreas 32561
ac_link='$LIBTOOL_SHELL --silent --mode=link ${CXX-g++} -o conftest $CXXFLAGS $all_includes $CPPFLAGS $LDFLAGS $all_libraries conftest.$ac_ext $LIBS -lkdecore $LIBQT $KDE_TEST_RPATH 1>&5'
32562
 
32563
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32564
  (eval $ac_link) 2>&5
32565
  ac_status=$?
216 andreas 32566
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 32567
  (exit $ac_status); } && test -s conftest; then
216 andreas 32568
  { $as_echo "$as_me:$LINENO: result: yes" >&5
32569
$as_echo "yes" >&6; }
88 andreas 32570
else
216 andreas 32571
  { { $as_echo "$as_me:$LINENO: error: your system fails at linking a small KDE application!
88 andreas 32572
Check, if your compiler is installed correctly and if you have used the
32573
same compiler to compile Qt and kdelibs as you did use now.
32574
For more details about this problem, look at the end of config.log." >&5
216 andreas 32575
$as_echo "$as_me: error: your system fails at linking a small KDE application!
88 andreas 32576
Check, if your compiler is installed correctly and if you have used the
32577
same compiler to compile Qt and kdelibs as you did use now.
32578
For more details about this problem, look at the end of config.log." >&2;}
32579
   { (exit 1); exit 1; }; }
32580
fi
32581
 
32582
if eval `KDEDIR= ./conftest 2>&5`; then
32583
  kde_result=done
32584
else
32585
  kde_result=problems
32586
fi
32587
 
32588
KDEDIR= ./conftest 2> /dev/null >&5 # make an echo for config.log
32589
kde_have_all_paths=yes
32590
 
32591
 
32592
  kde_cv_all_paths="kde_have_all_paths=\"yes\" \
32593
	kde_htmldir=\"$kde_htmldir\" \
32594
	kde_appsdir=\"$kde_appsdir\" \
32595
	kde_icondir=\"$kde_icondir\" \
32596
	kde_sounddir=\"$kde_sounddir\" \
32597
	kde_datadir=\"$kde_datadir\" \
32598
	kde_locale=\"$kde_locale\" \
32599
	kde_cgidir=\"$kde_cgidir\" \
32600
	kde_confdir=\"$kde_confdir\" \
32601
	kde_kcfgdir=\"$kde_kcfgdir\" \
32602
	kde_mimedir=\"$kde_mimedir\" \
32603
	kde_toolbardir=\"$kde_toolbardir\" \
32604
	kde_wallpaperdir=\"$kde_wallpaperdir\" \
32605
	kde_templatesdir=\"$kde_templatesdir\" \
32606
	kde_bindir=\"$kde_bindir\" \
32607
	kde_servicesdir=\"$kde_servicesdir\" \
32608
	kde_servicetypesdir=\"$kde_servicetypesdir\" \
32609
	kde_moduledir=\"$kde_moduledir\" \
32610
	kde_styledir=\"$kde_styledir\" \
32611
	kde_widgetdir=\"$kde_widgetdir\" \
32612
	xdg_appsdir=\"$xdg_appsdir\" \
32613
	xdg_menudir=\"$xdg_menudir\" \
32614
	xdg_directorydir=\"$xdg_directorydir\" \
32615
	kde_result=$kde_result"
32616
 
32617
 
32618
 
32619
  else
216 andreas 32620
     { { $as_echo "$as_me:$LINENO: error: path checking not yet supported for KDE 2" >&5
32621
$as_echo "$as_me: error: path checking not yet supported for KDE 2" >&2;}
88 andreas 32622
   { (exit 1); exit 1; }; }
32623
  fi
32624
 
32625
fi
32626
 
32627
  eval "$kde_cv_all_paths"
32628
   if test -z "$kde_htmldir" || test -z "$kde_appsdir" ||
32629
   test -z "$kde_icondir" || test -z "$kde_sounddir" ||
32630
   test -z "$kde_datadir" || test -z "$kde_locale"  ||
32631
   test -z "$kde_cgidir"  || test -z "$kde_confdir" ||
32632
   test -z "$kde_kcfgdir" ||
32633
   test -z "$kde_mimedir" || test -z "$kde_toolbardir" ||
32634
   test -z "$kde_wallpaperdir" || test -z "$kde_templatesdir" ||
32635
   test -z "$kde_bindir" || test -z "$kde_servicesdir" ||
32636
   test -z "$kde_servicetypesdir" || test -z "$kde_moduledir" ||
32637
   test -z "$kde_styledir" || test -z "kde_widgetdir" ||
32638
   test -z "$xdg_appsdir" || test -z "$xdg_menudir" || test -z "$xdg_directorydir" ||
32639
   test "x$kde_have_all_paths" != "xyes"; then
32640
     kde_have_all_paths=no
32641
  fi
32642
 
32643
  kde_result="$kde_result (cache overridden)"
32644
fi
32645
if test "$kde_have_all_paths" = "no"; then
216 andreas 32646
  { { $as_echo "$as_me:$LINENO: error: configure could not run a little KDE program to test the environment.
88 andreas 32647
Since it had compiled and linked before, it must be a strange problem on your system.
32648
Look at config.log for details. If you are not able to fix this, look at
32649
http://www.kde.org/faq/installation.html or any www.kde.org mirror.
32650
(If you're using an egcs version on Linux, you may update binutils!)
32651
" >&5
216 andreas 32652
$as_echo "$as_me: error: configure could not run a little KDE program to test the environment.
88 andreas 32653
Since it had compiled and linked before, it must be a strange problem on your system.
32654
Look at config.log for details. If you are not able to fix this, look at
32655
http://www.kde.org/faq/installation.html or any www.kde.org mirror.
32656
(If you're using an egcs version on Linux, you may update binutils!)
32657
" >&2;}
32658
   { (exit 1); exit 1; }; }
32659
else
32660
  rm -f conftest*
216 andreas 32661
  { $as_echo "$as_me:$LINENO: result: $kde_result" >&5
32662
$as_echo "$kde_result" >&6; }
88 andreas 32663
fi
32664
 
32665
bindir=$kde_bindir
32666
 
32667
 
32668
 
32669
# Check whether --with-arts was given.
32670
if test "${with_arts+set}" = set; then
32671
  withval=$with_arts; build_arts=$withval
32672
else
32673
  build_arts=yes
32674
 
32675
fi
32676
 
91 andreas 32677
 
32678
 
32679
if test "$build_arts" '!=' "no"; then
88 andreas 32680
  include_ARTS_TRUE=
32681
  include_ARTS_FALSE='#'
32682
else
32683
  include_ARTS_TRUE='#'
32684
  include_ARTS_FALSE=
32685
fi
32686
 
32687
    if test "$build_arts" = "no"; then
32688
 
32689
cat >>confdefs.h <<\_ACEOF
32690
#define WITHOUT_ARTS 1
32691
_ACEOF
32692
 
32693
    fi
32694
 
32695
 
32696
    kde_default_bindirs="/usr/bin /usr/local/bin /opt/local/bin /usr/X11R6/bin /opt/kde/bin /opt/kde3/bin /usr/kde/bin /usr/local/kde/bin"
32697
    test -n "$KDEDIR" && kde_default_bindirs="$KDEDIR/bin $kde_default_bindirs"
32698
    if test -n "$KDEDIRS"; then
32699
       kde_save_IFS=$IFS
32700
       IFS=:
32701
       for dir in $KDEDIRS; do
32702
            kde_default_bindirs="$dir/bin $kde_default_bindirs "
32703
       done
32704
       IFS=$kde_save_IFS
32705
    fi
32706
 
32707
        kde_default_bindirs="$exec_prefix/bin $prefix/bin $kde_libs_prefix/bin $kde_default_bindirs"
32708
 
216 andreas 32709
   { $as_echo "$as_me:$LINENO: checking for dcopidl" >&5
32710
$as_echo_n "checking for dcopidl... " >&6; }
88 andreas 32711
   if test -n "$DCOPIDL"; then
32712
        kde_cv_path="$DCOPIDL";
32713
   else
32714
        kde_cache=`echo dcopidl | sed 'y%./+-%__p_%'`
32715
 
32716
        if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
216 andreas 32717
  $as_echo_n "(cached) " >&6
88 andreas 32718
else
32719
 
32720
        kde_cv_path="NONE"
32721
	kde_save_IFS=$IFS
32722
	IFS=':'
32723
	dirs=""
32724
	for dir in $PATH; do
32725
	  dirs="$dirs $dir"
32726
	done
32727
	if test -z ""; then  	  dirs="$kde_default_bindirs $dirs"
32728
        else  	  dirs="$dirs $kde_default_bindirs"
32729
	fi
32730
	IFS=$kde_save_IFS
32731
 
32732
        for dir in $dirs; do
32733
	  if test -x "$dir/dcopidl"; then
32734
	    if test -n ""
32735
	    then
32736
              evalstr="$dir/dcopidl  2>&1 "
32737
	      if eval $evalstr; then
32738
                kde_cv_path="$dir/dcopidl"
32739
                break
32740
	      fi
32741
            else
32742
		kde_cv_path="$dir/dcopidl"
32743
                break
32744
	    fi
32745
          fi
32746
        done
32747
 
32748
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
32749
 
32750
 
32751
fi
32752
 
32753
 
32754
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
32755
 
32756
   fi
32757
 
32758
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
216 andreas 32759
      { $as_echo "$as_me:$LINENO: result: not found" >&5
32760
$as_echo "not found" >&6; }
88 andreas 32761
 
216 andreas 32762
    { { $as_echo "$as_me:$LINENO: error: The important program dcopidl was not found!
88 andreas 32763
Please check whether you installed KDE correctly.
32764
" >&5
216 andreas 32765
$as_echo "$as_me: error: The important program dcopidl was not found!
88 andreas 32766
Please check whether you installed KDE correctly.
32767
" >&2;}
32768
   { (exit 1); exit 1; }; }
32769
 
32770
   else
216 andreas 32771
      { $as_echo "$as_me:$LINENO: result: $kde_cv_path" >&5
32772
$as_echo "$kde_cv_path" >&6; }
88 andreas 32773
      DCOPIDL=$kde_cv_path
32774
 
32775
   fi
32776
 
32777
 
216 andreas 32778
   { $as_echo "$as_me:$LINENO: checking for dcopidl2cpp" >&5
32779
$as_echo_n "checking for dcopidl2cpp... " >&6; }
88 andreas 32780
   if test -n "$DCOPIDL2CPP"; then
32781
        kde_cv_path="$DCOPIDL2CPP";
32782
   else
32783
        kde_cache=`echo dcopidl2cpp | sed 'y%./+-%__p_%'`
32784
 
32785
        if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
216 andreas 32786
  $as_echo_n "(cached) " >&6
88 andreas 32787
else
32788
 
32789
        kde_cv_path="NONE"
32790
	kde_save_IFS=$IFS
32791
	IFS=':'
32792
	dirs=""
32793
	for dir in $PATH; do
32794
	  dirs="$dirs $dir"
32795
	done
32796
	if test -z ""; then  	  dirs="$kde_default_bindirs $dirs"
32797
        else  	  dirs="$dirs $kde_default_bindirs"
32798
	fi
32799
	IFS=$kde_save_IFS
32800
 
32801
        for dir in $dirs; do
32802
	  if test -x "$dir/dcopidl2cpp"; then
32803
	    if test -n ""
32804
	    then
32805
              evalstr="$dir/dcopidl2cpp  2>&1 "
32806
	      if eval $evalstr; then
32807
                kde_cv_path="$dir/dcopidl2cpp"
32808
                break
32809
	      fi
32810
            else
32811
		kde_cv_path="$dir/dcopidl2cpp"
32812
                break
32813
	    fi
32814
          fi
32815
        done
32816
 
32817
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
32818
 
32819
 
32820
fi
32821
 
32822
 
32823
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
32824
 
32825
   fi
32826
 
32827
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
216 andreas 32828
      { $as_echo "$as_me:$LINENO: result: not found" >&5
32829
$as_echo "not found" >&6; }
88 andreas 32830
 
216 andreas 32831
    { { $as_echo "$as_me:$LINENO: error: The important program dcopidl2cpp was not found!
88 andreas 32832
Please check whether you installed KDE correctly.
32833
" >&5
216 andreas 32834
$as_echo "$as_me: error: The important program dcopidl2cpp was not found!
88 andreas 32835
Please check whether you installed KDE correctly.
32836
" >&2;}
32837
   { (exit 1); exit 1; }; }
32838
 
32839
   else
216 andreas 32840
      { $as_echo "$as_me:$LINENO: result: $kde_cv_path" >&5
32841
$as_echo "$kde_cv_path" >&6; }
88 andreas 32842
      DCOPIDL2CPP=$kde_cv_path
32843
 
32844
   fi
32845
 
32846
        if test "$build_arts" '!=' "no"; then
32847
 
216 andreas 32848
   { $as_echo "$as_me:$LINENO: checking for mcopidl" >&5
32849
$as_echo_n "checking for mcopidl... " >&6; }
88 andreas 32850
   if test -n "$MCOPIDL"; then
32851
        kde_cv_path="$MCOPIDL";
32852
   else
32853
        kde_cache=`echo mcopidl | sed 'y%./+-%__p_%'`
32854
 
32855
        if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
216 andreas 32856
  $as_echo_n "(cached) " >&6
88 andreas 32857
else
32858
 
32859
        kde_cv_path="NONE"
32860
	kde_save_IFS=$IFS
32861
	IFS=':'
32862
	dirs=""
32863
	for dir in $PATH; do
32864
	  dirs="$dirs $dir"
32865
	done
32866
	if test -z ""; then  	  dirs="$kde_default_bindirs $dirs"
32867
        else  	  dirs="$dirs $kde_default_bindirs"
32868
	fi
32869
	IFS=$kde_save_IFS
32870
 
32871
        for dir in $dirs; do
32872
	  if test -x "$dir/mcopidl"; then
32873
	    if test -n ""
32874
	    then
32875
              evalstr="$dir/mcopidl  2>&1 "
32876
	      if eval $evalstr; then
32877
                kde_cv_path="$dir/mcopidl"
32878
                break
32879
	      fi
32880
            else
32881
		kde_cv_path="$dir/mcopidl"
32882
                break
32883
	    fi
32884
          fi
32885
        done
32886
 
32887
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
32888
 
32889
 
32890
fi
32891
 
32892
 
32893
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
32894
 
32895
   fi
32896
 
32897
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
216 andreas 32898
      { $as_echo "$as_me:$LINENO: result: not found" >&5
32899
$as_echo "not found" >&6; }
88 andreas 32900
 
216 andreas 32901
    { { $as_echo "$as_me:$LINENO: error: The important program mcopidl was not found!
88 andreas 32902
Please check whether you installed aRts correctly or use
32903
--without-arts to compile without aRts support (this will remove functionality).
32904
" >&5
216 andreas 32905
$as_echo "$as_me: error: The important program mcopidl was not found!
88 andreas 32906
Please check whether you installed aRts correctly or use
32907
--without-arts to compile without aRts support (this will remove functionality).
32908
" >&2;}
32909
   { (exit 1); exit 1; }; }
32910
 
32911
   else
216 andreas 32912
      { $as_echo "$as_me:$LINENO: result: $kde_cv_path" >&5
32913
$as_echo "$kde_cv_path" >&6; }
88 andreas 32914
      MCOPIDL=$kde_cv_path
32915
 
32916
   fi
32917
 
32918
 
216 andreas 32919
   { $as_echo "$as_me:$LINENO: checking for artsc-config" >&5
32920
$as_echo_n "checking for artsc-config... " >&6; }
88 andreas 32921
   if test -n "$ARTSCCONFIG"; then
32922
        kde_cv_path="$ARTSCCONFIG";
32923
   else
32924
        kde_cache=`echo artsc-config | sed 'y%./+-%__p_%'`
32925
 
32926
        if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
216 andreas 32927
  $as_echo_n "(cached) " >&6
88 andreas 32928
else
32929
 
32930
        kde_cv_path="NONE"
32931
	kde_save_IFS=$IFS
32932
	IFS=':'
32933
	dirs=""
32934
	for dir in $PATH; do
32935
	  dirs="$dirs $dir"
32936
	done
32937
	if test -z ""; then  	  dirs="$kde_default_bindirs $dirs"
32938
        else  	  dirs="$dirs $kde_default_bindirs"
32939
	fi
32940
	IFS=$kde_save_IFS
32941
 
32942
        for dir in $dirs; do
32943
	  if test -x "$dir/artsc-config"; then
32944
	    if test -n ""
32945
	    then
32946
              evalstr="$dir/artsc-config  2>&1 "
32947
	      if eval $evalstr; then
32948
                kde_cv_path="$dir/artsc-config"
32949
                break
32950
	      fi
32951
            else
32952
		kde_cv_path="$dir/artsc-config"
32953
                break
32954
	    fi
32955
          fi
32956
        done
32957
 
32958
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
32959
 
32960
 
32961
fi
32962
 
32963
 
32964
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
32965
 
32966
   fi
32967
 
32968
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
216 andreas 32969
      { $as_echo "$as_me:$LINENO: result: not found" >&5
32970
$as_echo "not found" >&6; }
88 andreas 32971
 
216 andreas 32972
    { { $as_echo "$as_me:$LINENO: error: The important program artsc-config was not found!
88 andreas 32973
Please check whether you installed aRts correctly or use
32974
--without-arts to compile without aRts support (this will remove functionality).
32975
" >&5
216 andreas 32976
$as_echo "$as_me: error: The important program artsc-config was not found!
88 andreas 32977
Please check whether you installed aRts correctly or use
32978
--without-arts to compile without aRts support (this will remove functionality).
32979
" >&2;}
32980
   { (exit 1); exit 1; }; }
32981
 
32982
   else
216 andreas 32983
      { $as_echo "$as_me:$LINENO: result: $kde_cv_path" >&5
32984
$as_echo "$kde_cv_path" >&6; }
88 andreas 32985
      ARTSCCONFIG=$kde_cv_path
32986
 
32987
   fi
32988
 
32989
        fi
32990
 
216 andreas 32991
   { $as_echo "$as_me:$LINENO: checking for meinproc" >&5
32992
$as_echo_n "checking for meinproc... " >&6; }
88 andreas 32993
   if test -n "$MEINPROC"; then
32994
        kde_cv_path="$MEINPROC";
32995
   else
32996
        kde_cache=`echo meinproc | sed 'y%./+-%__p_%'`
32997
 
32998
        if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
216 andreas 32999
  $as_echo_n "(cached) " >&6
88 andreas 33000
else
33001
 
33002
        kde_cv_path="NONE"
33003
	kde_save_IFS=$IFS
33004
	IFS=':'
33005
	dirs=""
33006
	for dir in $PATH; do
33007
	  dirs="$dirs $dir"
33008
	done
33009
	if test -z ""; then  	  dirs="$kde_default_bindirs $dirs"
33010
        else  	  dirs="$dirs $kde_default_bindirs"
33011
	fi
33012
	IFS=$kde_save_IFS
33013
 
33014
        for dir in $dirs; do
33015
	  if test -x "$dir/meinproc"; then
33016
	    if test -n ""
33017
	    then
33018
              evalstr="$dir/meinproc  2>&1 "
33019
	      if eval $evalstr; then
33020
                kde_cv_path="$dir/meinproc"
33021
                break
33022
	      fi
33023
            else
33024
		kde_cv_path="$dir/meinproc"
33025
                break
33026
	    fi
33027
          fi
33028
        done
33029
 
33030
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
33031
 
33032
 
33033
fi
33034
 
33035
 
33036
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
33037
 
33038
   fi
33039
 
33040
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
216 andreas 33041
      { $as_echo "$as_me:$LINENO: result: not found" >&5
33042
$as_echo "not found" >&6; }
88 andreas 33043
 
33044
   else
216 andreas 33045
      { $as_echo "$as_me:$LINENO: result: $kde_cv_path" >&5
33046
$as_echo "$kde_cv_path" >&6; }
88 andreas 33047
      MEINPROC=$kde_cv_path
33048
 
33049
   fi
33050
 
33051
 
33052
        kde32ornewer=1
33053
        kde33ornewer=1
33054
        if test -n "$kde_qtver" && test "$kde_qtver" -lt 3; then
33055
            kde32ornewer=
33056
            kde33ornewer=
33057
        else
33058
            if test "$kde_qtver" = "3"; then
33059
              if test "$kde_qtsubver" -le 1; then
33060
                kde32ornewer=
33061
              fi
33062
              if test "$kde_qtsubver" -le 2; then
33063
                kde33ornewer=
33064
              fi
33065
              if test "$KDECONFIG" != "compiled"; then
33066
                if test `$KDECONFIG --version | grep KDE | sed 's/KDE: \(...\).*/\1/'` = 3.2; then
33067
                  kde33ornewer=
33068
                fi
33069
              fi
33070
            fi
33071
        fi
33072
 
33073
        if test -n "$kde32ornewer"; then
33074
 
216 andreas 33075
   { $as_echo "$as_me:$LINENO: checking for kconfig_compiler" >&5
33076
$as_echo_n "checking for kconfig_compiler... " >&6; }
88 andreas 33077
   if test -n "$KCONFIG_COMPILER"; then
33078
        kde_cv_path="$KCONFIG_COMPILER";
33079
   else
33080
        kde_cache=`echo kconfig_compiler | sed 'y%./+-%__p_%'`
33081
 
33082
        if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
216 andreas 33083
  $as_echo_n "(cached) " >&6
88 andreas 33084
else
33085
 
33086
        kde_cv_path="NONE"
33087
	kde_save_IFS=$IFS
33088
	IFS=':'
33089
	dirs=""
33090
	for dir in $PATH; do
33091
	  dirs="$dirs $dir"
33092
	done
33093
	if test -z ""; then  	  dirs="$kde_default_bindirs $dirs"
33094
        else  	  dirs="$dirs $kde_default_bindirs"
33095
	fi
33096
	IFS=$kde_save_IFS
33097
 
33098
        for dir in $dirs; do
33099
	  if test -x "$dir/kconfig_compiler"; then
33100
	    if test -n ""
33101
	    then
33102
              evalstr="$dir/kconfig_compiler  2>&1 "
33103
	      if eval $evalstr; then
33104
                kde_cv_path="$dir/kconfig_compiler"
33105
                break
33106
	      fi
33107
            else
33108
		kde_cv_path="$dir/kconfig_compiler"
33109
                break
33110
	    fi
33111
          fi
33112
        done
33113
 
33114
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
33115
 
33116
 
33117
fi
33118
 
33119
 
33120
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
33121
 
33122
   fi
33123
 
33124
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
216 andreas 33125
      { $as_echo "$as_me:$LINENO: result: not found" >&5
33126
$as_echo "not found" >&6; }
88 andreas 33127
 
216 andreas 33128
    { { $as_echo "$as_me:$LINENO: error: The important program kconfig_compiler was not found!
88 andreas 33129
Please check whether you installed KDE correctly.
33130
" >&5
216 andreas 33131
$as_echo "$as_me: error: The important program kconfig_compiler was not found!
88 andreas 33132
Please check whether you installed KDE correctly.
33133
" >&2;}
33134
   { (exit 1); exit 1; }; }
33135
 
33136
   else
216 andreas 33137
      { $as_echo "$as_me:$LINENO: result: $kde_cv_path" >&5
33138
$as_echo "$kde_cv_path" >&6; }
88 andreas 33139
      KCONFIG_COMPILER=$kde_cv_path
33140
 
33141
   fi
33142
 
33143
 
216 andreas 33144
   { $as_echo "$as_me:$LINENO: checking for dcopidlng" >&5
33145
$as_echo_n "checking for dcopidlng... " >&6; }
88 andreas 33146
   if test -n "$DCOPIDLNG"; then
33147
        kde_cv_path="$DCOPIDLNG";
33148
   else
33149
        kde_cache=`echo dcopidlng | sed 'y%./+-%__p_%'`
33150
 
33151
        if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
216 andreas 33152
  $as_echo_n "(cached) " >&6
88 andreas 33153
else
33154
 
33155
        kde_cv_path="NONE"
33156
	kde_save_IFS=$IFS
33157
	IFS=':'
33158
	dirs=""
33159
	for dir in $PATH; do
33160
	  dirs="$dirs $dir"
33161
	done
33162
	if test -z ""; then  	  dirs="$kde_default_bindirs $dirs"
33163
        else  	  dirs="$dirs $kde_default_bindirs"
33164
	fi
33165
	IFS=$kde_save_IFS
33166
 
33167
        for dir in $dirs; do
33168
	  if test -x "$dir/dcopidlng"; then
33169
	    if test -n ""
33170
	    then
33171
              evalstr="$dir/dcopidlng  2>&1 "
33172
	      if eval $evalstr; then
33173
                kde_cv_path="$dir/dcopidlng"
33174
                break
33175
	      fi
33176
            else
33177
		kde_cv_path="$dir/dcopidlng"
33178
                break
33179
	    fi
33180
          fi
33181
        done
33182
 
33183
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
33184
 
33185
 
33186
fi
33187
 
33188
 
33189
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
33190
 
33191
   fi
33192
 
33193
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
216 andreas 33194
      { $as_echo "$as_me:$LINENO: result: not found" >&5
33195
$as_echo "not found" >&6; }
88 andreas 33196
 
216 andreas 33197
    { { $as_echo "$as_me:$LINENO: error: The important program dcopidlng was not found!
88 andreas 33198
Please check whether you installed KDE correctly.
33199
" >&5
216 andreas 33200
$as_echo "$as_me: error: The important program dcopidlng was not found!
88 andreas 33201
Please check whether you installed KDE correctly.
33202
" >&2;}
33203
   { (exit 1); exit 1; }; }
33204
 
33205
   else
216 andreas 33206
      { $as_echo "$as_me:$LINENO: result: $kde_cv_path" >&5
33207
$as_echo "$kde_cv_path" >&6; }
88 andreas 33208
      DCOPIDLNG=$kde_cv_path
33209
 
33210
   fi
33211
 
33212
        fi
33213
        if test -n "$kde33ornewer"; then
33214
 
216 andreas 33215
   { $as_echo "$as_me:$LINENO: checking for makekdewidgets" >&5
33216
$as_echo_n "checking for makekdewidgets... " >&6; }
88 andreas 33217
   if test -n "$MAKEKDEWIDGETS"; then
33218
        kde_cv_path="$MAKEKDEWIDGETS";
33219
   else
33220
        kde_cache=`echo makekdewidgets | sed 'y%./+-%__p_%'`
33221
 
33222
        if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
216 andreas 33223
  $as_echo_n "(cached) " >&6
88 andreas 33224
else
33225
 
33226
        kde_cv_path="NONE"
33227
	kde_save_IFS=$IFS
33228
	IFS=':'
33229
	dirs=""
33230
	for dir in $PATH; do
33231
	  dirs="$dirs $dir"
33232
	done
33233
	if test -z ""; then  	  dirs="$kde_default_bindirs $dirs"
33234
        else  	  dirs="$dirs $kde_default_bindirs"
33235
	fi
33236
	IFS=$kde_save_IFS
33237
 
33238
        for dir in $dirs; do
33239
	  if test -x "$dir/makekdewidgets"; then
33240
	    if test -n ""
33241
	    then
33242
              evalstr="$dir/makekdewidgets  2>&1 "
33243
	      if eval $evalstr; then
33244
                kde_cv_path="$dir/makekdewidgets"
33245
                break
33246
	      fi
33247
            else
33248
		kde_cv_path="$dir/makekdewidgets"
33249
                break
33250
	    fi
33251
          fi
33252
        done
33253
 
33254
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
33255
 
33256
 
33257
fi
33258
 
33259
 
33260
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
33261
 
33262
   fi
33263
 
33264
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
216 andreas 33265
      { $as_echo "$as_me:$LINENO: result: not found" >&5
33266
$as_echo "not found" >&6; }
88 andreas 33267
 
216 andreas 33268
    { { $as_echo "$as_me:$LINENO: error: The important program makekdewidgets was not found!
88 andreas 33269
Please check whether you installed KDE correctly.
33270
" >&5
216 andreas 33271
$as_echo "$as_me: error: The important program makekdewidgets was not found!
88 andreas 33272
Please check whether you installed KDE correctly.
33273
" >&2;}
33274
   { (exit 1); exit 1; }; }
33275
 
33276
   else
216 andreas 33277
      { $as_echo "$as_me:$LINENO: result: $kde_cv_path" >&5
33278
$as_echo "$kde_cv_path" >&6; }
88 andreas 33279
      MAKEKDEWIDGETS=$kde_cv_path
33280
 
33281
   fi
33282
 
33283
 
33284
        fi
33285
 
216 andreas 33286
   { $as_echo "$as_me:$LINENO: checking for xmllint" >&5
33287
$as_echo_n "checking for xmllint... " >&6; }
88 andreas 33288
   if test -n "$XMLLINT"; then
33289
        kde_cv_path="$XMLLINT";
33290
   else
33291
        kde_cache=`echo xmllint | sed 'y%./+-%__p_%'`
33292
 
33293
        if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
216 andreas 33294
  $as_echo_n "(cached) " >&6
88 andreas 33295
else
33296
 
33297
        kde_cv_path="NONE"
33298
	kde_save_IFS=$IFS
33299
	IFS=':'
33300
	dirs=""
33301
	for dir in $PATH; do
33302
	  dirs="$dirs $dir"
33303
	done
33304
	if test -z ""; then  	  dirs="${prefix}/bin ${exec_prefix}/bin $dirs"
33305
        else  	  dirs="$dirs ${prefix}/bin ${exec_prefix}/bin"
33306
	fi
33307
	IFS=$kde_save_IFS
33308
 
33309
        for dir in $dirs; do
33310
	  if test -x "$dir/xmllint"; then
33311
	    if test -n ""
33312
	    then
33313
              evalstr="$dir/xmllint  2>&1 "
33314
	      if eval $evalstr; then
33315
                kde_cv_path="$dir/xmllint"
33316
                break
33317
	      fi
33318
            else
33319
		kde_cv_path="$dir/xmllint"
33320
                break
33321
	    fi
33322
          fi
33323
        done
33324
 
33325
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
33326
 
33327
 
33328
fi
33329
 
33330
 
33331
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
33332
 
33333
   fi
33334
 
33335
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
216 andreas 33336
      { $as_echo "$as_me:$LINENO: result: not found" >&5
33337
$as_echo "not found" >&6; }
88 andreas 33338
      XMLLINT=""
33339
   else
216 andreas 33340
      { $as_echo "$as_me:$LINENO: result: $kde_cv_path" >&5
33341
$as_echo "$kde_cv_path" >&6; }
88 andreas 33342
      XMLLINT=$kde_cv_path
33343
 
33344
   fi
33345
 
33346
 
33347
        if test -n "$MEINPROC" -a "$MEINPROC" != "compiled"; then
33348
 	    kde_sharedirs="/usr/share/kde /usr/local/share /usr/share /opt/kde3/share /opt/kde/share $prefix/share"
33349
            test -n "$KDEDIR" && kde_sharedirs="$KDEDIR/share $kde_sharedirs"
33350
 
33351
KDE_XSL_STYLESHEET=NO
33352
for i in $kde_sharedirs;
33353
do
33354
  for j in apps/ksgmltools2/customization/kde-chunk.xsl;
33355
  do
216 andreas 33356
    echo "configure: 33356: $i/$j" >&5
88 andreas 33357
    if test -r "$i/$j"; then
33358
      echo "taking that" >&5
33359
      KDE_XSL_STYLESHEET=$i
33360
      break 2
33361
    fi
33362
  done
33363
done
33364
 
33365
	    if test "$KDE_XSL_STYLESHEET" = "NO"; then
33366
		KDE_XSL_STYLESHEET=""
33367
	    else
33368
                KDE_XSL_STYLESHEET="$KDE_XSL_STYLESHEET/apps/ksgmltools2/customization/kde-chunk.xsl"
33369
	    fi
33370
        fi
33371
 
33372
        DCOP_DEPENDENCIES='$(DCOPIDL)'
33373
        if test -n "$kde32ornewer"; then
33374
            KCFG_DEPENDENCIES='$(KCONFIG_COMPILER)'
33375
            DCOP_DEPENDENCIES='$(DCOPIDL) $(DCOPIDLNG)'
33376
 
33377
 
33378
 
33379
        fi
33380
 
33381
 
33382
 
33383
 
33384
 
33385
 
33386
 
33387
 
33388
 
33389
 
33390
 
33391
 
33392
 
33393
 
33394
 
33395
 
33396
 
33397
 
33398
 
33399
 
33400
 
33401
 
33402
 
33403
 
33404
 
33405
 
33406
 
33407
 
33408
 
33409
 
33410
 
33411
kdeinitdir='$(kde_moduledir)'
33412
 
33413
 
33414
 
33415
if test "$kde_qtver" = 1; then
33416
  kde_minidir="$kde_icondir/mini"
33417
else
33418
# for KDE 1 - this breaks KDE2 apps using minidir, but
33419
# that's the plan ;-/
33420
  kde_minidir="/dev/null"
33421
fi
33422
 
33423
 
33424
 
33425
 
33426
 
33427
 
33428
if test $kde_qtver = 3; then
33429
   case $host in
33430
               *cygwin*) lib_kded="-lkdeinit_kded" ;;
33431
               *) lib_kded="" ;;
33432
       esac
33433
   LIB_KDED=$lib_kded
33434
 
33435
   LIB_KDECORE="-lkdecore"
33436
 
33437
   LIB_KDEUI="-lkdeui"
33438
 
33439
   LIB_KIO="-lkio"
33440
 
33441
   LIB_KJS="-lkjs"
33442
 
33443
   LIB_SMB="-lsmb"
33444
 
33445
   LIB_KAB="-lkab"
33446
 
33447
   LIB_KABC="-lkabc"
33448
 
33449
   LIB_KHTML="-lkhtml"
33450
 
33451
   LIB_KSPELL="-lkspell"
33452
 
33453
   LIB_KPARTS="-lkparts"
33454
 
33455
   LIB_KDEPRINT="-lkdeprint"
33456
 
33457
   LIB_KUTILS="-lkutils"
33458
 
33459
   LIB_KDEPIM="-lkdepim"
33460
 
33461
   LIB_KIMPROXY="-lkimproxy"
33462
 
33463
   LIB_KNEWSTUFF="-lknewstuff"
33464
 
33465
   LIB_KDNSSD="-lkdnssd"
33466
 
33467
   LIB_KUNITTEST="-lkunittest"
33468
 
33469
# these are for backward compatibility
33470
   LIB_KSYCOCA="-lkio"
33471
 
33472
   LIB_KFILE="-lkio"
33473
 
33474
elif test $kde_qtver = 2; then
33475
   LIB_KDECORE="-lkdecore"
33476
 
33477
   LIB_KDEUI="-lkdeui"
33478
 
33479
   LIB_KIO="-lkio"
33480
 
33481
   LIB_KSYCOCA="-lksycoca"
33482
 
33483
   LIB_SMB="-lsmb"
33484
 
33485
   LIB_KFILE="-lkfile"
33486
 
33487
   LIB_KAB="-lkab"
33488
 
33489
   LIB_KHTML="-lkhtml"
33490
 
33491
   LIB_KSPELL="-lkspell"
33492
 
33493
   LIB_KPARTS="-lkparts"
33494
 
33495
   LIB_KDEPRINT="-lkdeprint"
33496
 
33497
else
33498
   LIB_KDECORE="-lkdecore -lXext $(LIB_QT)"
33499
 
33500
   LIB_KDEUI="-lkdeui $(LIB_KDECORE)"
33501
 
33502
   LIB_KFM="-lkfm $(LIB_KDECORE)"
33503
 
33504
   LIB_KFILE="-lkfile $(LIB_KFM) $(LIB_KDEUI)"
33505
 
33506
   LIB_KAB="-lkab $(LIB_KIMGIO) $(LIB_KDECORE)"
33507
 
33508
fi
33509
 
33510
 
33511
 
33512
#MIN_CONFIG(3.2.0)
33513
 
216 andreas 33514
 
33515
 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
33516
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
88 andreas 33517
if test "${ac_cv_c_bigendian+set}" = set; then
216 andreas 33518
  $as_echo_n "(cached) " >&6
88 andreas 33519
else
216 andreas 33520
  ac_cv_c_bigendian=unknown
33521
    # See if we're dealing with a universal compiler.
33522
    cat >conftest.$ac_ext <<_ACEOF
88 andreas 33523
/* confdefs.h.  */
33524
_ACEOF
33525
cat confdefs.h >>conftest.$ac_ext
33526
cat >>conftest.$ac_ext <<_ACEOF
33527
/* end confdefs.h.  */
216 andreas 33528
#ifndef __APPLE_CC__
33529
	       not a universal capable compiler
33530
	     #endif
33531
	     typedef int dummy;
33532
 
33533
_ACEOF
33534
rm -f conftest.$ac_objext
33535
if { (ac_try="$ac_compile"
33536
case "(($ac_try" in
33537
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33538
  *) ac_try_echo=$ac_try;;
33539
esac
33540
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33541
$as_echo "$ac_try_echo") >&5
33542
  (eval "$ac_compile") 2>conftest.er1
33543
  ac_status=$?
33544
  grep -v '^ *+' conftest.er1 >conftest.err
33545
  rm -f conftest.er1
33546
  cat conftest.err >&5
33547
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33548
  (exit $ac_status); } && {
33549
	 test -z "$ac_c_werror_flag" ||
33550
	 test ! -s conftest.err
33551
       } && test -s conftest.$ac_objext; then
33552
 
33553
	# Check for potential -arch flags.  It is not universal unless
33554
	# there are some -arch flags.  Note that *ppc* also matches
33555
	# ppc64.  This check is also rather less than ideal.
33556
	case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
33557
	  *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
33558
	esac
33559
else
33560
  $as_echo "$as_me: failed program was:" >&5
33561
sed 's/^/| /' conftest.$ac_ext >&5
33562
 
33563
 
33564
fi
33565
 
33566
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33567
    if test $ac_cv_c_bigendian = unknown; then
33568
      # See if sys/param.h defines the BYTE_ORDER macro.
33569
      cat >conftest.$ac_ext <<_ACEOF
33570
/* confdefs.h.  */
33571
_ACEOF
33572
cat confdefs.h >>conftest.$ac_ext
33573
cat >>conftest.$ac_ext <<_ACEOF
33574
/* end confdefs.h.  */
88 andreas 33575
#include <sys/types.h>
216 andreas 33576
	     #include <sys/param.h>
88 andreas 33577
 
33578
int
33579
main ()
33580
{
216 andreas 33581
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
33582
		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
33583
		     && LITTLE_ENDIAN)
33584
	      bogus endian macros
33585
	     #endif
88 andreas 33586
 
33587
  ;
33588
  return 0;
33589
}
33590
_ACEOF
33591
rm -f conftest.$ac_objext
33592
if { (ac_try="$ac_compile"
33593
case "(($ac_try" in
33594
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33595
  *) ac_try_echo=$ac_try;;
33596
esac
216 andreas 33597
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33598
$as_echo "$ac_try_echo") >&5
88 andreas 33599
  (eval "$ac_compile") 2>conftest.er1
33600
  ac_status=$?
33601
  grep -v '^ *+' conftest.er1 >conftest.err
33602
  rm -f conftest.er1
33603
  cat conftest.err >&5
216 andreas 33604
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 33605
  (exit $ac_status); } && {
33606
	 test -z "$ac_c_werror_flag" ||
33607
	 test ! -s conftest.err
33608
       } && test -s conftest.$ac_objext; then
33609
  # It does; now see whether it defined to BIG_ENDIAN or not.
216 andreas 33610
	 cat >conftest.$ac_ext <<_ACEOF
88 andreas 33611
/* confdefs.h.  */
33612
_ACEOF
33613
cat confdefs.h >>conftest.$ac_ext
33614
cat >>conftest.$ac_ext <<_ACEOF
33615
/* end confdefs.h.  */
33616
#include <sys/types.h>
216 andreas 33617
		#include <sys/param.h>
88 andreas 33618
 
33619
int
33620
main ()
33621
{
33622
#if BYTE_ORDER != BIG_ENDIAN
216 andreas 33623
		 not big endian
33624
		#endif
88 andreas 33625
 
33626
  ;
33627
  return 0;
33628
}
33629
_ACEOF
33630
rm -f conftest.$ac_objext
33631
if { (ac_try="$ac_compile"
33632
case "(($ac_try" in
33633
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33634
  *) ac_try_echo=$ac_try;;
33635
esac
216 andreas 33636
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33637
$as_echo "$ac_try_echo") >&5
88 andreas 33638
  (eval "$ac_compile") 2>conftest.er1
33639
  ac_status=$?
33640
  grep -v '^ *+' conftest.er1 >conftest.err
33641
  rm -f conftest.er1
33642
  cat conftest.err >&5
216 andreas 33643
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 33644
  (exit $ac_status); } && {
33645
	 test -z "$ac_c_werror_flag" ||
33646
	 test ! -s conftest.err
33647
       } && test -s conftest.$ac_objext; then
33648
  ac_cv_c_bigendian=yes
33649
else
216 andreas 33650
  $as_echo "$as_me: failed program was:" >&5
88 andreas 33651
sed 's/^/| /' conftest.$ac_ext >&5
33652
 
33653
	ac_cv_c_bigendian=no
33654
fi
33655
 
33656
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33657
else
216 andreas 33658
  $as_echo "$as_me: failed program was:" >&5
88 andreas 33659
sed 's/^/| /' conftest.$ac_ext >&5
33660
 
216 andreas 33661
 
33662
fi
33663
 
33664
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33665
    fi
33666
    if test $ac_cv_c_bigendian = unknown; then
33667
      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
33668
      cat >conftest.$ac_ext <<_ACEOF
88 andreas 33669
/* confdefs.h.  */
33670
_ACEOF
33671
cat confdefs.h >>conftest.$ac_ext
33672
cat >>conftest.$ac_ext <<_ACEOF
33673
/* end confdefs.h.  */
216 andreas 33674
#include <limits.h>
33675
 
88 andreas 33676
int
33677
main ()
33678
{
216 andreas 33679
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
33680
	      bogus endian macros
33681
	     #endif
33682
 
88 andreas 33683
  ;
33684
  return 0;
33685
}
33686
_ACEOF
33687
rm -f conftest.$ac_objext
33688
if { (ac_try="$ac_compile"
33689
case "(($ac_try" in
33690
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33691
  *) ac_try_echo=$ac_try;;
33692
esac
216 andreas 33693
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33694
$as_echo "$ac_try_echo") >&5
88 andreas 33695
  (eval "$ac_compile") 2>conftest.er1
33696
  ac_status=$?
33697
  grep -v '^ *+' conftest.er1 >conftest.err
33698
  rm -f conftest.er1
33699
  cat conftest.err >&5
216 andreas 33700
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 33701
  (exit $ac_status); } && {
33702
	 test -z "$ac_c_werror_flag" ||
33703
	 test ! -s conftest.err
33704
       } && test -s conftest.$ac_objext; then
216 andreas 33705
  # It does; now see whether it defined to _BIG_ENDIAN or not.
33706
	 cat >conftest.$ac_ext <<_ACEOF
33707
/* confdefs.h.  */
33708
_ACEOF
33709
cat confdefs.h >>conftest.$ac_ext
33710
cat >>conftest.$ac_ext <<_ACEOF
33711
/* end confdefs.h.  */
33712
#include <limits.h>
33713
 
33714
int
33715
main ()
33716
{
33717
#ifndef _BIG_ENDIAN
33718
		 not big endian
33719
		#endif
33720
 
33721
  ;
33722
  return 0;
33723
}
33724
_ACEOF
33725
rm -f conftest.$ac_objext
33726
if { (ac_try="$ac_compile"
33727
case "(($ac_try" in
33728
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33729
  *) ac_try_echo=$ac_try;;
33730
esac
33731
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33732
$as_echo "$ac_try_echo") >&5
33733
  (eval "$ac_compile") 2>conftest.er1
33734
  ac_status=$?
33735
  grep -v '^ *+' conftest.er1 >conftest.err
33736
  rm -f conftest.er1
33737
  cat conftest.err >&5
33738
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33739
  (exit $ac_status); } && {
33740
	 test -z "$ac_c_werror_flag" ||
33741
	 test ! -s conftest.err
33742
       } && test -s conftest.$ac_objext; then
88 andreas 33743
  ac_cv_c_bigendian=yes
216 andreas 33744
else
33745
  $as_echo "$as_me: failed program was:" >&5
33746
sed 's/^/| /' conftest.$ac_ext >&5
33747
 
33748
	ac_cv_c_bigendian=no
88 andreas 33749
fi
216 andreas 33750
 
33751
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33752
else
33753
  $as_echo "$as_me: failed program was:" >&5
33754
sed 's/^/| /' conftest.$ac_ext >&5
33755
 
33756
 
88 andreas 33757
fi
216 andreas 33758
 
33759
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33760
    fi
33761
    if test $ac_cv_c_bigendian = unknown; then
33762
      # Compile a test program.
33763
      if test "$cross_compiling" = yes; then
33764
  # Try to guess by grepping values from an object file.
33765
	 cat >conftest.$ac_ext <<_ACEOF
33766
/* confdefs.h.  */
33767
_ACEOF
33768
cat confdefs.h >>conftest.$ac_ext
33769
cat >>conftest.$ac_ext <<_ACEOF
33770
/* end confdefs.h.  */
33771
short int ascii_mm[] =
33772
		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
33773
		short int ascii_ii[] =
33774
		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
33775
		int use_ascii (int i) {
33776
		  return ascii_mm[i] + ascii_ii[i];
33777
		}
33778
		short int ebcdic_ii[] =
33779
		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
33780
		short int ebcdic_mm[] =
33781
		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
33782
		int use_ebcdic (int i) {
33783
		  return ebcdic_mm[i] + ebcdic_ii[i];
33784
		}
33785
		extern int foo;
33786
 
33787
int
33788
main ()
33789
{
33790
return use_ascii (foo) == use_ebcdic (foo);
33791
  ;
33792
  return 0;
33793
}
33794
_ACEOF
33795
rm -f conftest.$ac_objext
33796
if { (ac_try="$ac_compile"
33797
case "(($ac_try" in
33798
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33799
  *) ac_try_echo=$ac_try;;
33800
esac
33801
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33802
$as_echo "$ac_try_echo") >&5
33803
  (eval "$ac_compile") 2>conftest.er1
33804
  ac_status=$?
33805
  grep -v '^ *+' conftest.er1 >conftest.err
33806
  rm -f conftest.er1
33807
  cat conftest.err >&5
33808
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33809
  (exit $ac_status); } && {
33810
	 test -z "$ac_c_werror_flag" ||
33811
	 test ! -s conftest.err
33812
       } && test -s conftest.$ac_objext; then
33813
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
33814
	      ac_cv_c_bigendian=yes
33815
	    fi
33816
	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
33817
	      if test "$ac_cv_c_bigendian" = unknown; then
33818
		ac_cv_c_bigendian=no
33819
	      else
33820
		# finding both strings is unlikely to happen, but who knows?
33821
		ac_cv_c_bigendian=unknown
33822
	      fi
33823
	    fi
88 andreas 33824
else
216 andreas 33825
  $as_echo "$as_me: failed program was:" >&5
88 andreas 33826
sed 's/^/| /' conftest.$ac_ext >&5
33827
 
33828
 
33829
fi
33830
 
33831
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33832
else
33833
  cat >conftest.$ac_ext <<_ACEOF
33834
/* confdefs.h.  */
33835
_ACEOF
33836
cat confdefs.h >>conftest.$ac_ext
33837
cat >>conftest.$ac_ext <<_ACEOF
33838
/* end confdefs.h.  */
33839
$ac_includes_default
33840
int
33841
main ()
33842
{
33843
 
216 andreas 33844
	     /* Are we little or big endian?  From Harbison&Steele.  */
33845
	     union
33846
	     {
33847
	       long int l;
33848
	       char c[sizeof (long int)];
33849
	     } u;
33850
	     u.l = 1;
33851
	     return u.c[sizeof (long int) - 1] == 1;
88 andreas 33852
 
33853
  ;
33854
  return 0;
33855
}
33856
_ACEOF
33857
rm -f conftest$ac_exeext
33858
if { (ac_try="$ac_link"
33859
case "(($ac_try" in
33860
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33861
  *) ac_try_echo=$ac_try;;
33862
esac
216 andreas 33863
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33864
$as_echo "$ac_try_echo") >&5
88 andreas 33865
  (eval "$ac_link") 2>&5
33866
  ac_status=$?
216 andreas 33867
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 33868
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33869
  { (case "(($ac_try" in
33870
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33871
  *) ac_try_echo=$ac_try;;
33872
esac
216 andreas 33873
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33874
$as_echo "$ac_try_echo") >&5
88 andreas 33875
  (eval "$ac_try") 2>&5
33876
  ac_status=$?
216 andreas 33877
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 33878
  (exit $ac_status); }; }; then
33879
  ac_cv_c_bigendian=no
33880
else
216 andreas 33881
  $as_echo "$as_me: program exited with status $ac_status" >&5
33882
$as_echo "$as_me: failed program was:" >&5
88 andreas 33883
sed 's/^/| /' conftest.$ac_ext >&5
33884
 
33885
( exit $ac_status )
33886
ac_cv_c_bigendian=yes
33887
fi
216 andreas 33888
rm -rf conftest.dSYM
88 andreas 33889
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33890
fi
33891
 
33892
 
216 andreas 33893
    fi
88 andreas 33894
fi
216 andreas 33895
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
33896
$as_echo "$ac_cv_c_bigendian" >&6; }
33897
 case $ac_cv_c_bigendian in #(
33898
   yes)
33899
     cat >>confdefs.h <<\_ACEOF
33900
#define WORDS_BIGENDIAN 1
33901
_ACEOF
33902
;; #(
33903
   no)
33904
      ;; #(
33905
   universal)
88 andreas 33906
 
33907
cat >>confdefs.h <<\_ACEOF
216 andreas 33908
#define AC_APPLE_UNIVERSAL_BUILD 1
88 andreas 33909
_ACEOF
216 andreas 33910
 
33911
     ;; #(
33912
   *)
33913
     { { $as_echo "$as_me:$LINENO: error: unknown endianness
33914
 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
33915
$as_echo "$as_me: error: unknown endianness
33916
 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
88 andreas 33917
   { (exit 1); exit 1; }; } ;;
216 andreas 33918
 esac
88 andreas 33919
 
33920
 
216 andreas 33921
{ $as_echo "$as_me:$LINENO: checking for MAXPATHLEN" >&5
33922
$as_echo_n "checking for MAXPATHLEN... " >&6; }
88 andreas 33923
if test "${ac_cv_maxpathlen+set}" = set; then
216 andreas 33924
  $as_echo_n "(cached) " >&6
88 andreas 33925
else
33926
 
33927
cat > conftest.$ac_ext <<EOF
33928
#ifdef STDC_HEADERS
33929
# include <stdlib.h>
33930
#endif
33931
#include <stdio.h>
33932
#include <sys/param.h>
33933
#ifndef MAXPATHLEN
33934
#define MAXPATHLEN 1024
33935
#endif
33936
 
33937
KDE_HELLO MAXPATHLEN
33938
 
33939
EOF
33940
 
33941
ac_try="$ac_cpp conftest.$ac_ext 2>/dev/null | grep '^KDE_HELLO' >conftest.out"
33942
 
33943
if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33944
  (eval $ac_try) 2>&5
33945
  ac_status=$?
216 andreas 33946
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88 andreas 33947
  (exit $ac_status); } && test -s conftest.out; then
33948
    ac_cv_maxpathlen=`sed 's#KDE_HELLO ##' conftest.out`
33949
else
33950
    ac_cv_maxpathlen=1024
33951
fi
33952
 
33953
rm conftest.*
33954
 
33955
 
33956
fi
33957
 
216 andreas 33958
{ $as_echo "$as_me:$LINENO: result: $ac_cv_maxpathlen" >&5
33959
$as_echo "$ac_cv_maxpathlen" >&6; }
88 andreas 33960
 
33961
cat >>confdefs.h <<_ACEOF
33962
#define KDEMAXPATHLEN $ac_cv_maxpathlen
33963
_ACEOF
33964
 
33965
 
33966
 
33967
 
33968
 
33969
DO_NOT_COMPILE="$DO_NOT_COMPILE CVS debian bsd-port admin"
33970
TOPSUBDIRS=""
33971
 
33972
if test ! -s $srcdir/subdirs; then
33973
    files=`cd $srcdir && ls -1`
33974
  dirs=`for i in $files; do if test -d $i; then echo $i; fi; done`
33975
  for i in $dirs; do
33976
    echo $i >> $srcdir/subdirs
33977
  done
33978
fi
33979
 
33980
ac_topsubdirs=
33981
if test -s $srcdir/inst-apps; then
33982
  ac_topsubdirs="`cat $srcdir/inst-apps`"
33983
elif test -s $srcdir/subdirs; then
33984
  ac_topsubdirs="`cat $srcdir/subdirs`"
33985
fi
33986
 
33987
for i in $ac_topsubdirs; do
216 andreas 33988
  { $as_echo "$as_me:$LINENO: checking if $i should be compiled" >&5
33989
$as_echo_n "checking if $i should be compiled... " >&6; }
88 andreas 33990
  if test -d $srcdir/$i; then
33991
    install_it="yes"
33992
    for j in $DO_NOT_COMPILE; do
33993
      if test $i = $j; then
33994
        install_it="no"
33995
      fi
33996
    done
33997
  else
33998
    install_it="no"
33999
  fi
216 andreas 34000
  { $as_echo "$as_me:$LINENO: result: $install_it" >&5
34001
$as_echo "$install_it" >&6; }
88 andreas 34002
  vari=`echo $i | sed -e 's,[-+.@],_,g'`
34003
  if test $install_it = "yes"; then
34004
    TOPSUBDIRS="$TOPSUBDIRS $i"
34005
    eval "$vari""_SUBDIR_included=yes"
34006
  else
34007
    eval "$vari""_SUBDIR_included=no"
34008
  fi
34009
done
34010
 
34011
 
34012
 
34013
ac_config_files="$ac_config_files Makefile"
34014
 
34015
ac_config_files="$ac_config_files doc/Makefile"
34016
 
34017
ac_config_files="$ac_config_files doc/en/Makefile"
34018
 
230 andreas 34019
ac_config_files="$ac_config_files libgant/Makefile"
34020
 
91 andreas 34021
ac_config_files="$ac_config_files libgarmin/Makefile"
34022
 
88 andreas 34023
ac_config_files="$ac_config_files po/Makefile"
34024
 
34025
ac_config_files="$ac_config_files src/Makefile"
34026
 
34027
cat >confcache <<\_ACEOF
34028
# This file is a shell script that caches the results of configure
34029
# tests run on this system so they can be shared between configure
34030
# scripts and configure runs, see configure's option --config-cache.
34031
# It is not useful on other systems.  If it contains results you don't
34032
# want to keep, you may remove or edit it.
34033
#
34034
# config.status only pays attention to the cache file if you give it
34035
# the --recheck option to rerun configure.
34036
#
34037
# `ac_cv_env_foo' variables (set or unset) will be overridden when
34038
# loading this file, other *unset* `ac_cv_foo' will be assigned the
34039
# following values.
34040
 
34041
_ACEOF
34042
 
34043
# The following way of writing the cache mishandles newlines in values,
34044
# but we know of no workaround that is simple, portable, and efficient.
34045
# So, we kill variables containing newlines.
34046
# Ultrix sh set writes to stderr and can't be redirected directly,
34047
# and sets the high bit in the cache file unless we assign to the vars.
34048
(
34049
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34050
    eval ac_val=\$$ac_var
34051
    case $ac_val in #(
34052
    *${as_nl}*)
34053
      case $ac_var in #(
216 andreas 34054
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
34055
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
88 andreas 34056
      esac
34057
      case $ac_var in #(
34058
      _ | IFS | as_nl) ;; #(
216 andreas 34059
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
88 andreas 34060
      *) $as_unset $ac_var ;;
34061
      esac ;;
34062
    esac
34063
  done
34064
 
34065
  (set) 2>&1 |
34066
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
34067
    *${as_nl}ac_space=\ *)
34068
      # `set' does not quote correctly, so add quotes (double-quote
34069
      # substitution turns \\\\ into \\, and sed turns \\ into \).
34070
      sed -n \
34071
	"s/'/'\\\\''/g;
34072
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34073
      ;; #(
34074
    *)
34075
      # `set' quotes correctly as required by POSIX, so do not add quotes.
34076
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34077
      ;;
34078
    esac |
34079
    sort
34080
) |
34081
  sed '
34082
     /^ac_cv_env_/b end
34083
     t clear
34084
     :clear
34085
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34086
     t end
34087
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34088
     :end' >>confcache
34089
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34090
  if test -w "$cache_file"; then
34091
    test "x$cache_file" != "x/dev/null" &&
216 andreas 34092
      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
34093
$as_echo "$as_me: updating cache $cache_file" >&6;}
88 andreas 34094
    cat confcache >$cache_file
34095
  else
216 andreas 34096
    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34097
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
88 andreas 34098
  fi
34099
fi
34100
rm -f confcache
34101
 
34102
test "x$prefix" = xNONE && prefix=$ac_default_prefix
34103
# Let make expand exec_prefix.
34104
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34105
 
34106
DEFS=-DHAVE_CONFIG_H
34107
 
34108
ac_libobjs=
34109
ac_ltlibobjs=
34110
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34111
  # 1. Remove the extension, and $U if already installed.
34112
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
216 andreas 34113
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
88 andreas 34114
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
34115
  #    will be set to the directory where LIBOBJS objects are built.
34116
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34117
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34118
done
34119
LIBOBJS=$ac_libobjs
34120
 
34121
LTLIBOBJS=$ac_ltlibobjs
34122
 
34123
 
34124
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
216 andreas 34125
  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
88 andreas 34126
Usually this means the macro was only invoked conditionally." >&5
216 andreas 34127
$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
88 andreas 34128
Usually this means the macro was only invoked conditionally." >&2;}
34129
   { (exit 1); exit 1; }; }
34130
fi
34131
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
216 andreas 34132
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
88 andreas 34133
Usually this means the macro was only invoked conditionally." >&5
216 andreas 34134
$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
88 andreas 34135
Usually this means the macro was only invoked conditionally." >&2;}
34136
   { (exit 1); exit 1; }; }
34137
fi
34138
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
216 andreas 34139
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
88 andreas 34140
Usually this means the macro was only invoked conditionally." >&5
216 andreas 34141
$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
88 andreas 34142
Usually this means the macro was only invoked conditionally." >&2;}
34143
   { (exit 1); exit 1; }; }
34144
fi
34145
if test -z "${unsermake_enable_pch_TRUE}" && test -z "${unsermake_enable_pch_FALSE}"; then
216 andreas 34146
  { { $as_echo "$as_me:$LINENO: error: conditional \"unsermake_enable_pch\" was never defined.
88 andreas 34147
Usually this means the macro was only invoked conditionally." >&5
216 andreas 34148
$as_echo "$as_me: error: conditional \"unsermake_enable_pch\" was never defined.
88 andreas 34149
Usually this means the macro was only invoked conditionally." >&2;}
34150
   { (exit 1); exit 1; }; }
34151
fi
34152
if test -z "${include_x11_TRUE}" && test -z "${include_x11_FALSE}"; then
216 andreas 34153
  { { $as_echo "$as_me:$LINENO: error: conditional \"include_x11\" was never defined.
88 andreas 34154
Usually this means the macro was only invoked conditionally." >&5
216 andreas 34155
$as_echo "$as_me: error: conditional \"include_x11\" was never defined.
88 andreas 34156
Usually this means the macro was only invoked conditionally." >&2;}
34157
   { (exit 1); exit 1; }; }
34158
fi
34159
if test -z "${include_ARTS_TRUE}" && test -z "${include_ARTS_FALSE}"; then
216 andreas 34160
  { { $as_echo "$as_me:$LINENO: error: conditional \"include_ARTS\" was never defined.
88 andreas 34161
Usually this means the macro was only invoked conditionally." >&5
216 andreas 34162
$as_echo "$as_me: error: conditional \"include_ARTS\" was never defined.
88 andreas 34163
Usually this means the macro was only invoked conditionally." >&2;}
34164
   { (exit 1); exit 1; }; }
34165
fi
34166
 
216 andreas 34167
 
88 andreas 34168
: ${CONFIG_STATUS=./config.status}
216 andreas 34169
ac_write_fail=0
88 andreas 34170
ac_clean_files_save=$ac_clean_files
34171
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
216 andreas 34172
{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34173
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
34174
cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
88 andreas 34175
#! $SHELL
34176
# Generated by $as_me.
34177
# Run this file to recreate the current configuration.
34178
# Compiler output produced by configure, useful for debugging
34179
# configure, is in config.log if it exists.
34180
 
34181
debug=false
34182
ac_cs_recheck=false
34183
ac_cs_silent=false
34184
SHELL=\${CONFIG_SHELL-$SHELL}
34185
_ACEOF
34186
 
216 andreas 34187
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
88 andreas 34188
## --------------------- ##
34189
## M4sh Initialization.  ##
34190
## --------------------- ##
34191
 
34192
# Be more Bourne compatible
34193
DUALCASE=1; export DUALCASE # for MKS sh
34194
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34195
  emulate sh
34196
  NULLCMD=:
216 andreas 34197
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
88 andreas 34198
  # is contrary to our usage.  Disable this feature.
34199
  alias -g '${1+"$@"}'='"$@"'
34200
  setopt NO_GLOB_SUBST
34201
else
34202
  case `(set -o) 2>/dev/null` in
34203
  *posix*) set -o posix ;;
34204
esac
34205
 
34206
fi
34207
 
34208
 
34209
 
34210
 
34211
# PATH needs CR
34212
# Avoid depending upon Character Ranges.
34213
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34214
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34215
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34216
as_cr_digits='0123456789'
34217
as_cr_alnum=$as_cr_Letters$as_cr_digits
34218
 
216 andreas 34219
as_nl='
34220
'
34221
export as_nl
34222
# Printing a long string crashes Solaris 7 /usr/bin/printf.
34223
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
34224
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
34225
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
34226
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
34227
  as_echo='printf %s\n'
34228
  as_echo_n='printf %s'
34229
else
34230
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
34231
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
34232
    as_echo_n='/usr/ucb/echo -n'
88 andreas 34233
  else
216 andreas 34234
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
34235
    as_echo_n_body='eval
34236
      arg=$1;
34237
      case $arg in
34238
      *"$as_nl"*)
34239
	expr "X$arg" : "X\\(.*\\)$as_nl";
34240
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
34241
      esac;
34242
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
34243
    '
34244
    export as_echo_n_body
34245
    as_echo_n='sh -c $as_echo_n_body as_echo'
88 andreas 34246
  fi
216 andreas 34247
  export as_echo_body
34248
  as_echo='sh -c $as_echo_body as_echo'
88 andreas 34249
fi
34250
 
216 andreas 34251
# The user is always right.
34252
if test "${PATH_SEPARATOR+set}" != set; then
34253
  PATH_SEPARATOR=:
34254
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
34255
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
34256
      PATH_SEPARATOR=';'
34257
  }
34258
fi
34259
 
88 andreas 34260
# Support unset when possible.
34261
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34262
  as_unset=unset
34263
else
34264
  as_unset=false
34265
fi
34266
 
34267
 
34268
# IFS
34269
# We need space, tab and new line, in precisely that order.  Quoting is
34270
# there to prevent editors from complaining about space-tab.
34271
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
34272
# splitting by setting IFS to empty value.)
34273
IFS=" ""	$as_nl"
34274
 
34275
# Find who we are.  Look in the path if we contain no directory separator.
34276
case $0 in
34277
  *[\\/]* ) as_myself=$0 ;;
34278
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34279
for as_dir in $PATH
34280
do
34281
  IFS=$as_save_IFS
34282
  test -z "$as_dir" && as_dir=.
34283
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34284
done
34285
IFS=$as_save_IFS
34286
 
34287
     ;;
34288
esac
34289
# We did not find ourselves, most probably we were run as `sh COMMAND'
34290
# in which case we are not to be found in the path.
34291
if test "x$as_myself" = x; then
34292
  as_myself=$0
34293
fi
34294
if test ! -f "$as_myself"; then
216 andreas 34295
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
88 andreas 34296
  { (exit 1); exit 1; }
34297
fi
34298
 
34299
# Work around bugs in pre-3.0 UWIN ksh.
34300
for as_var in ENV MAIL MAILPATH
34301
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34302
done
34303
PS1='$ '
34304
PS2='> '
34305
PS4='+ '
34306
 
34307
# NLS nuisances.
216 andreas 34308
LC_ALL=C
34309
export LC_ALL
34310
LANGUAGE=C
34311
export LANGUAGE
88 andreas 34312
 
34313
# Required to use basename.
34314
if expr a : '\(a\)' >/dev/null 2>&1 &&
34315
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
34316
  as_expr=expr
34317
else
34318
  as_expr=false
34319
fi
34320
 
34321
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34322
  as_basename=basename
34323
else
34324
  as_basename=false
34325
fi
34326
 
34327
 
34328
# Name of the executable.
34329
as_me=`$as_basename -- "$0" ||
34330
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34331
	 X"$0" : 'X\(//\)$' \| \
34332
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
216 andreas 34333
$as_echo X/"$0" |
88 andreas 34334
    sed '/^.*\/\([^/][^/]*\)\/*$/{
34335
	    s//\1/
34336
	    q
34337
	  }
34338
	  /^X\/\(\/\/\)$/{
34339
	    s//\1/
34340
	    q
34341
	  }
34342
	  /^X\/\(\/\).*/{
34343
	    s//\1/
34344
	    q
34345
	  }
34346
	  s/.*/./; q'`
34347
 
34348
# CDPATH.
34349
$as_unset CDPATH
34350
 
34351
 
34352
 
34353
  as_lineno_1=$LINENO
34354
  as_lineno_2=$LINENO
34355
  test "x$as_lineno_1" != "x$as_lineno_2" &&
34356
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34357
 
34358
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34359
  # uniformly replaced by the line number.  The first 'sed' inserts a
34360
  # line-number line after each line using $LINENO; the second 'sed'
34361
  # does the real work.  The second script uses 'N' to pair each
34362
  # line-number line with the line containing $LINENO, and appends
34363
  # trailing '-' during substitution so that $LINENO is not a special
34364
  # case at line end.
34365
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34366
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
34367
  # E. McMahon (1931-1989) for sed's syntax.  :-)
34368
  sed -n '
34369
    p
34370
    /[$]LINENO/=
34371
  ' <$as_myself |
34372
    sed '
34373
      s/[$]LINENO.*/&-/
34374
      t lineno
34375
      b
34376
      :lineno
34377
      N
34378
      :loop
34379
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34380
      t loop
34381
      s/-\n.*//
34382
    ' >$as_me.lineno &&
34383
  chmod +x "$as_me.lineno" ||
216 andreas 34384
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
88 andreas 34385
   { (exit 1); exit 1; }; }
34386
 
34387
  # Don't try to exec as it changes $[0], causing all sort of problems
34388
  # (the dirname of $[0] is not the place where we might find the
34389
  # original and so on.  Autoconf is especially sensitive to this).
34390
  . "./$as_me.lineno"
34391
  # Exit status is that of the last command.
34392
  exit
34393
}
34394
 
34395
 
34396
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34397
  as_dirname=dirname
34398
else
34399
  as_dirname=false
34400
fi
34401
 
34402
ECHO_C= ECHO_N= ECHO_T=
34403
case `echo -n x` in
34404
-n*)
34405
  case `echo 'x\c'` in
34406
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
34407
  *)   ECHO_C='\c';;
34408
  esac;;
34409
*)
34410
  ECHO_N='-n';;
34411
esac
34412
if expr a : '\(a\)' >/dev/null 2>&1 &&
34413
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
34414
  as_expr=expr
34415
else
34416
  as_expr=false
34417
fi
34418
 
34419
rm -f conf$$ conf$$.exe conf$$.file
34420
if test -d conf$$.dir; then
34421
  rm -f conf$$.dir/conf$$.file
34422
else
34423
  rm -f conf$$.dir
216 andreas 34424
  mkdir conf$$.dir 2>/dev/null
88 andreas 34425
fi
216 andreas 34426
if (echo >conf$$.file) 2>/dev/null; then
34427
  if ln -s conf$$.file conf$$ 2>/dev/null; then
34428
    as_ln_s='ln -s'
34429
    # ... but there are two gotchas:
34430
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34431
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34432
    # In both cases, we have to default to `cp -p'.
34433
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34434
      as_ln_s='cp -p'
34435
  elif ln conf$$.file conf$$ 2>/dev/null; then
34436
    as_ln_s=ln
34437
  else
88 andreas 34438
    as_ln_s='cp -p'
216 andreas 34439
  fi
88 andreas 34440
else
34441
  as_ln_s='cp -p'
34442
fi
34443
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34444
rmdir conf$$.dir 2>/dev/null
34445
 
34446
if mkdir -p . 2>/dev/null; then
34447
  as_mkdir_p=:
34448
else
34449
  test -d ./-p && rmdir ./-p
34450
  as_mkdir_p=false
34451
fi
34452
 
34453
if test -x / >/dev/null 2>&1; then
34454
  as_test_x='test -x'
34455
else
34456
  if ls -dL / >/dev/null 2>&1; then
34457
    as_ls_L_option=L
34458
  else
34459
    as_ls_L_option=
34460
  fi
34461
  as_test_x='
34462
    eval sh -c '\''
34463
      if test -d "$1"; then
216 andreas 34464
	test -d "$1/.";
88 andreas 34465
      else
34466
	case $1 in
216 andreas 34467
	-*)set "./$1";;
88 andreas 34468
	esac;
34469
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
34470
	???[sx]*):;;*)false;;esac;fi
34471
    '\'' sh
34472
  '
34473
fi
34474
as_executable_p=$as_test_x
34475
 
34476
# Sed expression to map a string onto a valid CPP name.
34477
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34478
 
34479
# Sed expression to map a string onto a valid variable name.
34480
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34481
 
34482
 
34483
exec 6>&1
34484
 
34485
# Save the log message, to keep $[0] and so on meaningful, and to
34486
# report actual input values of CONFIG_FILES etc. instead of their
34487
# values after options handling.
34488
ac_log="
34489
This file was extended by $as_me, which was
216 andreas 34490
generated by GNU Autoconf 2.63.  Invocation command line was
88 andreas 34491
 
34492
  CONFIG_FILES    = $CONFIG_FILES
34493
  CONFIG_HEADERS  = $CONFIG_HEADERS
34494
  CONFIG_LINKS    = $CONFIG_LINKS
34495
  CONFIG_COMMANDS = $CONFIG_COMMANDS
34496
  $ $0 $@
34497
 
34498
on `(hostname || uname -n) 2>/dev/null | sed 1q`
34499
"
34500
 
34501
_ACEOF
34502
 
216 andreas 34503
case $ac_config_files in *"
34504
"*) set x $ac_config_files; shift; ac_config_files=$*;;
34505
esac
34506
 
34507
case $ac_config_headers in *"
34508
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
34509
esac
34510
 
34511
 
34512
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
88 andreas 34513
# Files that config.status was made for.
34514
config_files="$ac_config_files"
34515
config_headers="$ac_config_headers"
34516
config_commands="$ac_config_commands"
34517
 
34518
_ACEOF
34519
 
216 andreas 34520
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
88 andreas 34521
ac_cs_usage="\
34522
\`$as_me' instantiates files from templates according to the
34523
current configuration.
34524
 
216 andreas 34525
Usage: $0 [OPTION]... [FILE]...
88 andreas 34526
 
34527
  -h, --help       print this help, then exit
34528
  -V, --version    print version number and configuration settings, then exit
216 andreas 34529
  -q, --quiet, --silent
34530
                   do not print progress messages
88 andreas 34531
  -d, --debug      don't remove temporary files
34532
      --recheck    update $as_me by reconfiguring in the same conditions
216 andreas 34533
      --file=FILE[:TEMPLATE]
34534
                   instantiate the configuration file FILE
34535
      --header=FILE[:TEMPLATE]
34536
                   instantiate the configuration header FILE
88 andreas 34537
 
34538
Configuration files:
34539
$config_files
34540
 
34541
Configuration headers:
34542
$config_headers
34543
 
34544
Configuration commands:
34545
$config_commands
34546
 
34547
Report bugs to <bug-autoconf@gnu.org>."
34548
 
34549
_ACEOF
216 andreas 34550
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
88 andreas 34551
ac_cs_version="\\
34552
config.status
216 andreas 34553
configured by $0, generated by GNU Autoconf 2.63,
34554
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
88 andreas 34555
 
216 andreas 34556
Copyright (C) 2008 Free Software Foundation, Inc.
88 andreas 34557
This config.status script is free software; the Free Software Foundation
34558
gives unlimited permission to copy, distribute and modify it."
34559
 
34560
ac_pwd='$ac_pwd'
34561
srcdir='$srcdir'
34562
INSTALL='$INSTALL'
216 andreas 34563
AWK='$AWK'
34564
test -n "\$AWK" || AWK=awk
88 andreas 34565
_ACEOF
34566
 
216 andreas 34567
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34568
# The default lists apply if the user does not specify any file.
88 andreas 34569
ac_need_defaults=:
34570
while test $# != 0
34571
do
34572
  case $1 in
34573
  --*=*)
34574
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
34575
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34576
    ac_shift=:
34577
    ;;
34578
  *)
34579
    ac_option=$1
34580
    ac_optarg=$2
34581
    ac_shift=shift
34582
    ;;
34583
  esac
34584
 
34585
  case $ac_option in
34586
  # Handling of the options.
34587
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34588
    ac_cs_recheck=: ;;
34589
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
216 andreas 34590
    $as_echo "$ac_cs_version"; exit ;;
88 andreas 34591
  --debug | --debu | --deb | --de | --d | -d )
34592
    debug=: ;;
34593
  --file | --fil | --fi | --f )
34594
    $ac_shift
216 andreas 34595
    case $ac_optarg in
34596
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
34597
    esac
34598
    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
88 andreas 34599
    ac_need_defaults=false;;
34600
  --header | --heade | --head | --hea )
34601
    $ac_shift
216 andreas 34602
    case $ac_optarg in
34603
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
34604
    esac
34605
    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
88 andreas 34606
    ac_need_defaults=false;;
34607
  --he | --h)
34608
    # Conflict between --help and --header
216 andreas 34609
    { $as_echo "$as_me: error: ambiguous option: $1
88 andreas 34610
Try \`$0 --help' for more information." >&2
34611
   { (exit 1); exit 1; }; };;
34612
  --help | --hel | -h )
216 andreas 34613
    $as_echo "$ac_cs_usage"; exit ;;
88 andreas 34614
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34615
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
34616
    ac_cs_silent=: ;;
34617
 
34618
  # This is an error.
216 andreas 34619
  -*) { $as_echo "$as_me: error: unrecognized option: $1
88 andreas 34620
Try \`$0 --help' for more information." >&2
34621
   { (exit 1); exit 1; }; } ;;
34622
 
34623
  *) ac_config_targets="$ac_config_targets $1"
34624
     ac_need_defaults=false ;;
34625
 
34626
  esac
34627
  shift
34628
done
34629
 
34630
ac_configure_extra_args=
34631
 
34632
if $ac_cs_silent; then
34633
  exec 6>/dev/null
34634
  ac_configure_extra_args="$ac_configure_extra_args --silent"
34635
fi
34636
 
34637
_ACEOF
216 andreas 34638
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
88 andreas 34639
if \$ac_cs_recheck; then
216 andreas 34640
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34641
  shift
34642
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
34643
  CONFIG_SHELL='$SHELL'
88 andreas 34644
  export CONFIG_SHELL
216 andreas 34645
  exec "\$@"
88 andreas 34646
fi
34647
 
34648
_ACEOF
216 andreas 34649
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
88 andreas 34650
exec 5>>config.log
34651
{
34652
  echo
34653
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34654
## Running $as_me. ##
34655
_ASBOX
216 andreas 34656
  $as_echo "$ac_log"
88 andreas 34657
} >&5
34658
 
34659
_ACEOF
216 andreas 34660
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
88 andreas 34661
#
34662
# INIT-COMMANDS
34663
#
34664
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
34665
 
34666
_ACEOF
34667
 
216 andreas 34668
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
88 andreas 34669
 
34670
# Handling of arguments.
34671
for ac_config_target in $ac_config_targets
34672
do
34673
  case $ac_config_target in
34674
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
34675
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
34676
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
34677
    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
34678
    "doc/en/Makefile") CONFIG_FILES="$CONFIG_FILES doc/en/Makefile" ;;
230 andreas 34679
    "libgant/Makefile") CONFIG_FILES="$CONFIG_FILES libgant/Makefile" ;;
91 andreas 34680
    "libgarmin/Makefile") CONFIG_FILES="$CONFIG_FILES libgarmin/Makefile" ;;
88 andreas 34681
    "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
34682
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
34683
 
216 andreas 34684
  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34685
$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
88 andreas 34686
   { (exit 1); exit 1; }; };;
34687
  esac
34688
done
34689
 
34690
 
34691
# If the user did not use the arguments to specify the items to instantiate,
34692
# then the envvar interface is used.  Set only those that are not.
34693
# We use the long form for the default assignment because of an extremely
34694
# bizarre bug on SunOS 4.1.3.
34695
if $ac_need_defaults; then
34696
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34697
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34698
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34699
fi
34700
 
34701
# Have a temporary directory for convenience.  Make it in the build tree
34702
# simply because there is no reason against having it here, and in addition,
34703
# creating and moving files from /tmp can sometimes cause problems.
34704
# Hook for its removal unless debugging.
34705
# Note that there is a small window in which the directory will not be cleaned:
34706
# after its creation but before its name has been assigned to `$tmp'.
34707
$debug ||
34708
{
34709
  tmp=
34710
  trap 'exit_status=$?
34711
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34712
' 0
34713
  trap '{ (exit 1); exit 1; }' 1 2 13 15
34714
}
34715
# Create a (secure) tmp directory for tmp files.
34716
 
34717
{
34718
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34719
  test -n "$tmp" && test -d "$tmp"
34720
}  ||
34721
{
34722
  tmp=./conf$$-$RANDOM
34723
  (umask 077 && mkdir "$tmp")
34724
} ||
34725
{
216 andreas 34726
   $as_echo "$as_me: cannot create a temporary directory in ." >&2
88 andreas 34727
   { (exit 1); exit 1; }
34728
}
34729
 
216 andreas 34730
# Set up the scripts for CONFIG_FILES section.
34731
# No need to generate them if there are no CONFIG_FILES.
34732
# This happens for instance with `./config.status config.h'.
88 andreas 34733
if test -n "$CONFIG_FILES"; then
34734
 
34735
 
216 andreas 34736
ac_cr='
'
34737
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
34738
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
34739
  ac_cs_awk_cr='\\r'
34740
else
34741
  ac_cs_awk_cr=$ac_cr
34742
fi
88 andreas 34743
34744
 
216 andreas 34745
_ACEOF
88 andreas 34746
34747
 
34748
 
216 andreas 34749
  echo "cat >conf$$subs.awk <<_ACEOF" &&
34750
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
34751
  echo "_ACEOF"
34752
} >conf$$subs.sh ||
34753
  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34754
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34755
   { (exit 1); exit 1; }; }
34756
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
34757
ac_delim='%!_!# '
88 andreas 34758
for ac_last_try in false false false false false :; do
34759
  . ./conf$$subs.sh ||
216 andreas 34760
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34761
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34762
   { (exit 1); exit 1; }; }
34763
88 andreas 34764
 
216 andreas 34765
  if test $ac_delim_n = $ac_delim_num; then
34766
    break
88 andreas 34767
  elif $ac_last_try; then
34768
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
216 andreas 34769
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34770
   { (exit 1); exit 1; }; }
88 andreas 34771
  else
34772
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34773
  fi
34774
done
34775
rm -f conf$$subs.sh
216 andreas 34776
88 andreas 34777
 
216 andreas 34778
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
34779
_ACEOF
88 andreas 34780
sed -n '
216 andreas 34781
h
34782
s/^/S["/; s/!.*/"]=/
34783
p
34784
g
34785
s/^[^!]*!//
34786
:repl
34787
t repl
34788
s/'"$ac_delim"'$//
34789
t delim
34790
:nl
34791
h
34792
s/\(.\{148\}\).*/\1/
34793
t more1
34794
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
34795
p
34796
n
34797
b repl
34798
:more1
34799
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34800
p
34801
g
34802
s/.\{148\}//
34803
t nl
34804
:delim
34805
h
34806
s/\(.\{148\}\).*/\1/
34807
t more2
34808
s/["\\]/\\&/g; s/^/"/; s/$/"/
34809
p
34810
b
34811
:more2
34812
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34813
p
34814
g
34815
s/.\{148\}//
34816
t delim
34817
' <conf$$subs.awk | sed '
34818
/^[^""]/{
34819
  N
34820
  s/\n//
34821
}
34822
' >>$CONFIG_STATUS || ac_write_fail=1
34823
rm -f conf$$subs.awk
34824
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34825
_ACAWK
34826
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
34827
  for (key in S) S_is_set[key] = 1
34828
  FS = ""
34829
88 andreas 34830
 
216 andreas 34831
{
34832
  line = $ 0
34833
  nfields = split(line, field, "@")
34834
  substed = 0
34835
  len = length(field[1])
34836
  for (i = 2; i < nfields; i++) {
34837
    key = field[i]
34838
    keylen = length(key)
34839
    if (S_is_set[key]) {
34840
      value = S[key]
34841
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
34842
      len += length(value) + length(field[++i])
34843
      substed = 1
34844
    } else
34845
      len += 1 + keylen
34846
  }
34847
88 andreas 34848
 
216 andreas 34849
}
34850
34851
 
34852
_ACEOF
88 andreas 34853
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
216 andreas 34854
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
34855
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
34856
else
34857
  cat
34858
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
34859
  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
34860
$as_echo "$as_me: error: could not setup config files machinery" >&2;}
34861
   { (exit 1); exit 1; }; }
88 andreas 34862
_ACEOF
34863
34864
 
34865
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34866
# trailing colons and then remove the whole line if VPATH becomes empty
34867
# (actually we leave an empty line to preserve line numbers).
34868
if test "x$srcdir" = x.; then
34869
  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
34870
s/:*\$(srcdir):*/:/
34871
s/:*\${srcdir}:*/:/
34872
s/:*@srcdir@:*/:/
34873
s/^\([^=]*=[	 ]*\):*/\1/
34874
s/:*$//
34875
s/^[^=]*=[	 ]*$//
34876
}'
34877
fi
34878
34879
 
216 andreas 34880
fi # test -n "$CONFIG_FILES"
88 andreas 34881
34882
 
216 andreas 34883
# No need to generate them if there are no CONFIG_HEADERS.
34884
# This happens for instance with `./config.status Makefile'.
34885
if test -n "$CONFIG_HEADERS"; then
34886
cat >"$tmp/defines.awk" <<\_ACAWK ||
34887
BEGIN {
34888
_ACEOF
34889
88 andreas 34890
 
216 andreas 34891
# here-document in config.status, that substitutes the proper values into
34892
# config.h.in to produce config.h.
34893
34894
 
34895
# handling of long lines.
34896
ac_delim='%!_!# '
34897
for ac_last_try in false false :; do
34898
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
34899
  if test -z "$ac_t"; then
34900
    break
34901
  elif $ac_last_try; then
34902
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
34903
$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
34904
   { (exit 1); exit 1; }; }
34905
  else
34906
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34907
  fi
34908
done
34909
34910
 
34911
# likewise P contains macro parameters if any.  Preserve backslash
34912
# newline sequences.
34913
34914
 
34915
sed -n '
34916
s/.\{148\}/&'"$ac_delim"'/g
34917
t rset
34918
:rset
34919
s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
34920
t def
34921
d
34922
:def
34923
s/\\$//
34924
t bsnl
34925
s/["\\]/\\&/g
34926
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
34927
D["\1"]=" \3"/p
34928
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
34929
d
34930
:bsnl
34931
s/["\\]/\\&/g
34932
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
34933
D["\1"]=" \3\\\\\\n"\\/p
34934
t cont
34935
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
34936
t cont
34937
d
34938
:cont
34939
n
34940
s/.\{148\}/&'"$ac_delim"'/g
34941
t clear
34942
:clear
34943
s/\\$//
34944
t bsnlc
34945
s/["\\]/\\&/g; s/^/"/; s/$/"/p
34946
d
34947
:bsnlc
34948
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
34949
b cont
34950
' <confdefs.h | sed '
34951
s/'"$ac_delim"'/"\\\
34952
"/g' >>$CONFIG_STATUS || ac_write_fail=1
34953
34954
 
34955
  for (key in D) D_is_set[key] = 1
34956
  FS = ""
34957
}
34958
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
34959
  line = \$ 0
34960
  split(line, arg, " ")
34961
  if (arg[1] == "#") {
34962
    defundef = arg[2]
34963
    mac1 = arg[3]
34964
  } else {
34965
    defundef = substr(arg[1], 2)
34966
    mac1 = arg[2]
34967
  }
34968
  split(mac1, mac2, "(") #)
34969
  macro = mac2[1]
34970
  prefix = substr(line, 1, index(line, defundef) - 1)
34971
  if (D_is_set[macro]) {
34972
    # Preserve the white space surrounding the "#".
34973
    print prefix "define", macro P[macro] D[macro]
34974
    next
34975
  } else {
34976
    # Replace #undef with comments.  This is necessary, for example,
34977
    # in the case of _POSIX_SOURCE, which is predefined and required
34978
    # on some systems where configure will not decide to define it.
34979
    if (defundef == "undef") {
34980
      print "/*", prefix defundef, macro, "*/"
34981
      next
34982
    }
34983
  }
34984
}
34985
{ print }
34986
_ACAWK
34987
_ACEOF
34988
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34989
  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
34990
$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
34991
   { (exit 1); exit 1; }; }
34992
fi # test -n "$CONFIG_HEADERS"
34993
34994
 
34995
 
34996
shift
34997
for ac_tag
34998
do
88 andreas 34999
  case $ac_tag in
35000
  :[FHLC]) ac_mode=$ac_tag; continue;;
35001
  esac
35002
  case $ac_mode$ac_tag in
35003
  :[FHL]*:*);;
35004
  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
216 andreas 35005
$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
35006
   { (exit 1); exit 1; }; };;
88 andreas 35007
  :[FH]-) ac_tag=-:-;;
35008
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35009
  esac
35010
  ac_save_IFS=$IFS
35011
  IFS=:
35012
  set x $ac_tag
35013
  IFS=$ac_save_IFS
35014
  shift
35015
  ac_file=$1
35016
  shift
35017
35018
 
35019
  :L) ac_source=$1;;
35020
  :[FH])
35021
    ac_file_inputs=
35022
    for ac_f
35023
    do
35024
      case $ac_f in
35025
      -) ac_f="$tmp/stdin";;
35026
      *) # Look for the file first in the build tree, then in the source tree
35027
	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
35028
	 # because $ac_f cannot contain `:'.
35029
	 test -f "$ac_f" ||
35030
	   case $ac_f in
35031
	   [\\/$]*) false;;
35032
	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35033
	   esac ||
35034
	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
216 andreas 35035
$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35036
   { (exit 1); exit 1; }; };;
88 andreas 35037
      esac
35038
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
216 andreas 35039
      ac_file_inputs="$ac_file_inputs '$ac_f'"
35040
    done
88 andreas 35041
35042
 
35043
    # use $as_me), people would be surprised to read:
35044
    #    /* config.h.  Generated by config.status.  */
35045
    configure_input='Generated from '`
216 andreas 35046
	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
35047
	`' by configure.'
35048
    if test x"$ac_file" != x-; then
88 andreas 35049
      configure_input="$ac_file.  $configure_input"
35050
      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
216 andreas 35051
$as_echo "$as_me: creating $ac_file" >&6;}
35052
    fi
88 andreas 35053
    # Neutralize special characters interpreted by sed in replacement strings.
216 andreas 35054
    case $configure_input in #(
35055
    *\&* | *\|* | *\\* )
35056
       ac_sed_conf_input=`$as_echo "$configure_input" |
35057
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
35058
    *) ac_sed_conf_input=$configure_input;;
35059
    esac
35060
88 andreas 35061
 
35062
    *:-:* | *:-) cat >"$tmp/stdin" \
216 andreas 35063
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
35064
$as_echo "$as_me: error: could not create $ac_file" >&2;}
35065
   { (exit 1); exit 1; }; } ;;
35066
    esac
88 andreas 35067
    ;;
35068
  esac
35069
35070
 
35071
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35072
	 X"$ac_file" : 'X\(//\)[^/]' \| \
35073
	 X"$ac_file" : 'X\(//\)$' \| \
35074
	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35075
$as_echo X"$ac_file" |
216 andreas 35076
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
88 andreas 35077
	    s//\1/
35078
	    q
35079
	  }
35080
	  /^X\(\/\/\)[^/].*/{
35081
	    s//\1/
35082
	    q
35083
	  }
35084
	  /^X\(\/\/\)$/{
35085
	    s//\1/
35086
	    q
35087
	  }
35088
	  /^X\(\/\).*/{
35089
	    s//\1/
35090
	    q
35091
	  }
35092
	  s/.*/./; q'`
35093
  { as_dir="$ac_dir"
35094
  case $as_dir in #(
35095
  -*) as_dir=./$as_dir;;
35096
  esac
35097
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35098
    as_dirs=
35099
    while :; do
35100
      case $as_dir in #(
35101
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
216 andreas 35102
      *) as_qdir=$as_dir;;
88 andreas 35103
      esac
35104
      as_dirs="'$as_qdir' $as_dirs"
35105
      as_dir=`$as_dirname -- "$as_dir" ||
35106
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35107
	 X"$as_dir" : 'X\(//\)[^/]' \| \
35108
	 X"$as_dir" : 'X\(//\)$' \| \
35109
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35110
$as_echo X"$as_dir" |
216 andreas 35111
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
88 andreas 35112
	    s//\1/
35113
	    q
35114
	  }
35115
	  /^X\(\/\/\)[^/].*/{
35116
	    s//\1/
35117
	    q
35118
	  }
35119
	  /^X\(\/\/\)$/{
35120
	    s//\1/
35121
	    q
35122
	  }
35123
	  /^X\(\/\).*/{
35124
	    s//\1/
35125
	    q
35126
	  }
35127
	  s/.*/./; q'`
35128
      test -d "$as_dir" && break
35129
    done
35130
    test -z "$as_dirs" || eval "mkdir $as_dirs"
35131
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
216 andreas 35132
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
35133
   { (exit 1); exit 1; }; }; }
88 andreas 35134
  ac_builddir=.
35135
35136
 
35137
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35138
*)
35139
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
216 andreas 35140
  # A ".." for each directory in $ac_dir_suffix.
88 andreas 35141
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
216 andreas 35142
  case $ac_top_builddir_sub in
88 andreas 35143
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35144
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35145
  esac ;;
35146
esac
35147
ac_abs_top_builddir=$ac_pwd
35148
ac_abs_builddir=$ac_pwd$ac_dir_suffix
35149
# for backward compatibility:
35150
ac_top_builddir=$ac_top_build_prefix
35151
35152
 
35153
  .)  # We are building in place.
35154
    ac_srcdir=.
35155
    ac_top_srcdir=$ac_top_builddir_sub
35156
    ac_abs_top_srcdir=$ac_pwd ;;
35157
  [\\/]* | ?:[\\/]* )  # Absolute name.
35158
    ac_srcdir=$srcdir$ac_dir_suffix;
35159
    ac_top_srcdir=$srcdir
35160
    ac_abs_top_srcdir=$srcdir ;;
35161
  *) # Relative name.
35162
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35163
    ac_top_srcdir=$ac_top_build_prefix$srcdir
35164
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35165
esac
35166
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35167
35168
 
35169
 
35170
  :F)
35171
  #
35172
  # CONFIG_FILE
35173
  #
35174
35175
 
35176
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35177
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35178
  esac
35179
_ACEOF
35180
35181
 
216 andreas 35182
# If the template does not know about datarootdir, expand it.
88 andreas 35183
# FIXME: This hack should be removed a few years after 2.60.
35184
ac_datarootdir_hack=; ac_datarootdir_seen=
35185
35186
 
216 andreas 35187
/datarootdir/ {
35188
  p
88 andreas 35189
  q
35190
}
35191
/@datadir@/p
35192
/@docdir@/p
35193
/@infodir@/p
35194
/@localedir@/p
35195
/@mandir@/p
35196
'
216 andreas 35197
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
35198
*datarootdir*) ac_datarootdir_seen=yes;;
88 andreas 35199
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35200
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
216 andreas 35201
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35202
_ACEOF
88 andreas 35203
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
216 andreas 35204
  ac_datarootdir_hack='
88 andreas 35205
  s&@datadir@&$datadir&g
35206
  s&@docdir@&$docdir&g
35207
  s&@infodir@&$infodir&g
35208
  s&@localedir@&$localedir&g
35209
  s&@mandir@&$mandir&g
35210
    s&\\\${datarootdir}&$datarootdir&g' ;;
35211
esac
35212
_ACEOF
35213
35214
 
35215
# Shell code in configure.ac might set extrasub.
35216
# FIXME: do we really want to maintain this feature?
35217
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
216 andreas 35218
ac_sed_extra="$ac_vpsub
35219
$extrasub
88 andreas 35220
_ACEOF
35221
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
216 andreas 35222
:t
88 andreas 35223
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35224
s|@configure_input@|$ac_sed_conf_input|;t t
216 andreas 35225
s&@top_builddir@&$ac_top_builddir_sub&;t t
88 andreas 35226
s&@top_build_prefix@&$ac_top_build_prefix&;t t
216 andreas 35227
s&@srcdir@&$ac_srcdir&;t t
88 andreas 35228
s&@abs_srcdir@&$ac_abs_srcdir&;t t
35229
s&@top_srcdir@&$ac_top_srcdir&;t t
35230
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35231
s&@builddir@&$ac_builddir&;t t
35232
s&@abs_builddir@&$ac_abs_builddir&;t t
35233
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35234
s&@INSTALL@&$ac_INSTALL&;t t
35235
$ac_datarootdir_hack
35236
"
216 andreas 35237
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
35238
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
35239
$as_echo "$as_me: error: could not create $ac_file" >&2;}
35240
   { (exit 1); exit 1; }; }
35241
88 andreas 35242
 
35243
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35244
  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35245
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
216 andreas 35246
which seems to be undefined.  Please make sure it is defined." >&5
88 andreas 35247
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
216 andreas 35248
which seems to be undefined.  Please make sure it is defined." >&2;}
88 andreas 35249
35250
 
35251
  case $ac_file in
35252
  -) cat "$tmp/out" && rm -f "$tmp/out";;
216 andreas 35253
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
35254
  esac \
35255
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
35256
$as_echo "$as_me: error: could not create $ac_file" >&2;}
35257
   { (exit 1); exit 1; }; }
35258
 ;;
88 andreas 35259
  :H)
35260
  #
35261
  # CONFIG_HEADER
35262
  #
35263
  if test x"$ac_file" != x-; then
35264
    {
216 andreas 35265
      $as_echo "/* $configure_input  */" \
35266
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
35267
    } >"$tmp/config.h" \
35268
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
35269
$as_echo "$as_me: error: could not create $ac_file" >&2;}
35270
   { (exit 1); exit 1; }; }
35271
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
35272
      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35273
$as_echo "$as_me: $ac_file is unchanged" >&6;}
35274
    else
88 andreas 35275
      rm -f "$ac_file"
216 andreas 35276
      mv "$tmp/config.h" "$ac_file" \
35277
	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
35278
$as_echo "$as_me: error: could not create $ac_file" >&2;}
35279
   { (exit 1); exit 1; }; }
35280
    fi
88 andreas 35281
  else
35282
    $as_echo "/* $configure_input  */" \
216 andreas 35283
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
35284
      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
35285
$as_echo "$as_me: error: could not create -" >&2;}
35286
   { (exit 1); exit 1; }; }
35287
  fi
88 andreas 35288
# Compute "$ac_file"'s index in $config_headers.
216 andreas 35289
_am_stamp_count=1
88 andreas 35290
for _am_header in $config_headers :; do
35291
  case $_am_header in
35292
    "$ac_file" | "$ac_file":* )
216 andreas 35293
      break ;;
88 andreas 35294
    * )
35295
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
35296
  esac
35297
done
35298
echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
216 andreas 35299
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35300
	 X"$ac_file" : 'X\(//\)[^/]' \| \
35301
	 X"$ac_file" : 'X\(//\)$' \| \
35302
	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35303
$as_echo X"$ac_file" |
35304
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
88 andreas 35305
	    s//\1/
35306
	    q
35307
	  }
35308
	  /^X\(\/\/\)[^/].*/{
35309
	    s//\1/
35310
	    q
35311
	  }
35312
	  /^X\(\/\/\)$/{
35313
	    s//\1/
35314
	    q
35315
	  }
35316
	  /^X\(\/\).*/{
35317
	    s//\1/
35318
	    q
35319
	  }
35320
	  s/.*/./; q'`/stamp-h$_am_stamp_count
35321
 ;;
35322
35323
 
216 andreas 35324
$as_echo "$as_me: executing $ac_file commands" >&6;}
35325
 ;;
88 andreas 35326
  esac
35327
35328
 
35329
 
35330
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
35331
  # Strip MF so we end up with the name of the file.
35332
  mf=`echo "$mf" | sed -e 's/:.*$//'`
35333
  # Check whether this is an Automake generated Makefile or not.
35334
  # We used to match only the files named `Makefile.in', but
35335
  # some people rename them; so instead we look at the file content.
35336
  # Grep'ing the first line is not enough: some people post-process
35337
  # each Makefile.in and add a new line on top of each file to say so.
35338
  # So let's grep whole file.
91 andreas 35339
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
35340
    dirpart=`$as_dirname -- "$mf" ||
88 andreas 35341
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35342
	 X"$mf" : 'X\(//\)[^/]' \| \
35343
	 X"$mf" : 'X\(//\)$' \| \
35344
	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
35345
$as_echo X"$mf" |
216 andreas 35346
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
88 andreas 35347
	    s//\1/
35348
	    q
35349
	  }
35350
	  /^X\(\/\/\)[^/].*/{
35351
	    s//\1/
35352
	    q
35353
	  }
35354
	  /^X\(\/\/\)$/{
35355
	    s//\1/
35356
	    q
35357
	  }
35358
	  /^X\(\/\).*/{
35359
	    s//\1/
35360
	    q
35361
	  }
35362
	  s/.*/./; q'`
35363
  else
35364
    continue
35365
  fi
35366
  # Extract the definition of DEPDIR, am__include, and am__quote
35367
  # from the Makefile without running `make'.
35368
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
35369
  test -z "$DEPDIR" && continue
35370
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
35371
  test -z "am__include" && continue
35372
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
35373
  # When using ansi2knr, U may be empty or an underscore; expand it
35374
  U=`sed -n 's/^U = //p' < "$mf"`
35375
  # Find all dependency output files, they are included files with
35376
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
35377
  # simplest approach to changing $(DEPDIR) to its actual value in the
35378
  # expansion.
35379
  for file in `sed -n "
35380
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
35381
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
35382
    # Make sure the directory exists.
35383
    test -f "$dirpart/$file" && continue
35384
    fdir=`$as_dirname -- "$file" ||
35385
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35386
	 X"$file" : 'X\(//\)[^/]' \| \
35387
	 X"$file" : 'X\(//\)$' \| \
35388
	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
35389
$as_echo X"$file" |
216 andreas 35390
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
88 andreas 35391
	    s//\1/
35392
	    q
35393
	  }
35394
	  /^X\(\/\/\)[^/].*/{
35395
	    s//\1/
35396
	    q
35397
	  }
35398
	  /^X\(\/\/\)$/{
35399
	    s//\1/
35400
	    q
35401
	  }
35402
	  /^X\(\/\).*/{
35403
	    s//\1/
35404
	    q
35405
	  }
35406
	  s/.*/./; q'`
35407
    { as_dir=$dirpart/$fdir
35408
  case $as_dir in #(
35409
  -*) as_dir=./$as_dir;;
35410
  esac
35411
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35412
    as_dirs=
35413
    while :; do
35414
      case $as_dir in #(
35415
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
216 andreas 35416
      *) as_qdir=$as_dir;;
88 andreas 35417
      esac
35418
      as_dirs="'$as_qdir' $as_dirs"
35419
      as_dir=`$as_dirname -- "$as_dir" ||
35420
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35421
	 X"$as_dir" : 'X\(//\)[^/]' \| \
35422
	 X"$as_dir" : 'X\(//\)$' \| \
35423
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35424
$as_echo X"$as_dir" |
216 andreas 35425
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
88 andreas 35426
	    s//\1/
35427
	    q
35428
	  }
35429
	  /^X\(\/\/\)[^/].*/{
35430
	    s//\1/
35431
	    q
35432
	  }
35433
	  /^X\(\/\/\)$/{
35434
	    s//\1/
35435
	    q
35436
	  }
35437
	  /^X\(\/\).*/{
35438
	    s//\1/
35439
	    q
35440
	  }
35441
	  s/.*/./; q'`
35442
      test -d "$as_dir" && break
35443
    done
35444
    test -z "$as_dirs" || eval "mkdir $as_dirs"
35445
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
216 andreas 35446
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
35447
   { (exit 1); exit 1; }; }; }
88 andreas 35448
    # echo "creating $dirpart/$file"
35449
    echo '# dummy' > "$dirpart/$file"
35450
  done
35451
done
35452
 ;;
35453
35454
 
35455
done # for ac_tag
35456
35457
 
35458
 
35459
_ACEOF
35460
if test "x$with_fast_perl" = "xyes"; then    
35461
  perl -i.bak $ac_aux_dir/conf.change.pl $CONFIG_STATUS    \
35462
    || mv $CONFIG_STATUS.bak $CONFIG_STATUS    
35463
  rm -f $CONFIG_STATUS.bak
35464
fi    
35465
chmod +x $CONFIG_STATUS
35466
ac_clean_files=$ac_clean_files_save
35467
35468
 
216 andreas 35469
  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
35470
$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
35471
   { (exit 1); exit 1; }; }
35472
88 andreas 35473
 
216 andreas 35474
 
88 andreas 35475
# config.status does its own redirection, appending to config.log.
35476
# Unfortunately, on DOS this fails, as config.log is still kept open
35477
# by configure, so config.status won't be able to write to it; its
35478
# output is simply discarded.  So we exec the FD to /dev/null,
35479
# effectively closing config.log, so it can be properly (re)opened and
35480
# appended to by config.status.  When coming back to configure, we
35481
# need to make the FD available again.
35482
if test "$no_create" != yes; then
35483
  ac_cs_success=:
35484
  ac_config_status_args=
35485
  test "$silent" = yes &&
35486
    ac_config_status_args="$ac_config_status_args --quiet"
35487
  exec 5>/dev/null
35488
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35489
  exec 5>>config.log
35490
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35491
  # would make configure fail if this is the last instruction.
35492
  $ac_cs_success || { (exit 1); exit 1; }
35493
fi
35494
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
216 andreas 35495
  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
35496
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
35497
fi
35498
88 andreas 35499
 
35500
if test -n "$kde_libs_prefix" -a -n "$given_prefix"; then
35501
  # And if so, warn when they don't match
35502
  if test "$kde_libs_prefix" != "$given_prefix"; then
35503
    # And if kde doesn't know about the prefix yet
35504
    echo ":"`kde-config --path exe`":" | grep ":$given_prefix/bin/:" 2>&1 >/dev/null
35505
    if test $? -ne 0; then
35506
      echo ""
35507
      echo "Warning: you chose to install this package in $given_prefix,"
35508
      echo "but KDE was found in $kde_libs_prefix."
35509
      echo "For this to work, you will need to tell KDE about the new prefix, by ensuring"
35510
      echo "that KDEDIRS contains it, e.g. export KDEDIRS=$given_prefix:$kde_libs_prefix"
35511
      echo "Then restart KDE."
35512
      echo ""
35513
    fi
35514
  fi
35515
fi
35516
35517
 
35518
  echo ""
35519
  echo "Your GCC supports symbol visibility, but the patch for Qt supporting visibility"
35520
  echo "was not included. Therefore, GCC symbol visibility support remains disabled."
35521
  echo ""
35522
  echo "For better performance, consider including the Qt visibility supporting patch"
35523
  echo "located at:"
35524
  echo ""
35525
  echo "http://bugs.kde.org/show_bug.cgi?id=109386"
35526
  echo ""
35527
  echo "and recompile all of Qt and KDE. Note, this is entirely optional and"
35528
  echo "everything will continue to work just fine without it."
35529
  echo ""
35530
fi
35531
35532
 
35533
  if test ! "$cache_file" = "/dev/null"; then
35534
    echo ""
35535
    echo "Please remove the file $cache_file after changing your setup"
35536
    echo "so that configure will find the changes next time."
35537
    echo ""
35538
  fi
35539
else
35540
  echo ""
35541
  echo "Good - your configure finished. Start make now"
35542
  echo ""
35543
fi
35544