Changeset 22a39c27afb0137cca9a81e44dfc9f56ce085274
- Timestamp:
- 27/12/02 15:16:13
(6 years ago)
- Author:
- Sam Hocevar <sam@videolan.org>
- git-committer:
- Sam Hocevar <sam@videolan.org> 1040998573 +0000
- git-parent:
[535c75f66eabb582b9da47c85506b23b780e2dae]
- git-author:
- Sam Hocevar <sam@videolan.org> 1040998573 +0000
- Message:
- ./configure.ac.in: added a check for $EGREP at the beginning, so that
it's not done in an obscure "if" statement.
- ./configure.ac.in: added verbosity around all EGREP calls so that we
know what's going on.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rd65301a |
r22a39c2 |
|
| 33 | 33 | AC_PROG_MAKE_SET |
|---|
| 34 | 34 | AC_PROG_INSTALL |
|---|
| | 35 | AC_PROG_EGREP |
|---|
| 35 | 36 | |
|---|
| 36 | 37 | dnl AC_PROG_OBJC doesn't seem to exist, this is the KDE workaround |
|---|
| … | … | |
| 369 | 370 | |
|---|
| 370 | 371 | dnl Check for misc headers |
|---|
| | 372 | AC_MSG_CHECKING(for pthread_cond_t in pthread.h) |
|---|
| 371 | 373 | AC_EGREP_HEADER(pthread_cond_t,pthread.h,[ |
|---|
| | 374 | AC_MSG_RESULT(yes) |
|---|
| 372 | 375 | AC_DEFINE(PTHREAD_COND_T_IN_PTHREAD_H, 1, |
|---|
| 373 | | Define if <pthread.h> defines pthread_cond_t.)]) |
|---|
| | 376 | Define if <pthread.h> defines pthread_cond_t.)],[ |
|---|
| | 377 | AC_MSG_RESULT(no)]) |
|---|
| | 378 | |
|---|
| | 379 | AC_MSG_CHECKING(for pthread_once in pthread.h) |
|---|
| 374 | 380 | AC_EGREP_HEADER(pthread_once,pthread.h,[ |
|---|
| | 381 | AC_MSG_RESULT(yes) |
|---|
| 375 | 382 | AC_DEFINE(PTHREAD_ONCE_IN_PTHREAD_H, 1, |
|---|
| 376 | | Define if <pthread.h> defines pthread_once.)]) |
|---|
| | 383 | Define if <pthread.h> defines pthread_once.)],[ |
|---|
| | 384 | AC_MSG_RESULT(no)]) |
|---|
| | 385 | |
|---|
| | 386 | AC_MSG_CHECKING(for strncasecmp in strings.h) |
|---|
| 377 | 387 | AC_EGREP_HEADER(strncasecmp,strings.h,[ |
|---|
| | 388 | AC_MSG_RESULT(yes) |
|---|
| 378 | 389 | AC_DEFINE(STRNCASECMP_IN_STRINGS_H, 1, |
|---|
| 379 | | Define if <strings.h> defines strncasecmp.)]) |
|---|
| | 390 | Define if <strings.h> defines strncasecmp.)],[ |
|---|
| | 391 | AC_MSG_RESULT(no)]) |
|---|
| 380 | 392 | |
|---|
| 381 | 393 | dnl Check for headers |
|---|
| … | … | |
| 395 | 407 | |
|---|
| 396 | 408 | dnl Mac OS X and other OSes don't have declaration for nanosleep |
|---|
| | 409 | AC_MSG_CHECKING(for nanosleep in time.h) |
|---|
| 397 | 410 | AC_EGREP_HEADER(nanosleep,time.h,[ |
|---|
| | 411 | AC_MSG_RESULT(yes) |
|---|
| 398 | 412 | AC_DEFINE(HAVE_DECL_NANOSLEEP, 1, |
|---|
| 399 | 413 | Define if <time.h> defines nanosleep.) |
|---|
| | 414 | ],[ |
|---|
| | 415 | AC_MSG_RESULT(no) |
|---|
| 400 | 416 | ]) |
|---|
| 401 | 417 | |
|---|
| 402 | 418 | dnl Make sure we have timespecs |
|---|
| | 419 | AC_MSG_CHECKING(for timespec in sys/time.h) |
|---|
| 403 | 420 | AC_EGREP_HEADER(timespec,sys/time.h,[ |
|---|
| | 421 | AC_MSG_RESULT(yes) |
|---|
| 404 | 422 | AC_DEFINE(HAVE_STRUCT_TIMESPEC, 1, |
|---|
| 405 | 423 | Define if <sys/time.h> defines struct timespec.) |
|---|
| | 424 | ],[ |
|---|
| | 425 | AC_MSG_RESULT(no) |
|---|
| 406 | 426 | ]) |
|---|
| 407 | 427 | |
|---|
| … | … | |
| 426 | 446 | CPPFLAGS="${CPPFLAGS_save} -I${x_includes}" |
|---|
| 427 | 447 | AC_CHECK_HEADERS(X11/extensions/dpms.h, [ |
|---|
| | 448 | AC_MSG_CHECKING(for DPMSInfo in X11/extensions/dpms.h) |
|---|
| 428 | 449 | AC_EGREP_HEADER(DPMSInfo,X11/extensions/dpms.h,[ |
|---|
| | 450 | AC_MSG_RESULT(yes) |
|---|
| 429 | 451 | AC_DEFINE(DPMSINFO_IN_DPMS_H, 1, |
|---|
| 430 | 452 | Define if <X11/extensions/dpms.h> defines DPMSInfo.) |
|---|
| | 453 | ],[ |
|---|
| | 454 | AC_MSG_RESULT(no) |
|---|
| 431 | 455 | ]) |
|---|
| 432 | 456 | ],,[ |
|---|
| … | … | |
| 1197 | 1221 | if test "x${enable_vcd}" != "xno" |
|---|
| 1198 | 1222 | then |
|---|
| | 1223 | AC_MSG_CHECKING(for cdrom_msf0 in linux/cdrom.h) |
|---|
| 1199 | 1224 | AC_EGREP_HEADER(cdrom_msf0,linux/cdrom.h,[ |
|---|
| | 1225 | AC_MSG_RESULT(yes) |
|---|
| 1200 | 1226 | PLUGINS="${PLUGINS} vcd" |
|---|
| | 1227 | ],[ |
|---|
| | 1228 | AC_MSG_RESULT(no) |
|---|
| 1201 | 1229 | ]) |
|---|
| 1202 | 1230 | |
|---|
| | 1231 | AC_MSG_CHECKING(for scsireq in sys/scsiio.h) |
|---|
| 1203 | 1232 | AC_EGREP_HEADER(scsireq,sys/scsiio.h,[ |
|---|
| | 1233 | AC_MSG_RESULT(yes) |
|---|
| 1204 | 1234 | PLUGINS="${PLUGINS} vcd" |
|---|
| 1205 | 1235 | AC_DEFINE(HAVE_SCSIREQ_IN_SYS_SCSIIO_H, 1, For NetBSD VCD support) |
|---|
| | 1236 | ],[ |
|---|
| | 1237 | AC_MSG_RESULT(no) |
|---|
| 1206 | 1238 | ]) |
|---|
| 1207 | 1239 | |
|---|
| | 1240 | AC_MSG_CHECKING(for ioc_toc_header in sys/cdio.h) |
|---|
| 1208 | 1241 | AC_EGREP_HEADER(ioc_toc_header ,sys/cdio.h,[ |
|---|
| | 1242 | AC_MSG_RESULT(yes) |
|---|
| 1209 | 1243 | PLUGINS="${PLUGINS} vcd" |
|---|
| 1210 | 1244 | AC_DEFINE(HAVE_IOC_TOC_HEADER_IN_SYS_CDIO_H, 1, For FreeBSD VCD support) |
|---|
| | 1245 | ],[ |
|---|
| | 1246 | AC_MSG_RESULT(no) |
|---|
| 1211 | 1247 | ]) |
|---|
| 1212 | 1248 | |
|---|
| … | … | |
| 2544 | 2580 | [ if test "x${enable_pth}" = "xyes"; then |
|---|
| 2545 | 2581 | AC_CHECK_LIB(pth,pth_init) |
|---|
| | 2582 | AC_MSG_CHECKING(for pth_init in pth.h) |
|---|
| 2546 | 2583 | AC_EGREP_HEADER(pth_init,pth.h,[ |
|---|
| | 2584 | AC_MSG_RESULT(yes) |
|---|
| 2547 | 2585 | AC_DEFINE(PTH_INIT_IN_PTH_H, 1, |
|---|
| 2548 | 2586 | Define if <pth.h> defines pth_init) |
|---|
| 2549 | | THREAD_LIB="-lpth" |
|---|
| 2550 | | fi]) |
|---|
| | 2587 | THREAD_LIB="-lpth" |
|---|
| | 2588 | ],[ |
|---|
| | 2589 | AC_MSG_RESULT(no) |
|---|
| | 2590 | ]) |
|---|
| | 2591 | fi |
|---|
| 2551 | 2592 | ]) |
|---|
| 2552 | 2593 | |
|---|
| … | … | |
| 2558 | 2599 | [ if test "x${enable_st}" = "xyes"; then |
|---|
| 2559 | 2600 | AC_CHECK_LIB(st,st_init) |
|---|
| | 2601 | AC_MSG_CHECKING(for st_init in st.h) |
|---|
| 2560 | 2602 | AC_EGREP_HEADER(st_init,st.h,[ |
|---|
| | 2603 | AC_MSG_RESULT(yes) |
|---|
| 2561 | 2604 | AC_DEFINE(ST_INIT_IN_ST_H, 1, |
|---|
| 2562 | 2605 | Define if <st.h> defines st_init) |
|---|
| 2563 | | THREAD_LIB="-lst" |
|---|
| 2564 | | fi]) |
|---|
| | 2606 | THREAD_LIB="-lst" |
|---|
| | 2607 | ],[ |
|---|
| | 2608 | AC_MSG_RESULT(yes) |
|---|
| | 2609 | ]) |
|---|
| | 2610 | fi |
|---|
| 2565 | 2611 | ]) |
|---|
| 2566 | 2612 | |
|---|