File tree Expand file tree Collapse file tree 1 file changed +9
-19
lines changed Expand file tree Collapse file tree 1 file changed +9
-19
lines changed Original file line number Diff line number Diff line change @@ -421,6 +421,13 @@ echo_libc() {
421
421
echo ' #define HAVE_GLOB_PERIOD 0'
422
422
echo ' #define GLOB_PERIOD 0 /* define bit flag to have no effect */'
423
423
fi
424
+
425
+ # Used by cpp/core.cc
426
+ if test " $have_pwent " = 1; then
427
+ echo ' #define HAVE_PWENT 1'
428
+ else
429
+ echo ' /* #undef HAVE_PWENT */'
430
+ fi
424
431
}
425
432
426
433
# Note: this is only for the OLD oils-ref tarball
@@ -525,25 +532,8 @@ echo_cpp() {
525
532
526
533
echo
527
534
528
- if test " $have_fnm_extmatch " = 1; then
529
- echo ' #define HAVE_FNM_EXTMATCH 1'
530
- else
531
- echo ' #define HAVE_FNM_EXTMATCH 0'
532
- fi
533
-
534
- if test " $have_glob_period " = 1; then
535
- echo ' #define HAVE_GLOB_PERIOD 1'
536
- else
537
- echo ' #define HAVE_GLOB_PERIOD 0'
538
- echo ' #define GLOB_PERIOD 0 /* define bit flag to have no effect */'
539
- fi
540
-
541
- # Used by cpp/core.cc
542
- if test " $have_pwent " = 1; then
543
- echo ' #define HAVE_PWENT 1'
544
- else
545
- echo ' /* #undef HAVE_PWENT */'
546
- fi
535
+ # Shared with detect_c_language
536
+ echo_libc
547
537
}
548
538
549
539
# Another way of working: set detected-config.mk ?
You can’t perform that action at this time.
0 commit comments